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

bibstem parsing in match_w_metadata is flawed #39

Open
seasidesparrow opened this issue Sep 23, 2024 · 0 comments
Open

bibstem parsing in match_w_metadata is flawed #39

seasidesparrow opened this issue Sep 23, 2024 · 0 comments
Assignees

Comments

@seasidesparrow
Copy link
Member

The utility match_w_metadata.py has an embedded query of the journals api to check whether a bibstem is present in the database and has a valid pubtype. However, prior to the query, the bibstem is determined by taking the bibcode and extracting only bibcode[4:9]:

bibstem = metadata.get('bibcode', '')[4:9].strip('.')

This will match journal-type bibstems, but will not match any conf, rept, book or other bibcodes other than the standard journal bibstem. If we are expecting docmatch pipeline to things other than journal articles, this bug will prevent that.

@seasidesparrow seasidesparrow self-assigned this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant