#{bundle['dataset.publish.btn']}
#{bundle['dataset.publish.btn']}
@@ -258,6 +260,7 @@
rendered="#{DatasetPage.dataset.latestVersion.versionState=='DRAFT' and !DatasetPage.dataset.owner.released
and permissionsWrapper.canIssuePublishDatasetCommand(DatasetPage.dataset)
and !DatasetPage.canPublishDataverse()}"
+ disabled="#{DatasetPage.locked and !DatasetPage.dataset.latestVersion.inReview}"
onclick="PF('mayNotRelease').show()">
#{bundle['dataset.publish.btn']}
@@ -266,6 +269,7 @@
and DatasetPage.canPublishDataverse()
and (DatasetPage.dataset.owner.owner == null or (DatasetPage.dataset.owner.owner != null and DatasetPage.dataset.owner.owner.released))
and permissionsWrapper.canIssuePublishDatasetCommand(DatasetPage.dataset)}"
+ disabled="#{DatasetPage.locked and !DatasetPage.dataset.latestVersion.inReview}"
onclick="PF('publishParent').show()">
#{bundle['dataset.publish.btn']}
@@ -274,6 +278,7 @@
and DatasetPage.canPublishDataverse()
and (DatasetPage.dataset.owner.owner != null and !DatasetPage.dataset.owner.owner.released)
and permissionsWrapper.canIssuePublishDatasetCommand(DatasetPage.dataset)}"
+ disabled="#{DatasetPage.locked and !DatasetPage.dataset.latestVersion.inReview}"
onclick="PF('maynotPublishParent').show()">
#{bundle['dataset.publish.btn']}
@@ -282,9 +287,10 @@
-
+
+ disabled="#{DatasetPage.locked and !DatasetPage.dataset.latestVersion.inReview}"
+ onclick="PF('sendBackToContributor').show()">
#{bundle['dataset.rejectBtn']}
@@ -296,9 +302,10 @@
and DatasetPage.canUpdateDataset()
and !permissionsWrapper.canIssuePublishDatasetCommand(DatasetPage.dataset)}">
-