Skip to content

Commit

Permalink
#9507 update ui; add refresh logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Oct 2, 2023
1 parent 66b40f5 commit efe0052
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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 @@ -3388,7 +3388,7 @@ public void saveLinkingDataverses(ActionEvent evt) {
FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, BundleUtil.getStringFromBundle("dataset.notlinked"), linkingDataverseErrorMessage);
FacesContext.getCurrentInstance().addMessage(null, message);
}

alreadyLinkedDataverses = null; //force update to list of linked dataverses
}

private String linkingDataverseErrorMessage = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/propertyFiles/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2497,7 +2497,7 @@ dataset.registered=DatasetRegistered
dataset.registered.msg=Your dataset is now registered.
dataset.notlinked=DatasetNotLinked
dataset.notlinked.msg=There was a problem linking this dataset to yours:
dataset.linking.popop.already.linked.note=Note: the dataset is already linked to the following dataverses:
dataset.linking.popop.already.linked.note=Note: This dataset is already linked to the following dataverse(s):
datasetversion.archive.success=Archival copy of Version successfully submitted
datasetversion.archive.failure=Error in submitting an archival copy
datasetversion.update.failure=Dataset Version Update failed. Changes are still in the DRAFT version.
Expand Down
4 changes: 3 additions & 1 deletion src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -1599,8 +1599,10 @@
</div>
</div>
<div>
<h:outputLabel rendered="#{!empty DatasetPage.alreadyLinkedDataverses }" value="#{bundle['dataset.linking.popop.already.linked.note']} "/>
<p:fragment rendered="#{!empty DatasetPage.alreadyLinkedDataverses}">
<h:outputLabel value="#{bundle['dataset.linking.popop.already.linked.note']}"/>&#160;
<h:outputText rendered="#{!empty DatasetPage.alreadyLinkedDataverses }" value="#{DatasetPage.alreadyLinkedDataverses}"/>
</p:fragment>
</div>
<div class="button-block">
<p:commandButton id="saveLinkButton" styleClass="btn btn-default"
Expand Down

0 comments on commit efe0052

Please sign in to comment.