[% BLOCK report %] [% SET report = job.report %] [% IF report %] [% IF report.total_holds == report.total_success %]
All holds have successfully been cancelled!
[% ELSE %]
[% report.total_success | html %] / [% report.total_holds | html %] holds have successfully been modified. Some errors occurred. [% IF job.status == 'cancelled' %]The job has been cancelled before it finished.[% END %]
[% END %] [% END %] [% END %] [% BLOCK detail %] [% FOR m IN report_messages %]
[% IF m.type == 'success' %] [% ELSIF m.type == 'warning' %] [% ELSIF m.type == 'error' %] [% END %] [% SWITCH m.code %] [% CASE 'hold_not_cancelled' %] [% IF m.biblio && m.patron %] Hold on [% m.biblio.title | html %] for [% INCLUDE 'patron-title.inc' patron=m.patron %] has not been cancelled. [% END %] An error occurred on cancelling. [% SWITCH m.error %] [% CASE 'hold_not_found' %] No hold with id [% m.hold_id | html %] found. [% CASE %]Unknown error '[% m.error | html %]'. [% END %] [% CASE 'hold_cancelled' %] Hold on [% m.biblio.title | html %] for [% INCLUDE 'patron-title.inc' patron=m.patron %] has successfully been cancelled. [% END %]
[% END %] [% END %] [% BLOCK js %] [% END %]