Skip to content

Commit

Permalink
Merge pull request #7110 from IQSS/7079-guides-download-all-and-analy…
Browse files Browse the repository at this point in the history
…tics

7079 guides download all and analytics
  • Loading branch information
kcondon committed Jul 28, 2020
2 parents a547fec + 2ac69d7 commit 352b17f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
function enableAnalyticsEventCapture() {
// Download button
$(document).on("click", ".btn-download, .btn-download.dropdown-toggle + ul.dropdown-menu li a", function() {
var category = $(this).text();
var category = stripSize($(this).text());
var label = getFileId($(this));
gtag('event', 'Download',{'event_category' : category,
'event_label' : label});
Expand Down Expand Up @@ -145,5 +145,13 @@
label = label.substring(label.indexOf('/dataverse/') + 11, index).split(/[?#]/)[0];
return(label);
}

function stripSize(category) {
var index = category.indexOf('ZIP (');
if(index >= 0) {
category = category.substring(0, index + 3);
}
return(category);
}
//]]>
</script>
7 changes: 3 additions & 4 deletions doc/sphinx-guides/source/user/find-use-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ In installations that have added file-level citations, you can find and download
Download Files
--------------

Within the Files tab on a dataset page, you can download the files in that dataset. To download more than one file at a time, select the files you would like to download and then click the Download button above the files. The selected files will download in .zip format that preserves any folder structure that the dataset owner had set up.
If you want to download all files in a dataset, you can click the Access Dataset dropdown on the dataset page and select one of the download options. The dataset's files will download in .zip format and will preserve any folder structure that the dataset owner had set up.

If you'd like to download a single file or some subset of the dataset's files, you can use the Files tab. To download more than one file at a time, select the files you would like to download and then click the Download button above the files. The dataset's files will download in .zip format and will preserve any folder structure that the dataset owner had set up.

You may also download a file from its file page by clicking the Download button in the upper right corner of the page, or by :ref:`url_download` under the Metadata tab on the lower half of the page.

Expand All @@ -117,9 +119,6 @@ Ingested files can be downloaded in several different ways.

- The variable metadata for the file in DDI format

- A subset of the columns of the data


.. _url_download:

Downloading via URL
Expand Down

0 comments on commit 352b17f

Please sign in to comment.