MIT-LCP / physionet-build

The new PhysioNet platform.
https://physionet.org/
BSD 3-Clause "New" or "Revised" License
55 stars 19 forks source link

Fix publicationYear when creating/updating DOIs #2246

Open bemoody opened 4 weeks ago

bemoody commented 4 weeks ago

In the management page for a published project, there are buttons to create or update DOIs for the published project and its associated core project. ("Update" if the project already has a DOI assigned, or "create" if it doesn't.)

The "publicationYear" in the DOI metadata should indicate the year when the resource was published, not the current year or the year the DOI was created. This corresponds to the project's publish_datetime.

Previously, the page also gave you the option to create/update the core DOI even if you weren't looking at the latest project version. This was not what you wanted - it would have erroneously applied the metadata of the old version. This button is now disabled when inapplicable.

Fixes issue #2160.