5 [% USE AuthorisedValues %]
7 [% USE ColumnsSettings %]
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' %]
13 [% Asset.css("css/datatables.css") | $raw %]
16 <body id="pat_holdshistory" class="pat">
17 [% INCLUDE 'header.inc' %]
18 [% INCLUDE 'patron-search.inc' %]
20 <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>
22 <div class="main container-fluid">
24 <div class="col-sm-10 col-sm-push-2">
27 [% INCLUDE 'members-toolbar.inc' %]
28 <h1>Holds history</h1>
30 [% UNLESS Koha.Preference('intranetreadinghistory') %]
31 <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
32 [% ELSIF is_anonymous %]
33 <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
34 [% ELSIF ( !holds ) %]
35 <div class="dialog message">This patron has no holds history.</div>
38 [% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
40 <div id="holdshistory" style="overflow:hidden">
41 <table id="table_holdshistory">
44 <th class="anti-the">Title</th>
48 <th class="title-string">Hold date</th>
49 <th class="title-string">Expiration date</th>
50 <th class="title-string">Waiting date</th>
51 <th class="title-string">Cancellation date</th>
52 [% IF show_itemtype_column %]
53 <th>Requested item type</th>
59 [% FOREACH hold IN holds %]
61 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblio.biblionumber | uri %]">[% hold.biblio.title | html %]</a></td>
62 <td>[% hold.biblio.author | html %]</td>
63 <td>[% hold.item.barcode | html %]</td>
64 <td>[% Branches.GetName( hold.branchcode ) | html %]</td>
65 <td><span title="[% hold.reservedate | html %]">[% hold.reservedate | $KohaDates %]</span></td>
67 [% IF hold.expirationdate %]
68 <span title="[% hold.expirationdate | html %]">[% hold.expirationdate | $KohaDates %]</span>
70 <span title="0000-00-00"></span>
74 [% IF hold.waitingdate %]
75 <span title="[% hold.waitingdate | html %]">[% hold.waitingdate | $KohaDates %]</span>
77 <span title="0000-00-00"></span>
81 [% IF hold.cancellationdate %]
82 <span title="[% hold.cancellationdate | html %]">[% hold.cancellationdate | $KohaDates %]</span>
84 <span title="0000-00-00"></span>
87 [% IF show_itemtype_column %]
89 [% IF hold.itemtype %]
90 [% ItemTypes.GetDescription( hold.itemtype ) | html %]
92 <span>Any item type</span>
97 [% IF hold.found == 'F' %]
99 [% ELSIF hold.cancellationdate %]
101 [% ELSIF hold.found == 'W' %]
103 [% ELSIF hold.found == 'T' %]
118 </div> <!-- /.col-sm-10.col-sm-push-2 -->
120 <div class="col-sm-2 col-sm-pull-10">
122 [% INCLUDE 'circ-menu.inc' %]
124 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
125 </div> <!-- /.row -->
127 [% MACRO jsinclude BLOCK %]
128 [% INCLUDE 'datatables.inc' %]
129 [% INCLUDE 'columns_settings.inc' %]
130 [% INCLUDE 'str/members-menu.inc' %]
131 [% Asset.js("js/members-menu.js") | $raw %]
133 $(document).ready(function() {
134 var columns_settings = [% ColumnsSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
135 [% UNLESS show_itemtype_column %]
136 //Remove item type column settings
137 columns_settings = columns_settings.filter(function(c){return c['columnname'] != 'itemtype';});
139 var table = KohaTable("table_holdshistory", {
140 "sPaginationType": "four_button",
141 "aaSorting": [[4, 'desc']],
142 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
144 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
145 { "sType": "title-string", "aTargets" : [ "title-string" ] }
147 }, columns_settings);
152 [% INCLUDE 'intranet-bottom.inc' %]