Bug 19933: Fix typo in template plugin name
[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 [% SET footerjs = 1 %]
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" />
11 </head>
12
13 <body id="pat_holdshistory" class="pat">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'patron-search.inc' %]
16
17 <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>
18
19 <div id="doc3" class="yui-t2">
20     <div id="bd">
21     <div id="yui-main">
22     <div class="yui-b">
23 [% INCLUDE 'members-toolbar.inc' %]
24 <h1>Holds history</h1>
25
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>
32 [% ELSE %]
33
34 <div id="holdshistory" style="overflow:hidden">
35   <table id="table_holdshistory">
36       <thead>
37         <th class="anti-the">Title</th>
38         <th>Author</th>
39         <th>Barcode</th>
40         <th>Library</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>
45         <th>Item type</th>
46         <th>Status</th>
47       </thead>
48       <tbody>
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>
55           <td>
56               [% IF hold.expirationdate %]
57                   <span title="[% hold.expirationdate %]">[% hold.expirationdate | $KohaDates %]</span>
58               [% ELSE %]
59                   <span title="0000-00-00"></span>
60               [% END %]
61           </td>
62           <td>
63               [% IF hold.waitingdate %]
64                   <span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span>
65               [% ELSE %]
66                   <span title="0000-00-00"></span>
67               [% END %]
68           </td>
69           <td>
70               [% IF hold.cancellationdate %]
71                   <span title="[% hold.cancellationdate %]">[% hold.cancellationdate | $KohaDates %]</span>
72               [% ELSE %]
73                   <span title="0000-00-00"></span>
74               [% END %]
75           </td>
76           <td>[% hold.itemtype %]</td>
77           <td>
78           [% IF hold.found == 'F' %]
79               Fulfilled
80           [% ELSIF hold.cancellationdate %]
81               Cancelled
82           [% ELSIF hold.found == 'W' %]
83               Waiting
84           [% ELSIF hold.found == 'T' %]
85               In transit
86           [% ELSE %]
87               Pending
88           [% END %]
89           </td>
90         </tr>
91       [% END %]
92       </tbody>
93   </table>
94 </div>
95
96 [% END %]
97 </div>
98 </div>
99
100 <div class="yui-b">
101 [% INCLUDE 'circ-menu.inc' %]
102 </div>
103 </div>
104
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>',
116                 "aoColumnDefs": [
117                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
118                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
119                 ]
120             }, columns_settings);
121         });
122     </script>
123 [% END %]
124
125 [% INCLUDE 'intranet-bottom.inc' %]