elifesciences / elife-tools

Python library for parsing eLife article XML data.
MIT License
15 stars 7 forks source link

Additional format_author() style for ellipsis. #394

Closed gnott closed 2 years ago

gnott commented 2 years ago

Re issue https://github.com/elifesciences/issues/issues/7658

A new style of author line with an ellipsis before the final name when there are many names, e.g. First Author, Second Author ... Fourth Author.

The old format is preserved in the new function format_author_line_etal(), and format_author_line() is backwards compatible to still produce the et al style output.

The new function format_author_line_ellipsis() produces the ellipsis style.

The function author_line() produces the authorLine value for article JSON, and is changed to return the ellipsis style.