5 [% USE AuthorisedValues %]
7 [% USE TablesSettings %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 <title>Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
12 [% INCLUDE 'doc-head-close.inc' %]
15 <body id="pat_holdshistory" class="pat">
16 [% WRAPPER 'header.inc' %]
17 [% INCLUDE 'patron-search-header.inc' %]
20 [% WRAPPER 'sub-header.inc' %]
21 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
24 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
27 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
30 <a href="#" aria-current="page">
31 Holds history for [% INCLUDE 'patron-title.inc' %]
38 <div class="main container-fluid">
40 <div class="col-sm-10 col-sm-push-2">
43 [% INCLUDE 'members-toolbar.inc' %]
44 <h1>Holds history</h1>
46 [% UNLESS Koha.Preference('intranetreadinghistory') %]
47 <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
48 [% ELSIF is_anonymous %]
49 <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
50 [% ELSIF ( !holds ) %]
51 <div class="dialog message">This patron has no holds history.</div>
54 [% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
56 <div id="holdshistory">
57 <table id="table_holdshistory">
60 <th class="anti-the">Title</th>
65 <th>Expiration date</th>
67 <th>Cancellation date</th>
68 [% IF show_itemtype_column %]
69 <th>Requested item type</th>
75 [% FOREACH hold IN holds %]
77 <td>[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %]</td>
78 <td>[% hold.biblio.author | html %]</td>
79 <td>[% hold.item.barcode | html %]</td>
80 <td>[% Branches.GetName( hold.branchcode ) | html %]</td>
81 <td data-order="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</td>
82 <td data-order="[% hold.expirationdate | html %]">
83 [% hold.expirationdate | $KohaDates %]
85 <td data-order="[% hold.waitingdate | html %]">
86 [% hold.waitingdate | $KohaDates %]
88 <td data-order="[% hold.cancellationdate | html %]">
89 [% hold.cancellationdate | $KohaDates %]
91 [% IF show_itemtype_column %]
93 [% IF hold.itemtype %]
94 [% ItemTypes.GetDescription( hold.itemtype ) | html %]
96 <span>Any item type</span>
101 [% IF hold.found == 'F' %]
102 <span>Fulfilled</span>
103 [% ELSIF hold.cancellationdate %]
104 <span>Cancelled</span>
105 [% IF hold.cancellation_reason %]
106 ([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason) | html %])
108 [% ELSIF hold.found == 'W' %]
110 [% ELSIF hold.found == 'P' %]
111 <span>Processing</span>
112 [% ELSIF hold.found == 'T' %]
113 <span>In transit</span>
127 </div> <!-- /.col-sm-10.col-sm-push-2 -->
129 <div class="col-sm-2 col-sm-pull-10">
131 [% INCLUDE 'circ-menu.inc' %]
133 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
134 </div> <!-- /.row -->
136 [% MACRO jsinclude BLOCK %]
137 [% INCLUDE 'datatables.inc' %]
138 [% INCLUDE 'columns_settings.inc' %]
139 [% INCLUDE 'str/members-menu.inc' %]
140 [% Asset.js("js/members-menu.js") | $raw %]
142 $(document).ready(function() {
143 var table_settings = [% TablesSettings.GetTableSettings('members', 'holdshistory', 'holdshistory-table', 'json') | $raw %];
144 [% UNLESS show_itemtype_column %]
145 //Remove item type column settings
146 table_settings['columns'] = table_settings['columns'].filter(function(c){return c['columnname'] != 'itemtype';});
148 var table = KohaTable("table_holdshistory", {
149 "sPaginationType": "full",
150 "aaSorting": [[4, 'desc']]
156 [% INCLUDE 'intranet-bottom.inc' %]