|
Lines 317-328
Link Here
|
| 317 |
}); |
317 |
}); |
| 318 |
|
318 |
|
| 319 |
const job_statuses = [ |
319 |
const job_statuses = [ |
| 320 |
{'_id': 'new', '_str': _('New')}, |
320 |
{'_id': 'new', '_str': _("New")}, |
| 321 |
{'_id': 'cancelled', '_str': _('Cancelled')}, |
321 |
{'_id': 'cancelled', '_str': _("Cancelled")}, |
| 322 |
{'_id': 'finished', '_str': _('Finished')}, |
322 |
{'_id': 'finished', '_str': _("Finished")}, |
| 323 |
{'_id': 'started', '_str': _('Started')}, |
323 |
{'_id': 'started', '_str': _("Started")}, |
| 324 |
{'_id': 'running', '_str': _('Running')}, |
324 |
{'_id': 'running', '_str': _("Running")}, |
| 325 |
{'_id': 'failed', '_str': _('Failed')}, |
325 |
{'_id': 'failed', '_str': _("Failed")}, |
| 326 |
]; |
326 |
]; |
| 327 |
function get_job_status (status) { |
327 |
function get_job_status (status) { |
| 328 |
let status_lib = job_statuses.find( s => s._id == status ); |
328 |
let status_lib = job_statuses.find( s => s._id == status ); |
|
Lines 335-373
Link Here
|
| 335 |
const job_types = [ |
335 |
const job_types = [ |
| 336 |
{ |
336 |
{ |
| 337 |
'_id': 'batch_biblio_record_modification', |
337 |
'_id': 'batch_biblio_record_modification', |
| 338 |
'_str': _('Batch bibliographic record modification') |
338 |
'_str': _("Batch bibliographic record modification") |
| 339 |
}, |
339 |
}, |
| 340 |
{ |
340 |
{ |
| 341 |
'_id': 'batch_biblio_record_deletion', |
341 |
'_id': 'batch_biblio_record_deletion', |
| 342 |
'_str': _('Batch bibliographic record record deletion') |
342 |
'_str': _("Batch bibliographic record record deletion") |
| 343 |
}, |
343 |
}, |
| 344 |
{ |
344 |
{ |
| 345 |
'_id': 'batch_authority_record_modification', |
345 |
'_id': 'batch_authority_record_modification', |
| 346 |
'_str': _('Batch authority record modification') |
346 |
'_str': _("Batch authority record modification") |
| 347 |
}, |
347 |
}, |
| 348 |
{ |
348 |
{ |
| 349 |
'_id': 'batch_authority_record_deletion', |
349 |
'_id': 'batch_authority_record_deletion', |
| 350 |
'_str': _('Batch authority record deletion') |
350 |
'_str': _("Batch authority record deletion") |
| 351 |
}, |
351 |
}, |
| 352 |
{ |
352 |
{ |
| 353 |
'_id': 'batch_item_record_modification', |
353 |
'_id': 'batch_item_record_modification', |
| 354 |
'_str': _('Batch item record modification') |
354 |
'_str': _("Batch item record modification") |
| 355 |
}, |
355 |
}, |
| 356 |
{ |
356 |
{ |
| 357 |
'_id': 'batch_item_record_deletion', |
357 |
'_id': 'batch_item_record_deletion', |
| 358 |
'_str': _('Batch item record deletion') |
358 |
'_str': _("Batch item record deletion") |
| 359 |
}, |
359 |
}, |
| 360 |
{ |
360 |
{ |
| 361 |
'_id': 'batch_hold_cancel', |
361 |
'_id': 'batch_hold_cancel', |
| 362 |
'_str': _('Batch hold cancellation') |
362 |
'_str': _("Batch hold cancellation") |
| 363 |
}, |
363 |
}, |
| 364 |
{ |
364 |
{ |
| 365 |
'_id': 'update_elastic_index' |
365 |
'_id': 'update_elastic_index' |
| 366 |
, '_str': _('Update Elasticsearch index') |
366 |
, '_str': _("Update Elasticsearch index") |
| 367 |
}, |
367 |
}, |
| 368 |
{ |
368 |
{ |
| 369 |
'_id': 'update_holds_queue_for_biblios', |
369 |
'_id': 'update_holds_queue_for_biblios', |
| 370 |
'_str': _('Holds queue update') |
370 |
'_str': _("Holds queue update") |
| 371 |
} |
371 |
} |
| 372 |
]; |
372 |
]; |
| 373 |
|
373 |
|
|
Lines 387-393
Link Here
|
| 387 |
now.setHours(now.getHours() - 1); |
387 |
now.setHours(now.getHours() - 1); |
| 388 |
return { ">": now.toISOString() }; |
388 |
return { ">": now.toISOString() }; |
| 389 |
} else { |
389 |
} else { |
| 390 |
console.log("not checked"); |
|
|
| 391 |
return { "<": now.toISOString() }; |
390 |
return { "<": now.toISOString() }; |
| 392 |
} |
391 |
} |
| 393 |
}, |
392 |
}, |
| 394 |
- |
|
|