Bug 14919: Remove notificationdate and reminderdate
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / holdshistory.tt
1 [% USE KohaDates %]
2 [% USE Koha %]
3 [% USE AuthorisedValues %]
4 [% USE Branches %]
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">
13 //<![CDATA[
14
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>',
21         "aoColumnDefs": [
22             { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
23             { "sType": "title-string", "aTargets" : [ "title-string" ] }
24         ]
25     }, columns_settings);
26  });
27 //]]>
28 </script>
29 </head>
30 <body id="pat_holdshistory" class="pat">
31 [% INCLUDE 'header.inc' %]
32 [% INCLUDE 'patron-search.inc' %]
33
34 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Holds history for [% INCLUDE 'patron-title.inc' %]</div>
35
36 <div id="doc3" class="yui-t2">
37     <div id="bd">
38     <div id="yui-main">
39     <div class="yui-b">
40 [% INCLUDE 'members-toolbar.inc' %]
41 <h1>Holds history</h1>
42
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>
49 [% ELSE %]
50
51 <div id="holdshistory" style="overflow:hidden">
52   <table id="table_holdshistory">
53       <thead>
54         <th class="anti-the">Title</th>
55         <th>Author</th>
56         <th>Barcode</th>
57         <th>Library</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>
62         <th>Item type</th>
63         <th>Status</th>
64       </thead>
65       <tbody>
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>
72           <td>
73               [% IF hold.expirationdate %]
74                   <span title="[% hold.expirationdate %]">[% hold.expirationdate | $KohaDates %]</span>
75               [% ELSE %]
76                   <span title="0000-00-00"></span>
77               [% END %]
78           </td>
79           <td>
80               [% IF hold.waitingdate %]
81                   <span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span>
82               [% ELSE %]
83                   <span title="0000-00-00"></span>
84               [% END %]
85           </td>
86           <td>
87               [% IF hold.cancellationdate %]
88                   <span title="[% hold.cancellationdate %]">[% hold.cancellationdate | $KohaDates %]</span>
89               [% ELSE %]
90                   <span title="0000-00-00"></span>
91               [% END %]
92           </td>
93           <td>[% hold.itemtype %]</td>
94           <td>
95           [% IF hold.found == 'F' %]
96               Fulfilled
97           [% ELSIF hold.cancellationdate %]
98               Cancelled
99           [% ELSIF hold.found == 'W' %]
100               Waiting
101           [% ELSIF hold.found == 'T' %]
102               In transit
103           [% ELSE %]
104               Pending
105           [% END %]
106           </td>
107         </tr>
108       [% END %]
109       </tbody>
110   </table>
111 </div>
112
113 [% END %]
114 </div>
115 </div>
116
117 <div class="yui-b">
118 [% INCLUDE 'circ-menu.inc' %]
119 </div>
120 </div>
121 [% INCLUDE 'intranet-bottom.inc' %]