softwarepub / hermes

Implementation of the HERMES workflow
https://docs.software-metadata.pub
Other
21 stars 6 forks source link

Write prereserved DOIs into files before depositing them to Zenodo #131

Open zyzzyxdonta opened 1 year ago

zyzzyxdonta commented 1 year ago

When metadata is uploaded to Zenodo, we prereserve a DOI. It might be necessary to use this DOI to update files (CITATION.CFF, codemeta.json, README.md, ...) before uploading them. The deposit resource returned by the API after metadata was posted to the deposit_url has a metadata field that can be used for this.

deposit["metadata"] contains a prereserve_doi field which looks like this: {'doi': '10.5072/zenodo.1234567', 'recid': 1234567}. The recid can be used to construct the URL to the record when published: f"https://sandbox.zenodo.org/record/{recid}".

schlauch commented 1 year ago

This would be an awesome feature :)