Skip to content

Commit

Permalink
Added render logic to Access Dataset btn and ui:remove to Download pl…
Browse files Browse the repository at this point in the history
…aceholder on dataset pg [ref #6684]
  • Loading branch information
mheppler committed May 29, 2020
1 parent c114f51 commit 2a95581
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@
and DatasetPage.canPublishDataverse()
and (DatasetPage.dataset.owner.owner != null and !DatasetPage.dataset.owner.owner.released)
and permissionsWrapper.canIssuePublishDatasetCommand(DatasetPage.dataset)}"/>
<ui:param name="showAccessDatasetButtonGroup" value="#{DatasetPage.canDownloadFiles() and (!DatasetPage.workingVersion.deaccessioned
<!-- TO-DO #3513 DOWNLOAD ALL LINK -->
<!-- ADDED TOOLS SPECIFIC LOGIC TO DatasetPage.canDownloadFiles() RENDER LOGIC, CAN BE REMOVED WHEN DOWNLOAD ALL FILES IS WIRED UP -->
<ui:param name="showAccessDatasetButtonGroup" value="#{(DatasetPage.canDownloadFiles()
and (DatasetPage.datasetExploreTools.size() >= 1
or (DatasetPage.sessionUserAuthenticated and DatasetPage.showComputeButton())))
and (!DatasetPage.workingVersion.deaccessioned
or (DatasetPage.workingVersion.deaccessioned and DatasetPage.canUpdateDataset()))}"/>
<ui:define name="meta_header">
<meta name="description" content="#{DatasetPage.description}"/>
Expand Down Expand Up @@ -146,6 +151,8 @@
#{bundle['dataset.accessBtn']} <span class="caret"></span>
</button>
<ul class="dropdown-menu pull-right text-left">

<ui:remove>
<!-- DOWNLOAD -->
<!-- TO-DO #3513 DOWNLOAD ALL LINK -->
<ui:fragment rendered="#{DatasetPage.canDownloadFiles()}">
Expand All @@ -155,6 +162,7 @@
</li>
</ui:fragment>
<!-- END: DOWNLOAD -->
</ui:remove>

<!-- EXPLORE -->
<ui:fragment rendered="#{DatasetPage.datasetExploreTools.size() >= 1}">
Expand Down

0 comments on commit 2a95581

Please sign in to comment.