3 [% USE AuthorisedValues %]
5 [% USE ColumnsSettings %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Holds history for [% INCLUDE 'patron-title.inc' %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
10 [% INCLUDE 'datatables.inc' %]
11 [% INCLUDE 'columns_settings.inc' %]
12 <script type="text/javascript" id="js">
15 $(document).ready(function() {
16 var columns_settings = [% ColumnsSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
17 var table = KohaTable("#table_holdshistory", {
18 "sPaginationType": "four_button",
19 "aaSorting": [[4, 'desc']],
20 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
22 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
23 { "sType": "title-string", "aTargets" : [ "title-string" ] }
30 <body id="pat_holdshistory" class="pat">
31 [% INCLUDE 'header.inc' %]
32 [% INCLUDE 'patron-search.inc' %]
34 <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>
36 <div id="doc3" class="yui-t2">
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 <div id="holdshistory" style="overflow:hidden">
52 <table id="table_holdshistory">
54 <th class="anti-the">Title</th>
58 <th class="title-string">Hold date</th>
59 <th class="title-string">Expiration date</th>
60 <th class="title-string">Waiting date</th>
61 <th class="title-string">Cancellation date</th>
66 [% FOREACH hold IN holds %]
67 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblio.biblionumber %]">[% hold.biblio.title |html %]</a></td>
68 <td>[% hold.biblio.author %]</td>
69 <td>[% hold.item.barcode %]</td>
70 <td>[% Branches.GetName( hold.branchcode ) %]</td>
71 <td><span title="[% hold.reservedate %]">[% hold.reservedate | $KohaDates %]</span></td>
73 [% IF hold.expirationdate %]
74 <span title="[% hold.expirationdate %]">[% hold.expirationdate | $KohaDates %]</span>
76 <span title="0000-00-00"></span>
80 [% IF hold.waitingdate %]
81 <span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span>
83 <span title="0000-00-00"></span>
87 [% IF hold.cancellationdate %]
88 <span title="[% hold.cancellationdate %]">[% hold.cancellationdate | $KohaDates %]</span>
90 <span title="0000-00-00"></span>
93 <td>[% hold.itemtype %]</td>
95 [% IF hold.found == 'F' %]
97 [% ELSIF hold.cancellationdate %]
99 [% ELSIF hold.found == 'W' %]
101 [% ELSIF hold.found == 'T' %]
118 [% INCLUDE 'circ-menu.inc' %]
121 [% INCLUDE 'intranet-bottom.inc' %]