4 [% USE AuthorisedValues %]
6 [% USE ColumnsSettings %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 [% Asset.css("css/datatables.css") %]
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 id="doc3" class="yui-t2">
25 [% INCLUDE 'members-toolbar.inc' %]
26 <h1>Holds history</h1>
28 [% UNLESS Koha.Preference('intranetreadinghistory') %]
29 <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
30 [% ELSIF is_anonymous %]
31 <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
32 [% ELSIF ( !holds ) %]
33 <div class="dialog message">This patron has no holds history.</div>
36 [% SET show_itemtype_column = Koha.Preference('AllowHoldItemTypeSelection') %]
38 <div id="holdshistory" style="overflow:hidden">
39 <table id="table_holdshistory">
41 <th class="anti-the">Title</th>
45 <th class="title-string">Hold date</th>
46 <th class="title-string">Expiration date</th>
47 <th class="title-string">Waiting date</th>
48 <th class="title-string">Cancellation date</th>
49 [% IF show_itemtype_column %]
50 <th>Requested item type</th>
55 [% FOREACH hold IN holds %]
56 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblio.biblionumber %]">[% hold.biblio.title |html %]</a></td>
57 <td>[% hold.biblio.author %]</td>
58 <td>[% hold.item.barcode %]</td>
59 <td>[% Branches.GetName( hold.branchcode ) %]</td>
60 <td><span title="[% hold.reservedate %]">[% hold.reservedate | $KohaDates %]</span></td>
62 [% IF hold.expirationdate %]
63 <span title="[% hold.expirationdate %]">[% hold.expirationdate | $KohaDates %]</span>
65 <span title="0000-00-00"></span>
69 [% IF hold.waitingdate %]
70 <span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span>
72 <span title="0000-00-00"></span>
76 [% IF hold.cancellationdate %]
77 <span title="[% hold.cancellationdate %]">[% hold.cancellationdate | $KohaDates %]</span>
79 <span title="0000-00-00"></span>
82 [% IF show_itemtype_column %]
84 [% IF hold.itemtype %]
85 [% ItemTypes.GetDescription( hold.itemtype ) %]
92 [% IF hold.found == 'F' %]
94 [% ELSIF hold.cancellationdate %]
96 [% ELSIF hold.found == 'W' %]
98 [% ELSIF hold.found == 'T' %]
115 [% INCLUDE 'circ-menu.inc' %]
119 [% MACRO jsinclude BLOCK %]
120 [% INCLUDE 'datatables.inc' %]
121 [% INCLUDE 'columns_settings.inc' %]
122 [% Asset.js("js/members-menu.js") %]
123 <script type="text/javascript" id="js">
124 $(document).ready(function() {
125 var columns_settings = [% ColumnsSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
126 [% UNLESS show_itemtype_column %]
127 //Remove item type column settings
128 columns_settings.splice(8,1);
130 var table = KohaTable("table_holdshistory", {
131 "sPaginationType": "four_button",
132 "aaSorting": [[4, 'desc']],
133 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
135 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
136 { "sType": "title-string", "aTargets" : [ "title-string" ] }
138 }, columns_settings);
143 [% INCLUDE 'intranet-bottom.inc' %]