elifesciences / elife-tools

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

Bug fix is_author_group_author() #377

Closed gnott closed 2 years ago

gnott commented 2 years ago

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

Observed in PubMed deposits as an error, and article JSON output is odd too, when a <collab> article contributor has a <collab> as a parent tag. Due to the bug in the code, all <collab> were assigned a unique group author id value.

The fix is to not consider a <collab> inside a <collab> to be a "group author", which results in the <collab> to be consider a member of the group it is in.