Skip to content

Commit 1ad8647

Browse files
authored
Merge pull request #7121 from IQSS/7102-unreserved-doi
add message when DataCite DOI has not been reserved #7102
2 parents 2613d4e + 1c1ae2c commit 1ad8647

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/DatasetPage.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,15 @@ private void displayLockInfo(Dataset dataset) {
21282128
BundleUtil.getStringFromBundle("dataset.locked.ingest.message"));
21292129
lockedDueToIngestVar = true;
21302130
}
2131+
2132+
// With DataCite, we try to reserve the DOI when the dataset is created. Sometimes this
2133+
// fails because DataCite is down. We show the message below to set expectations that the
2134+
// "Publish" button won't work until the DOI has been reserved using the "Reserve PID" API.
2135+
if (settingsWrapper.isDataCiteInstallation() && dataset.getGlobalIdCreateTime() == null && editMode != EditMode.CREATE) {
2136+
JH.addMessage(FacesMessage.SEVERITY_WARN, BundleUtil.getStringFromBundle("dataset.locked.pidNotReserved.message"),
2137+
BundleUtil.getStringFromBundle("dataset.locked.pidNotReserved.message.details"));
2138+
}
2139+
21312140
}
21322141

21332142
private Boolean fileTreeViewRequired = null;

src/main/java/propertyFiles/Bundle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,8 @@ dataset.locked.ingest.message=The tabular data files uploaded are being processe
13221322
dataset.unlocked.ingest.message=The tabular files have been ingested.
13231323
dataset.locked.editInProgress.message=Edit In Progress
13241324
dataset.locked.editInProgress.message.details=Additional edits cannot be made at this time. Contact {0} if this status persists.
1325+
dataset.locked.pidNotReserved.message=Dataset DOI Not Reserved
1326+
dataset.locked.pidNotReserved.message.details=The DOI displayed in the citation for this dataset has not yet been reserved with DataCite. Please do not share this DOI until it has been reserved.
13251327
dataset.publish.error=This dataset may not be published due to an error when contacting the <a href=\{1} target=\"_blank\"/> {0} </a> Service. Please try again.
13261328
dataset.publish.error.doi=This dataset may not be published because the DOI update failed.
13271329
dataset.publish.file.validation.error.message=Failed to Publish Dataset

0 commit comments

Comments
 (0)