Skip to content

Commit

Permalink
alter syp bulk to use new api
Browse files Browse the repository at this point in the history
  • Loading branch information
markmacgillivray committed Dec 11, 2024
1 parent 3d536f8 commit db190a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/shareyourpaper/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ <h2>OAB Only TODO is this still needed</h2>
});

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() + '&';
Expand Down

0 comments on commit db190a8

Please sign in to comment.