Bug 14919: (follow-up) Changed status from 'in queue' to 'pending'
[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">Notification date</th>
60         <th class="title-string">Reminder date</th>
61         <th class="title-string">Expiration date</th>
62         <th class="title-string">Waiting date</th>
63         <th class="title-string">Cancellation date</th>
64         <th>Item type</th>
65         <th>Status</th>
66       </thead>
67       <tbody>
68       [% FOREACH hold IN holds %]
69           <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblio.biblionumber %]">[% hold.biblio.title |html %]</a></td>
70           <td>[% hold.biblio.author %]</td>
71           <td>[% hold.item.barcode %]</td>
72           <td>[% Branches.GetName( hold.branchcode ) %]</td>
73           <td><span title="[% hold.reservedate %]">[% hold.reservedate | $KohaDates %]</span></td>
74           <td>
75               [% IF hold.notificationdate %]
76                   <span title="[% hold.notificationdate %]">[% hold.notificationdate | $KohaDates %]</span>
77               [% ELSE %]
78                   <span title="0000-00-00"></span>
79               [% END %]
80           </td>
81           <td>
82               [% IF hold.reminderdate %]
83                   <span title="[% hold.reminderdate %]">[% hold.reminderdate | $KohaDates %]</span>
84               [% ELSE %]
85                   <span title="0000-00-00"></span>
86               [% END %]
87           </td>
88           <td>
89               [% IF hold.expirationdate %]
90                   <span title="[% hold.expirationdate %]">[% hold.expirationdate | $KohaDates %]</span>
91               [% ELSE %]
92                   <span title="0000-00-00"></span>
93               [% END %]
94           </td>
95           <td>
96               [% IF hold.waitingdate %]
97                   <span title="[% hold.waitingdate %]">[% hold.waitingdate | $KohaDates %]</span>
98               [% ELSE %]
99                   <span title="0000-00-00"></span>
100               [% END %]
101           </td>
102           <td>
103               [% IF hold.cancellationdate %]
104                   <span title="[% hold.cancellationdate %]">[% hold.cancellationdate | $KohaDates %]</span>
105               [% ELSE %]
106                   <span title="0000-00-00"></span>
107               [% END %]
108           </td>
109           <td>[% hold.itemtype %]</td>
110           <td>
111           [% IF hold.found == 'F' %]
112               Fulfilled
113           [% ELSIF hold.cancellationdate %]
114               Cancelled
115           [% ELSIF hold.found == 'W' %]
116               Waiting
117           [% ELSIF hold.found == 'T' %]
118               In transit
119           [% ELSE %]
120               Pending
121           [% END %]
122           </td>
123         </tr>
124       [% END %]
125       </tbody>
126   </table>
127 </div>
128
129 [% END %]
130 </div>
131 </div>
132
133 <div class="yui-b">
134 [% INCLUDE 'circ-menu.inc' %]
135 </div>
136 </div>
137 [% INCLUDE 'intranet-bottom.inc' %]