Skip to content

Commit c0201e6

Browse files
committed
YDA-6078: support empty collections in download as zip
1 parent 61f3704 commit c0201e6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

deposit/static/deposit/js/dlgFileBrowseOperations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ $(document).ready(function () {
104104
// Fetch manifest and add each file in the collection
105105
const { data } = await Yoda.call(
106106
'research_manifest',
107-
{ coll: Yoda.basePath + path },
107+
{ coll: Yoda.basePath + path, empty_colls: true },
108108
{ quiet: true, rawResult: true }
109109
)
110110
for (const item of data) {

research/static/research/js/dlgFileBrowseOperations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ $(document).ready(function () {
100100
// Fetch manifest and add each file in the collection
101101
const { data } = await Yoda.call(
102102
'research_manifest',
103-
{ coll: Yoda.basePath + path },
103+
{ coll: Yoda.basePath + path, empty_colls: true },
104104
{ quiet: true, rawResult: true }
105105
)
106106
for (const item of data) {

vault/static/vault/js/dlgSelectCollection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ $('body').on('click', 'a.multiple-download', async function (event) {
359359
// Fetch manifest and add each file in the collection
360360
const { data } = await Yoda.call(
361361
'research_manifest',
362-
{ coll: Yoda.basePath + path },
362+
{ coll: Yoda.basePath + path, empty_colls: true },
363363
{ quiet: true, rawResult: true }
364364
)
365365
for (const item of data) {

0 commit comments

Comments
 (0)