Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pub month versus collection month #122

Open
seasidesparrow opened this issue Aug 13, 2024 · 0 comments
Open

Pub month versus collection month #122

seasidesparrow opened this issue Aug 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@seasidesparrow
Copy link
Member

Describe the bug
Records can have multiple <pub-date publication-format="electronic"> tags. In particular, Springer/Nature can have <pub-date date-type="pub"> and <pub-date date-type="collection"> to indicate the publication dates of the paper itself, and the formal publication date of the collection (e.g. issue) it belongs to. The current parser does find_all("pub-date") so the parser will iterate over all dates found. If it has already found an electronic date, it will be overwritten by subsequent ones.

To Reproduce
See the file /proj/ads/abstracts/data/NATURE/npj/NPJ.052224/JOU=41467/VOL=2024.15/ISU=1/ART=48265/41467_2024_Article_48265_nlm.xml. There are two <pub-date publication-format="electronic"> tags in this file, the first having date-type="pub" (May 2024) and the second, "collection" (December 2024). In this case the article itself was published in May 2024 but the parser records it as December.

Additional context
You can do a find_all, but you need to check the date-type along with publication-format, with "pub" being the preferred date-type over "collection". Collection can go into otherDateType.

@seasidesparrow seasidesparrow added the bug Something isn't working label Aug 13, 2024
@seasidesparrow seasidesparrow self-assigned this Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant