Skip to content

Commit

Permalink
don't show "DOI not reserved" message on create #7102
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Jul 29, 2020
1 parent fee1772 commit 1c1ae2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/DatasetPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ private void displayLockInfo(Dataset dataset) {
// With DataCite, we try to reserve the DOI when the dataset is created. Sometimes this
// fails because DataCite is down. We show the message below to set expectations that the
// "Publish" button won't work until the DOI has been reserved using the "Reserve PID" API.
if (settingsWrapper.isDataCiteInstallation() && dataset.getGlobalIdCreateTime() == null) {
if (settingsWrapper.isDataCiteInstallation() && dataset.getGlobalIdCreateTime() == null && editMode != EditMode.CREATE) {
JH.addMessage(FacesMessage.SEVERITY_WARN, BundleUtil.getStringFromBundle("dataset.locked.pidNotReserved.message"),
BundleUtil.getStringFromBundle("dataset.locked.pidNotReserved.message.details"));
}
Expand Down

0 comments on commit 1c1ae2c

Please sign in to comment.