[% IF query_type == 'illlist' %]
[% ELSE %]
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% INCLUDE 'calendar.inc' %]
[% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
[% INCLUDE 'ill-list-table-strings.inc' %]
[% Asset.js("js/ill-list-table.js") | $raw %]
[% IF (query_type == 'availability' || query_type == 'generic_confirm') && Koha.Preference('ILLCheckAvailability') %]
[% Asset.js("js/ill-availability.js") | $raw %]
[% END %]
[% IF query_type == 'availability' && Koha.Preference('ILLCheckAvailability') %]
[% END %]
[% IF query_type == 'generic_confirm' && Koha.Preference('ILLCheckAvailability') %]
[% Asset.js("js/ill-availability-partner.js") | $raw %]
[% END %]
[% END %]
[% TRY %]
[% PROCESS backend_jsinclude %]
[% CATCH %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
[% IF !backends_available || !has_branch %]
[% ELSE %]
[% INCLUDE 'ill-toolbar.inc' %]
[% IF whole.error %]
Error performing operation
We encountered an error:
[% whole.message | html %] ([% whole.status | html %])[% END %] [% IF query_type == 'create' %]
New ILL request
[% PROCESS $whole.template %] [% ELSIF query_type == 'confirm' %]Confirm ILL request
[% PROCESS $whole.template %] [% ELSIF query_type == 'cancel' and !whole.error %]Cancel a confirmed request
[% PROCESS $whole.template %] [% ELSIF query_type == 'check_out' and !whole.error %] [% IF !whole.stage || whole.stage == 'form' %]Issue requested item to [% INCLUDE 'patron-title.inc' patron = request.patron %]
[% IF !request.biblio_id || request.biblio_id.length == 0 %]This item cannot be issued as it has no biblio record associated with it
[% END %]
[% IF whole.value.errors.itemcount %]
The bibliographic record for this request has multiple items, it should only have one. Please fix this then try again.
[% END %]
[% IF whole.value.errors.item_creation %]
An unknown error occurred while trying to add an item
[% END %]
[% IF whole.value.errors.item_check_out %]
An unknown error occurred while trying to check out the item
[% END %]
[% IF whole.value.check_out_errors %]
[% IF whole.value.check_out_errors.error.STATS %]
Local use recorded
[% ELSE %]
There was a problem checking this item out, please check for problems with the patron's account
[% END %]
[% END %]
[% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %]