Skip to content

Commit

Permalink
Added help text and link to user guide for Download URL on file pg [ref
Browse files Browse the repository at this point in the history
  • Loading branch information
mheppler committed Dec 18, 2018
1 parent 0b625dd commit 3f9319b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions doc/sphinx-guides/source/user/find-use-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ Ingested files can be downloaded in several different ways.
- A subset of the columns of the data


.. _url_download:

Downloading via URL
^^^^^^^^^^^^^^^^^^^^

Dataverse displays a plaintext URL for the location of the file. To ensure a reliable, resumable download, we recommend using `GNU Wget <https://www.gnu.org/software/wget/>`_ in a command line terminal or using a download manager software of your choice. If you try to simply paste the URL into your web browser then the download may overwhelm your browser, resulting in an interrupted, timed out, or otherwise failed download.


.. _rsync_download:

Downloading a Dataverse Package via rsync
Expand Down
1 change: 1 addition & 0 deletions src/main/java/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,7 @@ file.DatasetVersion=Version
file.metadataTab.fileMetadata.header=File Metadata
file.metadataTab.fileMetadata.persistentid.label=Data File Persistent ID
file.metadataTab.fileMetadata.downloadUrl.label=Download URL
file.metadataTab.fileMetadata.downloadUrl.info=Use the Download URL in a Wget command or a download manager to avoid interrupted downloads, time outs or other failures. <a href="{0}/{1}/user/find-use-data.html#downloading-via-url" title="User Guide - Downloading via URL" target="_blank">User Guide - Downloading via URL</a>
file.metadataTab.fileMetadata.unf.label=File UNF
file.metadataTab.fileMetadata.size.label=Size
file.metadataTab.fileMetadata.type.label=Type
Expand Down
9 changes: 8 additions & 1 deletion src/main/webapp/file.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,14 @@
#{bundle['file.metadataTab.fileMetadata.downloadUrl.label']}
</label>
<div class="col-sm-9">
<h:outputText value="#{FilePage.publicDownloadUrl}"/>
<p class="help-block">
<span class="glyphicon glyphicon-info-sign"></span>
<h:outputFormat value=" #{bundle['file.metadataTab.fileMetadata.downloadUrl.info']}" escape="false">
<f:param value="#{systemConfig.guidesBaseUrl}"/>
<f:param value="#{systemConfig.guidesVersion}"/>
</h:outputFormat>
</p>
<code><h:outputText value="#{FilePage.publicDownloadUrl}"/></code>
</div>
</div>
<div class="form-group" jsf:rendered="#{!(empty FilePage.file.unf)}">
Expand Down

0 comments on commit 3f9319b

Please sign in to comment.