Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7079 guides download all and analytics #7110

Merged
merged 5 commits into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I assume we forgot to remove this line about subset as part of #6098.



.. _url_download:

Downloading via URL
Expand Down