Skip to content

Commit

Permalink
Use the proper packageService download URL
Browse files Browse the repository at this point in the history
Use the proper packageService download URL

Reference: #2373
#2424
  • Loading branch information
rushirajnenuji committed Jun 3, 2024
1 parent 59466ab commit 07b1243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/js/views/DownloadButtonView.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ define(['jquery', 'underscore', 'backbone', 'models/SolrResult', 'models/DataONE
(this.model.get("type") == "DataPackage"))) {
hrefLink = this.model.getPackageURL();
}
if (this.model instanceof PackageModel &&
this.nested &&
if (this.model instanceof PackageModel &&
((this.model.get("formatType") == "RESOURCE") ||
(this.model.get("type") == "DataPackage") ||
(this.model.get("type") == "Package"))) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/views/MetadataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ define(['jquery',

// Add Package Download
// create an instance of DownloadButtonView to handle package downloads
this.downloadButtonView = new DownloadButtonView({id: packageModel.get("id"), model: packageModel, view: "actionsView"});
this.downloadButtonView = new DownloadButtonView({ model: packageModel, view: "actionsView"});

// render
this.downloadButtonView.render();
Expand Down

0 comments on commit 07b1243

Please sign in to comment.