From db190a82b705eab493d1411c0617a19f13960568 Mon Sep 17 00:00:00 2001 From: Mark MacGillivray Date: Wed, 11 Dec 2024 00:23:58 +0000 Subject: [PATCH 1/2] alter syp bulk to use new api --- content/shareyourpaper/setup.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/shareyourpaper/setup.html b/content/shareyourpaper/setup.html index d2c7950c..0eaf72ef 100644 --- a/content/shareyourpaper/setup.html +++ b/content/shareyourpaper/setup.html @@ -697,7 +697,8 @@

OAB Only TODO is this still needed

}); var deposits = function(e) { - var addr = api + '/deposited.csv?' + //var addr = api + '/deposited.csv?' + var addr = 'https://' + (api.indexOf('dev.') !== -1 ? 'bg.beta.oa.works' : 'bg.api.oa.works') + '/deposited.csv?' if (noddy.user !== undefined && noddy.user.account !== undefined && noddy.user.account._id !== undefined) addr += 'uid=' + noddy.user.account._id + '&'; if ($(this).attr('id') === 'all_file_deposits') addr += 'submitted=true&'; if ($('#depositdate').val()) addr += 'fromdate=' + new Date($('#depositdate').datepicker('getDate')).valueOf() + '&'; From 598b3fc1825b6b8fe3797e70a47e178746791060 Mon Sep 17 00:00:00 2001 From: Mark MacGillivray Date: Wed, 11 Dec 2024 00:29:03 +0000 Subject: [PATCH 2/2] alter syp bulk with url console log for easier checking --- content/shareyourpaper/setup.html | 1 + 1 file changed, 1 insertion(+) diff --git a/content/shareyourpaper/setup.html b/content/shareyourpaper/setup.html index 0eaf72ef..262d412a 100644 --- a/content/shareyourpaper/setup.html +++ b/content/shareyourpaper/setup.html @@ -702,6 +702,7 @@

OAB Only TODO is this still needed

if (noddy.user !== undefined && noddy.user.account !== undefined && noddy.user.account._id !== undefined) addr += 'uid=' + noddy.user.account._id + '&'; if ($(this).attr('id') === 'all_file_deposits') addr += 'submitted=true&'; if ($('#depositdate').val()) addr += 'fromdate=' + new Date($('#depositdate').datepicker('getDate')).valueOf() + '&'; + console.log(addr); $(this).attr('href',addr); } $('body').on('click','#all_deposits',deposits);