hubzero / hubzero-cms

Platform for Scientific Collaboration
https://hubzero.org
GNU General Public License v2.0
46 stars 58 forks source link

[PURR][#2561]Fix issue that doi is created when submitting a publication that has been reverted before #1731

Closed kuang5 closed 1 month ago

kuang5 commented 1 month ago

https://purr.purdue.edu/support/ticket/2561

A new DOI is created when submitting a publication that has been reverted before.

A publication can be reverted by submitter when it is published and is still within 30-day grace period. However, we found an issue that a new DOI is going to be created on DataCite when user submits the publication, which was reverted from published to draft. (The submitter reverted the publication to draft because a few changes to the datasets are needed). This is a bug that need to be fixed because a DOI has been created when the publication was submitted for the first time. The same DOI should go with the publication all the time no matter what actions has been taken by users through PURR web user interface.

The code change is to remove the operation of registering dataset on DataCite which leads to new DOI created, when submitting a dataset that is in draft ready status (The dataset has been reverted from published to draft).

Test:

  1. User submits a publication and administrator approves it.
  2. In the project->publications, user reverts the publication to draft, makes changes, then submits it again.
  3. Login on doi.test.datacite.org to see there isn't any new DOI created for the publication. The expected result is that you don't find any new DOI created for the dataset, and only see the DOI that was created in step 1 process.