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-header.inc' %]
19 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
22 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
28 <a href="#" aria-current="page">
29 Holds history for [% INCLUDE 'patron-title.inc' %]
35 <div class="main container-fluid">
37 <div class="col-sm-10 col-sm-push-2">
40 [% INCLUDE 'members-toolbar.inc' %]
41 <h1>Holds history</h1>
43 [% UNLESS Koha.Preference('intranetreadinghistory') %]
44 <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
45 [% ELSIF is_anonymous %]
46 <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
47 [% ELSIF ( !holds ) %]
48 <div class="dialog message">This patron has no holds history.</div>
51 [% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
53 <div id="holdshistory">
54 <table id="table_holdshistory">
57 <th class="anti-the">Title</th>
62 <th>Expiration date</th>
64 <th>Cancellation date</th>
65 [% IF show_itemtype_column %]
66 <th>Requested item type</th>
72 [% FOREACH hold IN holds %]
74 <td>[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %]</td>
75 <td>[% hold.biblio.author | html %]</td>
76 <td>[% hold.item.barcode | html %]</td>
77 <td>[% Branches.GetName( hold.branchcode ) | html %]</td>
78 <td data-order="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</td>
79 <td data-order="[% hold.expirationdate | html %]">
80 [% hold.expirationdate | $KohaDates %]
82 <td data-order="[% hold.waitingdate | html %]">
83 [% hold.waitingdate | $KohaDates %]
85 <td data-order="[% hold.cancellationdate | html %]">
86 [% hold.cancellationdate | $KohaDates %]
88 [% IF show_itemtype_column %]
90 [% IF hold.itemtype %]
91 [% ItemTypes.GetDescription( hold.itemtype ) | html %]
93 <span>Any item type</span>
98 [% IF hold.found == 'F' %]
99 <span>Fulfilled</span>
100 [% ELSIF hold.cancellationdate %]
101 <span>Cancelled</span>
102 [% IF hold.cancellation_reason %]
103 ([% AuthorisedValues.GetByCode('HOLD_CANCELLATION', hold.cancellation_reason) | html %])
105 [% ELSIF hold.found == 'W' %]
107 [% ELSIF hold.found == 'P' %]
108 <span>Processing</span>
109 [% ELSIF hold.found == 'T' %]
110 <span>In transit</span>
124 </div> <!-- /.col-sm-10.col-sm-push-2 -->
126 <div class="col-sm-2 col-sm-pull-10">
128 [% INCLUDE 'circ-menu.inc' %]
130 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
131 </div> <!-- /.row -->
133 [% MACRO jsinclude BLOCK %]
134 [% INCLUDE 'datatables.inc' %]
135 [% INCLUDE 'columns_settings.inc' %]
136 [% INCLUDE 'str/members-menu.inc' %]
137 [% Asset.js("js/members-menu.js") | $raw %]
139 $(document).ready(function() {
140 var table_settings = [% TablesSettings.GetTableSettings('members', 'holdshistory', 'holdshistory-table', 'json') | $raw %];
141 [% UNLESS show_itemtype_column %]
142 //Remove item type column settings
143 table_settings['columns'] = table_settings['columns'].filter(function(c){return c['columnname'] != 'itemtype';});
145 var table = KohaTable("table_holdshistory", {
146 "sPaginationType": "full",
147 "aaSorting": [[4, 'desc']]
153 [% INCLUDE 'intranet-bottom.inc' %]