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

Mint DOIs for resources and update metadata with that from DataCite #412

Merged
merged 53 commits into from
Nov 22, 2021

Conversation

alisonrclarke
Copy link
Contributor

@alisonrclarke alisonrclarke commented Oct 28, 2021

Also includes a couple of other fixes from @GraemeWatt.

Release Notes

Requires a new doi field to be added to the data_resource table:

ALTER TABLE dataresource ADD COLUMN doi varchar(128);

(See script)

Once this has been pushed to prod, the DataCite metadata should be updated and resources should be added, using the doi-utils command, probably in batches, e.g.:

hepdata doi-utils register-dois -i all -s 1 -e 2000

(Then -s 2001 -e 4000 etc.)

alisonrclarke and others added 27 commits October 14, 2021 13:52
 * Remove line breaks in text elements
 * Replace IsSupplementedBy with HasPart to ensure data table DOIs are included in JSON-LD
* Fixes #406 (hide button unless user is Admin or Coordinator).
* Fixes #403 (modify update_record_info for unfinished records).
* Move the subtitle for data tables and resource files to the title.
* Improves results shown in DataCite Search and Google Dataset Search.
* Give citation information for the versioned DOI of a record.
* Follow DataCite preferred format (e.g. include resourceTypeGeneral).
* Use BibTeX keys based on the last part of the DOI after first '/'.
* Only use standard BibTeX fields for @misc type (closes #408).
Revise HTML/BibTeX content of Cite widget and other changes
@coveralls
Copy link

coveralls commented Oct 28, 2021

Coverage Status

Coverage increased (+0.4%) to 88.502% when pulling e460170 on resource-dois into d8ad04a on master.

* Fix behaviour if record has multiple versions (previously incorrect).
* Ensure sensible display for unfinished records with missing fields.
* Take year from last updated date, different from publication year.
* Allow for rivet URL argument when redirecting (fixes #413).
@alisonrclarke alisonrclarke marked this pull request as ready for review November 5, 2021 07:57
Copy link
Member

@GraemeWatt GraemeWatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all your work on this, @alisonrclarke! I'll merge now.

@GraemeWatt GraemeWatt merged commit 51032dc into master Nov 22, 2021
@GraemeWatt GraemeWatt deleted the resource-dois branch November 22, 2021 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment