[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% IF op =='add_form' %]
[% IF job %]
View background job
[% ELSE %]
Background jobs
[% END %] › Background jobs › [% END %]
Administration › Koha
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'header.inc' %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'cannot_view_job' %]
Insufficient permission to see this job.
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% IF op == 'view' %]
Detail of job #[% job.id | html %]
[% IF CAN_user_parameters_manage_background_jobs %]
Return to the job list
[% END %]
[% END %]
[% IF op == 'list' %]
Background jobs
[% IF jobs.count %]
Job ID
Status
Progress
Type
Queued
Started
Ended
Actions
[% 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 'batch_authority_record_modification' %]Batch authority 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 %]
[% END %]
[% ELSE %]
There are no background jobs yet.
[% END %]
[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/admin-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]