Lines 311-322
Link Here
|
311 |
}); |
311 |
}); |
312 |
|
312 |
|
313 |
const job_statuses = [ |
313 |
const job_statuses = [ |
314 |
{'_id': 'new', '_str': _('New')}, |
314 |
{'_id': 'new', '_str': _("New")}, |
315 |
{'_id': 'cancelled', '_str': _('Cancelled')}, |
315 |
{'_id': 'cancelled', '_str': _("Cancelled")}, |
316 |
{'_id': 'finished', '_str': _('Finished')}, |
316 |
{'_id': 'finished', '_str': _("Finished")}, |
317 |
{'_id': 'started', '_str': _('Started')}, |
317 |
{'_id': 'started', '_str': _("Started")}, |
318 |
{'_id': 'running', '_str': _('Running')}, |
318 |
{'_id': 'running', '_str': _("Running")}, |
319 |
{'_id': 'failed', '_str': _('Failed')}, |
319 |
{'_id': 'failed', '_str': _("Failed")}, |
320 |
]; |
320 |
]; |
321 |
function get_job_status (status) { |
321 |
function get_job_status (status) { |
322 |
let status_lib = job_statuses.find( s => s._id == status ); |
322 |
let status_lib = job_statuses.find( s => s._id == status ); |
Lines 329-367
Link Here
|
329 |
const job_types = [ |
329 |
const job_types = [ |
330 |
{ |
330 |
{ |
331 |
'_id': 'batch_biblio_record_modification', |
331 |
'_id': 'batch_biblio_record_modification', |
332 |
'_str': _('Batch bibliographic record modification') |
332 |
'_str': _("Batch bibliographic record modification") |
333 |
}, |
333 |
}, |
334 |
{ |
334 |
{ |
335 |
'_id': 'batch_biblio_record_deletion', |
335 |
'_id': 'batch_biblio_record_deletion', |
336 |
'_str': _('Batch bibliographic record record deletion') |
336 |
'_str': _("Batch bibliographic record record deletion") |
337 |
}, |
337 |
}, |
338 |
{ |
338 |
{ |
339 |
'_id': 'batch_authority_record_modification', |
339 |
'_id': 'batch_authority_record_modification', |
340 |
'_str': _('Batch authority record modification') |
340 |
'_str': _("Batch authority record modification") |
341 |
}, |
341 |
}, |
342 |
{ |
342 |
{ |
343 |
'_id': 'batch_authority_record_deletion', |
343 |
'_id': 'batch_authority_record_deletion', |
344 |
'_str': _('Batch authority record deletion') |
344 |
'_str': _("Batch authority record deletion") |
345 |
}, |
345 |
}, |
346 |
{ |
346 |
{ |
347 |
'_id': 'batch_item_record_modification', |
347 |
'_id': 'batch_item_record_modification', |
348 |
'_str': _('Batch item record modification') |
348 |
'_str': _("Batch item record modification") |
349 |
}, |
349 |
}, |
350 |
{ |
350 |
{ |
351 |
'_id': 'batch_item_record_deletion', |
351 |
'_id': 'batch_item_record_deletion', |
352 |
'_str': _('Batch item record deletion') |
352 |
'_str': _("Batch item record deletion") |
353 |
}, |
353 |
}, |
354 |
{ |
354 |
{ |
355 |
'_id': 'batch_hold_cancel', |
355 |
'_id': 'batch_hold_cancel', |
356 |
'_str': _('Batch hold cancellation') |
356 |
'_str': _("Batch hold cancellation") |
357 |
}, |
357 |
}, |
358 |
{ |
358 |
{ |
359 |
'_id': 'update_elastic_index' |
359 |
'_id': 'update_elastic_index' |
360 |
, '_str': _('Update Elasticsearch index') |
360 |
, '_str': _("Update Elasticsearch index") |
361 |
}, |
361 |
}, |
362 |
{ |
362 |
{ |
363 |
'_id': 'update_holds_queue_for_biblios', |
363 |
'_id': 'update_holds_queue_for_biblios', |
364 |
'_str': _('Holds queue update') |
364 |
'_str': _("Holds queue update") |
365 |
} |
365 |
} |
366 |
]; |
366 |
]; |
367 |
|
367 |
|
Lines 381-387
Link Here
|
381 |
now.setHours(now.getHours() - 1); |
381 |
now.setHours(now.getHours() - 1); |
382 |
return { ">": now.toISOString() }; |
382 |
return { ">": now.toISOString() }; |
383 |
} else { |
383 |
} else { |
384 |
console.log("not checked"); |
|
|
385 |
return { "<": now.toISOString() }; |
384 |
return { "<": now.toISOString() }; |
386 |
} |
385 |
} |
387 |
}, |
386 |
}, |
388 |
- |
|
|