[% USE raw %] [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › [% IF op =='add_form' %]Background jobs› [% IF job %] View background job[% ELSE %] Background jobs[% END %][% END %] [% 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 %]

  1. Job ID: [% job.id | html %]
  2. [% job.status | html %]
  3. [% job.progress || 0 | html %] / [% job.size | html %]
  4. [% job.type | html %]
  5. [% job.enqueued_on | html %]
  6. [% job.started_on | html %]
  7. [% job.ended_on | html %]
  8. [% SWITCH job.type %] [% CASE 'batch_biblio_record_modification' %] [% SET report = job.report %] [% IF report %] [% IF report.total_records == report.total_success %]
    All records have successfully been modified! New batch record modification [% IF lists.count %]
    Add modified records to the following list: [% END %]
    [% 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 'batch_authority_record_modification' %] [% SET report = job.report %] [% IF report %] [% IF report.total_records == report.total_success %]
    All records have successfully been modified! New batch record modification
    [% 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 "[% job.type | html %]" not handled in the template [% END %]
  9. [% 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.[% IF m.error %] ([% m.error | html %])[% END %]. [% CASE 'biblio_modified' %] Bibliographic record [% m.biblionumber | html %] has successfully been modified. [% END %]
    [% END %] [% CASE 'batch_authority_record_modification' %] [% FOR m IN job.messages %]
    [% IF m.type == 'success' %] [% ELSIF m.type == 'warning' %] [% ELSIF m.type == 'error' %] [% END %] [% SWITCH m.code %] [% CASE 'authority_not_modified' %] Authority record [% m.authid | html %] has not been modified. An error occurred on modifying it[% IF m.error %] ([% m.error | html %])[% END %]. [% CASE 'authority_modified' %] Authority record [% m.authid | html %] has successfully been modified. [% END %]
    [% END %] [% CASE %]Job type "[% job.type | html %]" not handled in the template [% END %]
[% IF CAN_user_parameters_manage_background_jobs %] Return to the job list [% END %] [% END %] [% IF op == 'list' %]

Background jobs

[% IF jobs.count %] [% FOREACH job IN jobs %] [% END %]
Job ID Status Progress Type Enqueued on Started on Ended on Actions
[% 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 %]
[% 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' %]