elifesciences / elife-tools

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

elocation_id() only return value from article-meta. #328

Closed gnott closed 4 years ago

gnott commented 4 years ago

Bug fix for the parseJATS.elocation_id() function.

On non-eLife XML samples, if the article itself has no <elocation-id> tag, but there is a citation with one, then it returns the value from the first citation.

Instead, only look for the value in the <article-meta> tag content.

This is similar to how issue() is done already.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 99.713% when pulling 11d01b03a0e5cd9903db1c6b3edae77b6eb5db13 on elocation_id into 4ede159cd8793dcc8a5957297ce196d36cfebea2 on develop.