Skip to content
New issue

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

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

Already on GitHub? # to your account

Citation -> import from DataCite #1026

Closed
tilfischer opened this issue Jan 16, 2024 · 9 comments · Fixed by #1054, #1050, #1071, #1074 or #1075
Closed

Citation -> import from DataCite #1026

tilfischer opened this issue Jan 16, 2024 · 9 comments · Fixed by #1054, #1050, #1071, #1074 or #1075
Assignees
Labels
enhancement greater code or enhancement of existing feature testing

Comments

@tilfischer
Copy link
Member

Is your enhancement request related to a problem? Please describe.
Users are allow to add citations for each project. Two use cases are to add the citation of 1) the corresponding article and 2) other corresponding datasets.

This works well for DOIs registered with CrossRef: https://api.crossref.org/works/10.1021/acs.jnatprod.1c01035

Bildschirmfoto 2024-01-16 um 12 19 56

This does not work for DOIs registered with DataCite: https://api.datacite.org/dois/10.22000/1865

Bildschirmfoto 2024-01-16 um 12 20 16

Describe the solution you'd like
Import of citations should be possible via DOI with DOIs registered with CrossRef and DataCite.

Best,
Tillmann

@tilfischer
Copy link
Member Author

Is this already part of the deploy? I just tested this again for #1029 but I still cannot import with DataCite DOI e.g. https://dx.doi.org/10.22000/1865

@NishaSharma14
Copy link
Contributor

NishaSharma14 commented Jan 26, 2024

Can you plz confirm what the endpoint would be?
Will it be https://dx.doi.org/10.22000/1865 or https://dx.doi.org/dois/10.22000/1865
Or can it vary?

And also can you plz provide me with some more examples?

@NishaSharma14 NishaSharma14 reopened this Jan 26, 2024
@tilfischer
Copy link
Member Author

tilfischer commented Jan 26, 2024

The first is the DOI with the resolver. People add this to the address bar in their browsers to get to the landing page. The second link does not work. This is a mixed up link with the URL to the DataCite API.

https://dx.doi.org/10.22000/1865 -> landing page

https://api.datacite.org/dois/10.22000/1865 -> gives DOI metadata via https as json

https://dx.doi.org/dois/10.22000/1865 -> mix of both, but does not work

https://api.datacite.org/10.22000/1865 -> redirects to landing page. Found this just by accident and wasn't aware that that works. However, I would not use this to resolve a DOI.

Best,
Tillmann

@tilfischer
Copy link
Member Author

The other way around: Which endpoint to you use for CrossRef? Is it api.crossref.com/works/<DOI> ? If so, than the corresponding end point at DataCite would be api.datacite.org/dois/<DOI> .

Best,
Tillmann

@NishaSharma14
Copy link
Contributor

NishaSharma14 commented Jan 30, 2024

Yes for crossref we use https://api.crossref.org/works/<DOI> & for Datacite I am using the same as you said https://api.datacite.org/dois/<DOI>
So if you try looking for using https://dx.doi.org/dois/10.22000/1865 will work now. But I will apply a fix soon to handle both https://dx.doi.org/dois/10.22000/1865 & https://dx.doi.org/10.22000/1865

NishaSharma14 added a commit that referenced this issue Jan 30, 2024
@NishaSharma14 NishaSharma14 linked a pull request Jan 30, 2024 that will close this issue
@tilfischer
Copy link
Member Author

Tested this again. This does not eat DataCite DOIs.

@NishaSharma14
Copy link
Contributor

Sorry, The fix is not deployed to PROD yet. I will let you know once done.

NishaSharma14 added a commit that referenced this issue Jan 31, 2024
@NishaSharma14 NishaSharma14 linked a pull request Jan 31, 2024 that will close this issue
@NishaSharma14
Copy link
Contributor

NishaSharma14 commented Jan 31, 2024

It is deployed and should be fixed now.

screen-capture.25.webm

@tilfischer
Copy link
Member Author

It is fixed. Thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment