Skip to content

Commit

Permalink
Globus downloads should not be subject to the multi-file zip download…
Browse files Browse the repository at this point in the history
… size limits. #11057
  • Loading branch information
landreev committed Jan 14, 2025
1 parent 3de704b commit 71de542
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/webapp/filesFragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
</p>
</div>
</div>
<div class="row" jsf:rendered="#{(DatasetPage.sizeOfSelectedMaxNumeric gt settingsWrapper.zipDownloadLimit)
<div class="row" jsf:rendered="#{(!DatasetPage.isVersionHasGlobus()) and (DatasetPage.sizeOfSelectedMaxNumeric gt settingsWrapper.zipDownloadLimit)
and DatasetPage.selectedFiles.size() > 1}">
<div class="col-xs-12 bg-warning text-left" style="font-weight:normal;padding-top:.5em;">
<h:outputFormat value="#{bundle['file.zip.download.exceeds.limit']}">
Expand Down Expand Up @@ -544,7 +544,12 @@

<!-- TO-DO FIX RSYNC LOGIC !fileMetadata.dataFile.filePackage or
fileMetadata.dataFile.filePackage and systemConfig.HTTPDownload -->
<ui:fragment rendered="#{DatasetPage.isShowQueryButton(fileMetadata.dataFile.id) and fileDownloadHelper.canDownloadFile(fileMetadata)}">
<ui:fragment rendered="#{fileMetadata.dataFile.tabularData
and fileMetadata.dataFile.released
and not fileMetadata.dataFile.restricted
and not dataFileServiceBean.isActivelyEmbargoed(fileMetadata)
and DatasetPage.isShowQueryButton(fileMetadata.dataFile.id)
and fileDownloadHelper.canDownloadFile(fileMetadata)}">
<a class="btn-preview btn btn-link bootstrap-button-tooltip" title="#{DatasetPage.getQueryToolsForDataFile(fileMetadata.dataFile.id).get(0).getDisplayNameLang()}"
href="#{widgetWrapper.wrapURL('/file.xhtml?'.concat(!empty fileMetadata.dataFile.globalId ? 'persistentId=' : 'fileId=').concat(!empty fileMetadata.dataFile.globalId ? fileMetadata.dataFile.globalId.asString() : fileMetadata.dataFile.id).concat('&amp;version=').concat(fileMetadata.datasetVersion.friendlyVersionNumber)).concat('&amp;toolType=QUERY')}">
<img src="#{resource['images/Robot-Icon_2.png']}" width="32" height="32" /><span class="sr-only">#{bundle.preview} "#{empty(fileMetadata.directoryLabel) ? "":fileMetadata.directoryLabel.concat("/")}#{fileMetadata.label}"</span>
Expand Down

0 comments on commit 71de542

Please sign in to comment.