3 [% USE AuthorisedValues %]
5 [% USE ColumnsSettings %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Holds history for [% INCLUDE 'patron-title.inc' no_html = 1 %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
13 <body id="pat_holdshistory" class="pat">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'patron-search.inc' %]
17 <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>
19 <div id="doc3" class="yui-t2">
23 [% INCLUDE 'members-toolbar.inc' %]
24 <h1>Holds history</h1>
26 [% UNLESS Koha.Preference('intranetreadinghistory') %]
27 <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
28 [% ELSIF is_anonymous %]
29 <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
30 [% ELSIF ( !holds ) %]
31 <div class="dialog message">This patron has no holds history.</div>
34 <div id="holdshistory" style="overflow:hidden">
35 <table id="table_holdshistory">
37 <th class="anti-the">Title</th>
41 <th class="title-string">Hold date</th>
42 <th class="title-string">Expiration date</th>
43 <th class="title-string">Waiting date</th>
44 <th class="title-string">Cancellation date</th>
49 [% FOREACH hold IN holds %]
50 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblio.biblionumber %]">[% hold.biblio.title |html %]</a></td>
51 <td>[% hold.biblio.author %]</td>
52 <td>[% hold.item.barcode %]</td>
53 <td>[% Branches.GetName( hold.branchcode ) %]</td>
54 <td><span title="[% hold.reservedate %]">[% hold.reservedate | $KohaDates %]</span></td>
56 [% IF hold.expirationdate %]
57 <span title="[% hold.expirationdate %]">[% hold.expirationdate | $KohaDates %]</span>
59 <span title="0000-00-00"></span>
63 [% IF hold.waitingdate %]
64 <span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span>
66 <span title="0000-00-00"></span>
70 [% IF hold.cancellationdate %]
71 <span title="[% hold.cancellationdate %]">[% hold.cancellationdate | $KohaDates %]</span>
73 <span title="0000-00-00"></span>
76 <td>[% hold.itemtype %]</td>
78 [% IF hold.found == 'F' %]
80 [% ELSIF hold.cancellationdate %]
82 [% ELSIF hold.found == 'W' %]
84 [% ELSIF hold.found == 'T' %]
101 [% INCLUDE 'circ-menu.inc' %]
105 [% MACRO jsinclude BLOCK %]
106 [% INCLUDE 'datatables.inc' %]
107 [% INCLUDE 'columns_settings.inc' %]
108 <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu_[% KOHA_VERSION %].js"></script>
109 <script type="text/javascript" id="js">
110 $(document).ready(function() {
111 var columns_settings = [% ColumnsSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
112 var table = KohaTable("#table_holdshistory", {
113 "sPaginationType": "four_button",
114 "aaSorting": [[4, 'desc']],
115 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
117 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
118 { "sType": "title-string", "aTargets" : [ "title-string" ] }
120 }, columns_settings);
125 [% INCLUDE 'intranet-bottom.inc' %]