[% USE raw %] [% USE Asset %] [% USE KohaDates %] [% USE Koha %] [% USE AuthorisedValues %] [% USE Branches %] [% USE TablesSettings %] [% USE ItemTypes %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %]
[% INCLUDE 'members-toolbar.inc' %]

Holds history

[% UNLESS Koha.Preference('intranetreadinghistory') %]
Staff members are not allowed to access patron's holds history
[% ELSIF is_anonymous %]
This is the anonymous patron, so no holds history is displayed.
[% ELSIF ( !holds ) %]
This patron has no holds history.
[% ELSE %] [% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
[% IF show_itemtype_column %] [% END %] [% FOREACH hold IN holds %] [% IF show_itemtype_column %] [% END %] [% END %]
Title Author Barcode Library Hold date Expiration date Waiting date Cancellation dateRequested item typeStatus
[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %] [% hold.biblio.author | html %] [% hold.item.barcode | html %] [% Branches.GetName( hold.branchcode ) | html %] [% hold.reservedate | $KohaDates %] [% hold.expirationdate | $KohaDates %] [% hold.waitingdate | $KohaDates %] [% hold.cancellationdate | $KohaDates %] [% IF hold.itemtype %] [% ItemTypes.GetDescription( hold.itemtype ) | html %] [% ELSE %] Any item type [% END %] [% IF hold.found == 'F' %] Fulfilled [% ELSIF hold.cancellationdate %] Cancelled [% IF hold.cancellation_reason %] ([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason) | html %]) [% END %] [% ELSIF hold.found == 'W' %] Waiting [% ELSIF hold.found == 'P' %] Processing [% ELSIF hold.found == 'T' %] In transit [% ELSE %] Pending [% END %]
[% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]