|
Lines 191-202
Link Here
|
| 191 |
[% INCLUDE 'datatables.inc' %] |
191 |
[% INCLUDE 'datatables.inc' %] |
| 192 |
<script> |
192 |
<script> |
| 193 |
const job_statuses = [ |
193 |
const job_statuses = [ |
| 194 |
{'_id': 'new', '_str': _('New')}, |
194 |
{'_id': 'new', '_str': _("New")}, |
| 195 |
{'_id': 'cancelled', '_str': _('Cancelled')}, |
195 |
{'_id': 'cancelled', '_str': _("Cancelled")}, |
| 196 |
{'_id': 'finished', '_str': _('Finished')}, |
196 |
{'_id': 'finished', '_str': _("Finished")}, |
| 197 |
{'_id': 'started', '_str': _('Started')}, |
197 |
{'_id': 'started', '_str': _("Started")}, |
| 198 |
{'_id': 'running', '_str': _('Running')}, |
198 |
{'_id': 'running', '_str': _("Running")}, |
| 199 |
{'_id': 'failed', '_str': _('Failed')}, |
199 |
{'_id': 'failed', '_str': _("Failed")}, |
| 200 |
]; |
200 |
]; |
| 201 |
function get_job_status (status) { |
201 |
function get_job_status (status) { |
| 202 |
let status_lib = job_statuses.find( s => s._id == status ); |
202 |
let status_lib = job_statuses.find( s => s._id == status ); |
|
Lines 209-247
Link Here
|
| 209 |
const job_types = [ |
209 |
const job_types = [ |
| 210 |
{ |
210 |
{ |
| 211 |
'_id': 'batch_biblio_record_modification', |
211 |
'_id': 'batch_biblio_record_modification', |
| 212 |
'_str': _('Batch bibliographic record modification') |
212 |
'_str': _("Batch bibliographic record modification") |
| 213 |
}, |
213 |
}, |
| 214 |
{ |
214 |
{ |
| 215 |
'_id': 'batch_biblio_record_deletion', |
215 |
'_id': 'batch_biblio_record_deletion', |
| 216 |
'_str': _('Batch bibliographic record record deletion') |
216 |
'_str': _("Batch bibliographic record record deletion") |
| 217 |
}, |
217 |
}, |
| 218 |
{ |
218 |
{ |
| 219 |
'_id': 'batch_authority_record_modification', |
219 |
'_id': 'batch_authority_record_modification', |
| 220 |
'_str': _('Batch authority record modification') |
220 |
'_str': _("Batch authority record modification") |
| 221 |
}, |
221 |
}, |
| 222 |
{ |
222 |
{ |
| 223 |
'_id': 'batch_authority_record_deletion', |
223 |
'_id': 'batch_authority_record_deletion', |
| 224 |
'_str': _('Batch authority record deletion') |
224 |
'_str': _("Batch authority record deletion") |
| 225 |
}, |
225 |
}, |
| 226 |
{ |
226 |
{ |
| 227 |
'_id': 'batch_item_record_modification', |
227 |
'_id': 'batch_item_record_modification', |
| 228 |
'_str': _('Batch item record modification') |
228 |
'_str': _("Batch item record modification") |
| 229 |
}, |
229 |
}, |
| 230 |
{ |
230 |
{ |
| 231 |
'_id': 'batch_item_record_deletion', |
231 |
'_id': 'batch_item_record_deletion', |
| 232 |
'_str': _('Batch item record deletion') |
232 |
'_str': _("Batch item record deletion") |
| 233 |
}, |
233 |
}, |
| 234 |
{ |
234 |
{ |
| 235 |
'_id': 'batch_hold_cancel', |
235 |
'_id': 'batch_hold_cancel', |
| 236 |
'_str': _('Batch hold cancellation') |
236 |
'_str': _("Batch hold cancellation") |
| 237 |
}, |
237 |
}, |
| 238 |
{ |
238 |
{ |
| 239 |
'_id': 'update_elastic_index' |
239 |
'_id': 'update_elastic_index' |
| 240 |
, '_str': _('Update Elasticsearch index') |
240 |
, '_str': _("Update Elasticsearch index") |
| 241 |
}, |
241 |
}, |
| 242 |
{ |
242 |
{ |
| 243 |
'_id': 'update_holds_queue_for_biblios', |
243 |
'_id': 'update_holds_queue_for_biblios', |
| 244 |
'_str': _('Holds queue update') |
244 |
'_str': _("Holds queue update") |
| 245 |
} |
245 |
} |
| 246 |
]; |
246 |
]; |
| 247 |
|
247 |
|
|
Lines 261-267
Link Here
|
| 261 |
now.setHours(now.getHours() - 1); |
261 |
now.setHours(now.getHours() - 1); |
| 262 |
return { ">": now.toISOString() }; |
262 |
return { ">": now.toISOString() }; |
| 263 |
} else { |
263 |
} else { |
| 264 |
console.log("not checked"); |
|
|
| 265 |
return { "<": now.toISOString() }; |
264 |
return { "<": now.toISOString() }; |
| 266 |
} |
265 |
} |
| 267 |
}, |
266 |
}, |
| 268 |
- |
|
|