Skip to content

fix(load): put CDS DOI only on latest version - #634

Open
TahaKhan998 wants to merge 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/doi-latest-version-only
Open

TahaKhan998 wants to merge 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/doi-latest-version-only

Conversation

@TahaKhan998

Copy link
Copy Markdown
Contributor

closes #628

when a record has a CDS DOI and multiple versions, new_version() clears pids so the DOI was sticking on v1 instead of the latest.
this strips the CDS DOI from the first create when there are multiple versions, puts it back on the latest draft before publish, and skips the post-publish DOI update on versions that dont carry the DOI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CDS DOIs only: set the DOI only on the latest version (instead of the first)

1 participant