[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% IF op == 'view' %]
Detail of job #[% job.id | html %]
Job ID: [% job.id | html %]
Status: [% job.status | html %]
Progress: [% job.progress || 0 | html %] / [% job.size | html %]
Type: [% job.type | html %]
enqueued_on: [% job.enqueued_on | html %]
started_on: [% job.started_on | html %]
ended_on: [% job.ended_on | html %]
Report:
[% SWITCH job.type %]
[% CASE 'batch_biblio_record_modification' %]
[% SET report = job.report %]
[% IF report %]
[% IF report.total_records == report.total_success %]
[% ELSE %]
[% report.total_success | html %] / [% report.total_records | html %] records have successfully been modified. Some errors occurred.
[% IF job.status == 'cancelled' %]The job has been cancelled before it finished.[% END %]
New batch record modification
[% END %]
[% END %]
[% CASE %][% job.type | html %]
[% END %]
Detailed messages:
[% SWITCH job.type %]
[% CASE 'batch_biblio_record_modification' %]
[% FOR m IN job.messages %]
[% IF m.type == 'success' %]
[% ELSIF m.type == 'warning' %]
[% ELSIF m.type == 'error' %]
[% END %]
[% SWITCH m.code %]
[% CASE 'biblio_not_modified' %]
Bibliographic record
[% m.biblionumber | html %] has not been modified. An error occurred on modifying it.
[% CASE 'biblio_modified' %]
Bibliographic record
[% m.biblionumber | html %] has successfully been modified.
Next steps
New batch record modification
[% IF lists.count %]
Add modified records to the following list:
Select a list
[% FOREACH list IN lists %]
[% list.shelfname | html %]
[% END %]
[% END %]
[% END %]
[% END %]
[% CASE %][% job.type | html %]
[% END %]
Return to the job list
[% END %]
[% IF op == 'list' %]
Background jobs
[% IF jobs.count %]
Job ID
Status
Progress
Type
Enqueued on
Started on
Ended on
Actions (NIY)
[% FOREACH job IN jobs %]
[% job.id | html %]
[% job.status | html %]
[% job.progress || 0 | html %] / [% job.size | html %]
[% SWITCH job.type %]
[% CASE 'batch_biblio_record_modification' %]Batch bibliographic record modification
[% CASE %][% job.type | html %]
[% END %]
[% job.enqueued_on | html %]
[% job.started_on| html %]
[% job.ended_on| html %]
View
[% IF job.status == 'new' || job.status == 'started' %]
Cancel
[% END %]
Replay
[% END %]
[% ELSE %]
There are no background jobs yet.
[% END %]
[% END %]
[% INCLUDE 'admin-menu.inc' %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/admin-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]