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 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'patron-search.inc' %]
19 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Holds history for [% INCLUDE 'patron-title.inc' %]</div>
21 <div class="main container-fluid">
23 <div class="col-sm-10 col-sm-push-2">
26 [% INCLUDE 'members-toolbar.inc' %]
27 <h1>Holds history</h1>
29 [% UNLESS Koha.Preference('intranetreadinghistory') %]
30 <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
31 [% ELSIF is_anonymous %]
32 <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
33 [% ELSIF ( !holds ) %]
34 <div class="dialog message">This patron has no holds history.</div>
37 [% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
39 <div id="holdshistory">
40 <table id="table_holdshistory">
43 <th class="anti-the">Title</th>
47 <th class="title-string">Hold date</th>
48 <th class="title-string">Expiration date</th>
49 <th class="title-string">Waiting date</th>
50 <th class="title-string">Cancellation date</th>
51 [% IF show_itemtype_column %]
52 <th>Requested item type</th>
58 [% FOREACH hold IN holds %]
60 <td>[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %]</td>
61 <td>[% hold.biblio.author | html %]</td>
62 <td>[% hold.item.barcode | html %]</td>
63 <td>[% Branches.GetName( hold.branchcode ) | html %]</td>
64 <td><span title="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</span></td>
66 [% IF hold.expirationdate %]
67 <span title="[% hold.expirationdate | html %]">[% hold.expirationdate | $KohaDates %]</span>
69 <span title="0000-00-00"></span>
73 [% IF hold.waitingdate %]
74 <span title="[% hold.waitingdate | html %]">[% hold.waitingdate | $KohaDates %]</span>
76 <span title="0000-00-00"></span>
80 [% IF hold.cancellationdate %]
81 <span title="[% hold.cancellationdate | html %]">[% hold.cancellationdate | $KohaDates %]</span>
83 <span title="0000-00-00"></span>
86 [% IF show_itemtype_column %]
88 [% IF hold.itemtype %]
89 [% ItemTypes.GetDescription( hold.itemtype ) | html %]
91 <span>Any item type</span>
96 [% IF hold.found == 'F' %]
98 [% ELSIF hold.cancellationdate %]
100 [% IF hold.cancellation_reason %]
101 ([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason) | html %])
103 [% ELSIF hold.found == 'W' %]
105 [% ELSIF hold.found == 'P' %]
107 [% ELSIF hold.found == 'T' %]
122 </div> <!-- /.col-sm-10.col-sm-push-2 -->
124 <div class="col-sm-2 col-sm-pull-10">
126 [% INCLUDE 'circ-menu.inc' %]
128 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
129 </div> <!-- /.row -->
131 [% MACRO jsinclude BLOCK %]
132 [% INCLUDE 'datatables.inc' %]
133 [% INCLUDE 'columns_settings.inc' %]
134 [% INCLUDE 'str/members-menu.inc' %]
135 [% Asset.js("js/members-menu.js") | $raw %]
137 $(document).ready(function() {
138 var columns_settings = [% TablesSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
139 [% UNLESS show_itemtype_column %]
140 //Remove item type column settings
141 columns_settings = columns_settings.filter(function(c){return c['columnname'] != 'itemtype';});
143 var table = KohaTable("table_holdshistory", {
144 "sPaginationType": "full",
145 "aaSorting": [[4, 'desc']],
146 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
147 }, columns_settings);
152 [% INCLUDE 'intranet-bottom.inc' %]