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

Smarter DOI lookup #1323

Merged
merged 7 commits into from
Mar 5, 2024
Merged

Smarter DOI lookup #1323

merged 7 commits into from
Mar 5, 2024

Conversation

jimallman
Copy link
Member

This addresses #1321 by including the current DOI field when searching CrossRef. See related comments there.

@snacktavish
Copy link
Member

Crossref seems to struggle when looking up just the DOI in URL form, e.g. http://dx.doi.org/10.1111/1365-2656.13565, and it needs to be specifically informed that it is looking up a doi.

@jimallman
Copy link
Member Author

jimallman commented Aug 15, 2023

Note that on the CrossRef website, a metadata search only works for a "bare" DOI, like 10.1111/1365-2656.13565, but fails for the URL form we generally prefer.

EDIT TO ADD: I'll search for these URLs in both text fields and strip them to the bare form before sending to the CrossRef API. Also looking for any switch that specifies a "metadata" (vs. title+text) search.

@jimallman jimallman self-assigned this Aug 15, 2023
@snacktavish snacktavish changed the base branch from master to staging November 14, 2023 19:34
snacktavish and others added 5 commits December 12, 2023 10:41
See https://api.crossref.org/swagger-ui/index.html#/Works

NB - The simplest method used `/works/{doi}` is the only one I can find
that recognizes both DOIs and metadata text. The more detailed
`/works?query=....` method seems to ignore included DOIs. :-/
@jimallman jimallman merged commit 05c7a5c into staging Mar 5, 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

Successfully merging this pull request may close these issues.

2 participants