seek4science / seek

For finding, sharing and exchanging Data, Models, Simulations and Processes in Science.
http://www.seek4science.org
BSD 3-Clause "New" or "Revised" License
77 stars 52 forks source link

Can't register publication with Datacite DOI #635

Open stain opened 3 years ago

stain commented 3 years ago

Describe the bug DOIs from DataCite fails with

An error has occurred whilst attempting to fetch the requested publication The DOI you entered could not be resolved.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://workflowhub.eu/publications/new#Register
  2. Register by DOI from Zenodo, e.g. 10.5281/zenodo.4602855

Expected behavior

Metadata should be fetched from Datacite https://api.datacite.org/dois/10.5281/zenodo.4602855

Screenshots

image

Additional context

There are several DOI registries, not just CrossRef. CrossRef is usde by most journals, but DataCite is used by data repositories and several preprint services like Zenodo.

stain commented 3 years ago

Importing the Bibtex file https://zenodo.org/record/4602855/export/hx from Zenodo also fails

image

whomingbird commented 3 years ago

SEEK uses CrossRef API to fetch the metadata. For the given DOI, it returns

<doi_records>
<doi_record>
<crossref>
<error>doi:10.5281/zenodo.4602855</error>
</crossref>
</doi_record>
</doi_records>

https://doi.crossref.org/openurl?format=unixref&id=10.5281/zenodo.4602855&pid=sowen%40cs.man.ac.uk&noredirect=true

whomingbird commented 3 years ago

By using BibTeX to register the publication, it fails with the same reason. "The DOI can not be solved".
The trick is to remove the line of doi = {10.5281/zenodo.4602855}, in .bib file. Then it will work.

image

stuzart commented 3 years ago

Seems like we need to fall back and try the datacite endpoint if crossref fails, or be more intelligent about which to try first based on the publication type. There may be better DOI resolving gems available now that we could use.