Skip to content

Commit

Permalink
Small correction for 'export to preservation'
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarwer committed Jun 17, 2022
1 parent b47d614 commit 323eff1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion WebContent/ajax/async/setExportableAssets.jsp
Expand Up @@ -58,7 +58,7 @@ if(opID==null){
%>

<%!
public void setExportableAssets(Multimap<String,String> params, Consumer<StatusProvider> setStatusProvider, HttpSession session, JSONObject resultJSON, Archive archive){
private void setExportableAssets(Multimap<String,String> params, Consumer<StatusProvider> setStatusProvider, HttpSession session, JSONObject resultJSON, Archive archive){
if(setStatusProvider!=null)
setStatusProvider.accept(new StaticStatusProvider("setting exportable assets..."));
Expand Down
36 changes: 18 additions & 18 deletions WebContent/js/epadd.js
Expand Up @@ -313,7 +313,7 @@ epadd.submitFolders = function()
for (var i=0; i < checked.length; i++)
{
store = checked[i].getAttribute("STORE");
urlParams += encodeURIComponent(store) + '^-^';
urlParams += encodeURIComponent(checked[i].name) + '^-^';
}
urlParams = "exportableAssetsFiles="+urlParams;

Expand All @@ -330,28 +330,28 @@ epadd.submitFolders = function()
}

function getSelectedFolderParams() {
var checked = $('input.folder:checked');
var urlParams = "";
if (checked.length == 0)
{
epadd.error ("Please select at least one folder.");
throw "Error";
}

for (var i=0; i < checked.length; i++)
{
var store = checked[i].getAttribute("STORE");
urlParams += "folder=" + encodeURIComponent(store) + '^-^' + encodeURIComponent(checked[i].name) + "&";
}

// convert from, to fields to dateRange field needed by doFetchAndIndex
var checked = $('input.folder:checked');
var urlParams = "";
if (checked.length == 0)
{
epadd.error ("Please select at least one folder.");
throw "Error";
}

for (var i=0; i < checked.length; i++)
{
var store = checked[i].getAttribute("STORE");
urlParams += "folder=" + encodeURIComponent(store) + '^-^' + encodeURIComponent(checked[i].name) + "&";
}

// convert from, to fields to dateRange field needed by doFetchAndIndex
/*
if ($('#from').val().length > 0 && $('#to').val().length > 0)
urlParams += '&dateRange=' + $('#from').val() + '-' + $('#to').val();
*/

epadd.log ('urlparams = ' + urlParams);
return urlParams;
epadd.log ('urlparams = ' + urlParams);
return urlParams;
}
try {
var post_params = getSelectedFolderParams() + '&period=Monthly&downloadAttachments=true';
Expand Down

0 comments on commit 323eff1

Please sign in to comment.