Open seasidesparrow opened 3 years ago
MNRAS/IOP extra authors in collab:
recent fix captures collaboration (but not additional authors) but also duplicates the last author: at the end of that try (https://github.com/adsabs/adsabs-pyingest/blob/e832127f39046c7323032674ba60aee772a053f1/pyingest/parsers/jats_contrib.py#L345), where it assigns the auth/affil data to the contrib array, unset the name so that it is blanked the next time it loops around.
extra authors: turn that code block into an internal method, and have the section with subauthors call itself and extend the contrib array with the results (either append individually as it loops, or extend if it returns an array).
MNRAS/IOP extra authors in collab:
recent fix captures collaboration (but not additional authors) but also duplicates the last author: at the end of that try (https://github.com/adsabs/adsabs-pyingest/blob/e832127f39046c7323032674ba60aee772a053f1/pyingest/parsers/jats_contrib.py#L345), where it assigns the auth/affil data to the contrib array, unset the name so that it is blanked the next time it loops around.
extra authors: turn that code block into an internal method, and have the section with subauthors call itself and extend the contrib array with the results (either append individually as it loops, or extend if it returns an array).