Skip to content

Commit

Permalink
add history menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Feb 16, 2025
1 parent 5113464 commit 0921dcb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/propertyFiles/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2692,6 +2692,10 @@ datasetversion.update.success=The published version of your Data Project has bee
datasetversion.update.archive.success=The published version of your Data Project, and its archival copy, have been updated.
dataset.license.custom.blankterms=When selecting Custom Data Project Terms, you must provide some Terms of Use.

dataset.curationStatusHistory=Curation Status History
dataset.curationStatus=Status
dataset.curationDate=Date
dataset.curationAssigner=Assigner

#ThemeWidgetFragment.java
theme.validateTagline=Tagline must be at most 140 characters.
Expand Down
26 changes: 26 additions & 0 deletions src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,13 @@
</ul>
</li>
</ui:fragment>
<li>
<p:commandLink oncomplete="PF('curationStatusHistoryDialog').show()"
update=":curationStatusHistoryForm"
rendered="#{DatasetPage.canSeeCurationStatus()}">
#{bundle['dataset.viewCurationStatusHistory']}
</p:commandLink>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -2054,6 +2061,25 @@
</div>
</p:fragment>
</p:dialog>
<p:dialog id="curationStatusHistoryDialog" header="#{bundle['dataset.curationStatusHistory']}"
widgetVar="curationStatusHistoryDialog" modal="true" responsive="true">
<h:form id="curationStatusHistoryForm">
<p:dataTable value="#{DatasetPage.version.curationStatuses}" var="status"
styleClass="margin-bottom-half" rowIndexVar="index">
<p:column headerText="#{bundle['dataset.curationStatus']}">
<h:outputText value="#{status.label}"/>
</p:column>
<p:column headerText="#{bundle['dataset.curationDate']}">
<h:outputText value="#{status.createTime}">
<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" timeZone="#{dataverseSession.timeZone}"/>
</h:outputText>
</p:column>
<p:column headerText="#{bundle['dataset.curationAssigner']}">
<h:outputText value="#{status.assigner}"/>
</p:column>
</p:dataTable>
</h:form>
</p:dialog>
<p:remoteCommand name="returnToAuthorCommand" oncomplete="PF('sendBackToContributor').hide();" update=":messagePanel" actionListener="#{DatasetPage.sendBackToContributor}"/>
<p:remoteCommand name="linkEditTerms" actionListener="#{DatasetPage.edit('LICENSE')}" update="@form,:datasetForm,:messagePanel">
<f:setPropertyActionListener target="#{DatasetPage.selectedTabIndex}" value="0" />
Expand Down

0 comments on commit 0921dcb

Please sign in to comment.