Merge branch 'bug_8977' into 3.12-master
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-user.tt
1 [% USE KohaDates %]
2
3 [% INCLUDE 'doc-head-open.inc' %]
4 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your library home
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
7 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.metadata.min.js"></script>
8 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
9 <script type="text/JavaScript">
10 //<![CDATA[
11 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
12 $.tablesorter.addParser({
13     id: 'articles', 
14     is: function(s) {return false;  }, 
15     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
16     type: 'text' 
17 });
18             $(function() {
19             $('#opac-user-views').tabs();
20             $.tablesorter.defaults.widgets = ['zebra'];
21             [% IF ( dateformat == 'metric' ) %]$.tablesorter.defaults.dateFormat = ['uk'];[% END %]
22                         $("#holdst").tablesorter({
23                                 sortList: [[0,0]]
24                         }); 
25                         $("#checkoutst").tablesorter({
26                 [% IF ( JacketImages ) %]sortList: [[2,0]][% ELSE %]sortList: [[1,0]][% END %]
27             }); 
28                         $("#overduest").tablesorter();
29 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
30         [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]$("#renewselected").submit(function(){
31             valid = false;
32             $("input[type=checkbox]").each(function(){
33                 if($(this).is(':checked')){
34                     valid = true;
35                 }
36             });
37             if(!valid){
38                 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
39             }
40             return valid;
41         });
42         $("#renewselected_link").live('click',function(){
43             $("#renewselected").submit();
44         });
45         $("#renewall_link").live('click',function(){
46             $("#renewall").submit();
47         });
48         $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");[% END %]
49         $( "#suspend_until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
50             });
51 //]]>
52 </script>
53 </head>
54 <body id="opac-user">
55 <div id="doc3" class="yui-t1">
56    <div id="bd">
57 [% INCLUDE 'masthead.inc' %]
58
59     <div id="yui-main">
60     <div class="yui-b"><div class="yui-g">
61         <div id="userdetails" class="container">
62         [% IF ( bor_messages ) %]
63                <div class="dialog message">
64                    <h3>Messages for you</h3>
65                        <ul>
66                                [% FOREACH bor_messages_loo IN bor_messages_loop %]
67                                         <li>
68                                                 <strong>[% bor_messages_loo.message %]</strong><br>
69                             &nbsp;&nbsp;&nbsp;<i>Written on [% bor_messages_loo.message_date | $KohaDates %] by [% bor_messages_loo.branchname %]</i>
70                                         </li>
71                                 [% END %]
72
73                                 [% IF ( opacnote ) %]<li>[% opacnote %]</li>[% END %]
74                        </ul>
75                </div>
76         [% END %]
77     [% FOREACH BORROWER_INF IN BORROWER_INFO %]
78         <h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]
79         <span class="hint">(<a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here</a> if you're not
80         [% BORROWER_INF.title %] [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %])
81         </span></h2>
82         
83                 [% IF ( patronupdate ) %]<div class="dialog message"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %]
84                 
85         [% IF ( BORROWER_INF.warndeparture ) %]
86         <div class="dialog alert" id="warndeparture">
87                 <strong>Please note:</strong><span> Your card will expire on <span id="warndeparture_date">[% BORROWER_INF.warndeparture | $KohaDates %]</span>. Please contact the library for more information.</span>
88                 [% IF ( BORROWER_INF.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
89         </div>
90         [% END %]
91
92         [% IF ( patron_flagged ) %]
93                 <div class="dialog alert">
94         <ul>
95             [% IF ( userdebarred ) %]
96                 <span id="userdebarred"><li><strong>Please note:</strong> Your account has been frozen[% IF ( BORROWER_INF.userdebarreddate ) %] until <span id="userdebarred_date">[% BORROWER_INF.userdebarreddate | $KohaDates %]</span>[% END %][% IF ( BORROWER_INF.debarredcomment ) %] with the comment <span id="userdebarred_comment">"[% BORROWER_INF.debarredcomment %]"</span>[% END %]. Usually the reason for freezing an account is old overdues or damage fees. If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please contact the library.</li></span>
97             [% END %]
98             [% IF ( BORROWER_INF.gonenoaddress ) %]
99                 <span id="gonenoaddress"><li><strong>Please note:</strong> According to our records, we don't have up-to-date [% UNLESS ( BORROWER_INF.OPACPatronDetails ) %]<a href="/cgi-bin/koha/opac-userupdate.pl">contact information</a>[% ELSE %]contact information[% END %] on file.  Please contact the library[% IF ( BORROWER_INF.OPACPatronDetails ) %] or use the <a href="/cgi-bin/koha/opac-userupdate.pl">online update form</a> to submit current information (<em>Please note:</em> there may be a delay in restoring your account if you submit online)[% END %].</li></span>
100             [% END %]
101             [% IF ( BORROWER_INF.lost ) %]
102                 <span id="lost"><li><strong>Please note: </strong> Your library card has been marked as lost or stolen. If this is an error, please contact the library.</li></span>
103             [% END %]
104             [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %]
105                 <span id="renewal_blocked_fines"><li><strong>Please note: </strong> Since you have <a href="/cgi-bin/koha/opac-account.pl">[% IF renewal_blocked_fines != "0.00" %] more than <span id="renewal_blocked_fines_amount">[% renewal_blocked_fines %]</span> in [% END %] fines</a>, you cannot renew your books online. Please pay your fines if you wish to renew your books.</li></span>
106             [% ELSIF ( renewal_blocked_fines ) %]
107                 <span id="renewal_blocked_fines"><li><strong>Please note: </strong> You currently owe <a href="/cgi-bin/koha/opac-account.pl"><span id="renewal_blocked_fines_amount">[% renewal_blocked_fines_amountoutstanding %] in fines. Please pay your fines if you wish to renew your books.</span></a></li></span>
108             [% END %]
109         </ul></div>
110         [% END %]
111         
112 <div id="opac-user-views" class="toptabs">
113         <ul>
114             <li><a href="#opac-user-checkouts">Checked out</a></li>
115             [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue</a></li>[% END %]
116 [% IF ( OPACFinesTab ) %]
117             [% IF ( BORROWER_INF.amountoverfive ) %]<li><a href="#opac-user-fines">Fines</a></li>[% END %]
118             [% IF ( BORROWER_INF.amountoverzero ) %]<li><a href="#opac-user-fines">Fines</a></li>[% END %]
119             [% IF ( BORROWER_INF.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits</a></li>[% END %]
120 [% END %]
121             [% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]<li><a href="#opac-user-waiting">Waiting</a></li>[% END %][% END %]
122             [% IF ( reserves_count ) %]<li><a href="#opac-user-holds">Holds</a></li>[% END %]
123         </ul>
124
125     <div id="opac-user-checkouts">[% IF ( issues_count ) %]
126         <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
127     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
128     <input type="hidden" name="from" value="opac_user" />
129         <table id="checkoutst">
130         <caption>[% issues_count %] Item(s) checked out</caption>
131        <thead><tr>
132         [% IF ( JacketImages ) %]<th class="{sorter: false}">&nbsp;</th>[% END %]
133         <th class="{sorter:'articles'}">Title</th>
134         <th>Due</th>
135         [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
136         [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
137         <th>Call No.</th>
138         [% IF ( OpacRenewalAllowed ) %]
139         <th class="{sorter: false}">Renew</th>
140         [% END %]
141 [% IF ( OPACFinesTab ) %]
142         <th>Fines</th>
143 [% END %]
144         [% IF ( OPACMySummaryHTML ) %]
145         <th class="{sorter: false}">Links</th>
146         [% END %]
147         </tr></thead>
148         <tbody>
149         <!-- FIXME: the styling for highlight overrides the overdue red background,
150                 so currently we don't use this conditional as the first thing inside the LOOP:
151         [% UNLESS ( __odd__ ) %]
152            <tr[% IF ( overdue ) %] class="overdue"[% END %]>
153         [% ELSE %]
154            <tr class="[% IF ( overdue ) %]overdue [% END %]highlight">
155         [% END %]
156         -->
157         [% FOREACH ISSUE IN ISSUES %]
158         [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
159
160 [% IF ( JacketImages ) %]<td class="jacketcell">
161
162 [% IF ( OPACAmazonCoverImages ) %][% IF ( ISSUE.normalized_isbn ) %]<a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" title="View at Amazon.com"><img border="0" src="http://images.amazon.com/images/P/[% ISSUE.normalized_isbn %].01.THUMBZZZ.jpg" alt="Cover Image" /></a>[% ELSE %]<a href="#"><span class="no-image">No cover image available</span></a>[% END %][% END %]
163
164 [% IF ( GoogleJackets ) %][% IF ( ISSUE.normalized_isbn ) %]<div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>[% ELSE %]<a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>[% END %][% END %]
165
166 [% IF ( BakerTaylorEnabled ) %][% IF ( ISSUE.normalized_isbn ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% ISSUE.normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% ISSUE.normalized_isbn %]" /></a>[% ELSE %]<span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_isbn! -->[% END %][% END %]
167
168 [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %]
169 <img src="https://secure.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% ISSUE.normalized_upc %]&amp;oclc=[% ISSUE.normalized_oclc %]" alt="" class="thumbnail" />
170 [% ELSE %]
171 <img src="http://www.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% ISSUE.normalized_upc %]&amp;oclc=[% ISSUE.normalized_oclc %]" alt="" class="thumbnail" />[% END %][% END %][% END %]
172
173 </td>[% END %]
174
175                 <td class="title"><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %]</a><span class="item-details">
176                         [% ISSUE.author %]
177                     </span></td>
178                 [% IF ( ISSUE.overdue ) %]
179                     <td class="date_due overdue">[% ISSUE.date_due | $KohaDates %]</td>
180                 [% ELSE %]
181                     <td class="date_due">[% ISSUE.date_due | $KohaDates %]</td>
182                 [% END %]
183                 [% UNLESS ( item_level_itypes ) %]<td class="itype">[% IF ( ISSUE.imageurl ) %]<img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />[% END %] [% ISSUE.description %]</td>[% END %]
184                 [% IF ( show_barcode ) %]<td class="barcode">[% ISSUE.barcode %]</td>[% END %]
185                 <td class="call_no">[% ISSUE.itemcallnumber %]</td>
186                 [% IF ( OpacRenewalAllowed ) %]
187                     <td class="renew">[% IF ( ISSUE.status ) %][% IF ( canrenew ) %]<input type="checkbox" name="item" value="[% ISSUE.itemnumber %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% ISSUE.itemnumber %]&amp;borrowernumber=[% ISSUE.borrowernumber %]">Renew</a>[% END %] <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>
188                         [% ELSE %]
189                         Not renewable[% IF ( ISSUE.too_many ) %] <span class="renewals">([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining)</span>[% ELSE %][% IF ( ISSUE.on_reserve ) %] <span class="renewals">(On hold)</span>[% END %][% END %] 
190                         [% END %]</td>
191                 [% END %]
192 [% IF ( OPACFinesTab ) %]
193                 <td class="fines">[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %]</td>
194 [% END %]
195             [% IF ( OPACMySummaryHTML ) %]
196                 <td class="links">[% ISSUE.MySummaryHTML %]</td>
197             [% END %]
198             </tr>
199         [% END %]</tbody>
200         </table>
201        [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
202         <input type="submit" value="Renew Selected" />
203         [% END %]
204         </form>
205         [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
206         <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
207             <input type="hidden" name="from" value="opac_user" />
208             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
209             [% FOREACH ISSUE IN ISSUES %]
210             <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
211             [% END %]
212             <input type="submit" value="Renew All" />
213         </form>
214         [% END %]
215     [% ELSE %]
216         <table>
217             <tr><td>You have nothing checked out</td></tr>
218         </table>
219     [% END %]</div>
220
221 [% IF ( OPACFinesTab ) %]
222         <!-- FINES BOX -->
223         [% IF ( BORROWER_INF.amountoverfive ) %]
224             <div id="opac-user-fines"> <h3>Fines and charges</h3>
225             <table>
226                 <tr><th colspan="2">Amount</th></tr>
227                 <tr>
228                     <td>You currently owe fines and charges amounting to:</td>
229                     <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
230                 </tr>
231             </table></div>
232         [% END %]
233
234         [% IF ( BORROWER_INF.amountoverzero ) %]
235            <div id="opac-user-fines"> <h3>Fines and charges</h3>
236             <table>
237                 <tr><th colspan="2">Amount</th></tr>
238                 <tr><td>You currently owe fines and charges amounting to:</td>
239                 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr>
240             </table></div>
241         [% END %]
242
243         [% IF ( BORROWER_INF.amountlessthanzero ) %]
244           <div id="opac-user-fines">  <h3>Credits</h3>
245             <table>
246             <tr><th colspan="2">Amount</th></tr>
247             <tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr>
248             </table></div>
249         [% END %]
250 [% END %]
251     
252     [% END %]
253
254     [% IF ( waiting_count ) %]
255     [% IF ( atdestination ) %]
256     <div id="opac-user-waiting">
257         <table id="waitingt">
258             <caption>Holds waiting</caption>
259            <thead> <tr>
260                 <th colspan="2" class="{sorter:'articles'}">Title</th>
261                 <th>Hold date</th>
262                 <th>Pick up library</th>
263             </tr></thead>
264             <tbody>[% FOREACH WAITIN IN WAITING %]
265                 <tr>
266                     <td><img src="[% themelang %]/images/[% WAITIN.itemtype %].gif" alt="[% WAITIN.itemtype %]" title="[% WAITIN.itemtype %]" /></td>
267                     <td><a href="opac-detail.pl?biblionumber=[% WAITIN.biblionumber %]">
268                             [% WAITIN.waiting_title %]
269                         </a><span class="item-details">
270                             [% WAITIN.author %]
271                         </span></td>
272                     <td>[% WAITIN.reservedate | $KohaDates %]</td>
273                     <td>[% IF ( WAITIN.atdestination ) %]<strong>Waiting</strong> at [% WAITIN.branch %]
274                         [% ELSE %]
275                         In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %]
276                         [% END %]</td>
277                 </tr>
278             [% END %]</tbody>
279         </table></div>
280         [% END %]
281     [% END %]
282
283 [% IF ( overdues_count ) %]
284 <div id="opac-user-overdues"><table id="overduest">
285 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
286 <!-- OVERDUES TABLE ROWS -->
287 <thead><tr>
288 [% IF ( JacketImages ) %]<th class="{sorter: false}">&nbsp;</th>[% END %]
289 <th class="{sorter:'articles'}">Title</th>
290 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
291 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
292 <th>Call no.</th>
293 <th>Due</th>
294 [% IF ( OpacRenewalAllowed ) %]
295                     <th class="{sorter: false}">Renew</th>
296 [% END %]
297 [% IF ( OPACFinesTab ) %]
298 <th>Fines</th>
299 [% END %]
300 </tr></thead>
301
302 <tbody>[% FOREACH OVERDUE IN OVERDUES %]
303 <tr>
304 [% IF ( JacketImages ) %]<td class="jacketcell">
305
306 [% IF ( OPACAmazonCoverImages ) %][% IF ( OVERDUE.normalized_isbn ) %]<a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" title="View at Amazon.com"><img src="http://images.amazon.com/images/P/[% OVERDUE.normalized_isbn %].01.THUMBZZZ.jpg" alt="" class="thumbnail" /></a>[% ELSE %]<a href="#"><span class="no-image">No cover image available</span></a>[% END %][% END %]
307
308 [% IF ( GoogleJackets ) %][% IF ( OVERDUE.normalized_isbn ) %]<div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>[% ELSE %]<a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>[% END %][% END %]
309
310 [% IF ( BakerTaylorEnabled ) %][% IF ( OVERDUE.normalized_isbn ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% OVERDUE.normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL |html %][% OVERDUE.normalized_isbn %]" /></a>[% ELSE %]<!-- BakerTaylor needs normalized_isbn! --><span class="no-image">No cover image available</span>[% END %][% END %]
311
312 [% IF ( SyndeticsCoverImages ) %]
313 [% IF ( using_https ) %]
314 <img src="https://secure.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;upc=[% OVERDUE.normalized_upc %]&amp;oclc=[% OVERDUE.normalized_oclc %]&amp;type=xw10" alt="" class="thumbnail"/>
315 [% ELSE %]
316 <img src="http://www.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;upc=[% OVERDUE.normalized_upc %]&amp;oclc=[% OVERDUE.normalized_oclc %]&amp;type=xw10" alt="" class="thumbnail"/>
317 [% END %]
318 [% END %]
319 </td>[% END %]
320
321 <td><a href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %]</a> <span class="item-details">[% OVERDUE.author %]</span></td>
322
323 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( OVERDUE.imageurl ) %]<img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />[% END %] [% OVERDUE.description %]</td>[% END %]
324 [% IF ( show_barcode ) %]<td>[% OVERDUE.barcode %]</td>[% END %]
325 <td>[% OVERDUE.itemcallnumber %]</td>
326 <td>[% OVERDUE.date_due | $KohaDates %]</td>
327                 [% IF ( OpacRenewalAllowed ) %]
328 <td>
329 [% IF ( OVERDUE.debarred ) %]Account frozen
330 [% ELSIF ( OVERDUE.status ) %]
331 [% IF ( canrenew ) %]<a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% OVERDUE.itemnumber %]&amp;bornum=[% OVERDUE.borrowernumber %]">Renew</a>[% END %] <span class="renewals">([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining)</span>
332 [% ELSIF ( OVERDUE.onreserve ) %]On hold
333 [% ELSE %]No renewals left
334 [% END %]
335 </td>[% END %]
336 [% IF ( OPACFinesTab ) %]
337 <td>[% IF ( OVERDUE.charges ) %]Yes[% ELSE %]No[% END %]</td>
338 [% END %]
339 </tr>
340 [% END %]</tbody>
341 </table></div>
342 [% END %]
343     
344
345     [% IF ( reserves_count ) %]
346         <div id="opac-user-holds">
347         <table id="holdst">
348         <caption>Holds <span class="count">([% reserves_count %] total)</span></caption>
349             <!-- RESERVES TABLE ROWS -->
350             <thead><tr>
351                 <th class="{sorter:'articles'}">Title</th>
352                 <th>Placed on</th>
353         <th>Expires on</th>
354                 <th>Pick up location</th>
355                 [% IF ( showpriority ) %]
356                         <th>Priority</th>
357                 [% END %]
358                 <th>Status</th>
359                 <th class="{sorter: false}">Modify</th>
360             </tr></thead>
361                         <tbody>
362             [% FOREACH RESERVE IN RESERVES %]
363            [% IF ( RESERVE.wait ) %]
364                         [% IF ( RESERVE.atdestination ) %]
365                             [% IF ( RESERVE.found ) %]
366                             <tr class="reserved">
367                             [% ELSE %]
368                             <tr>
369                         [% END %]
370                         [% ELSE %]
371                             <tr class="transfered">
372                         [% END %]
373                     [% ELSE %]
374                             <tr>
375                     [% END %]
376                 <td class="title"><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">[% RESERVE.reserves_title %]</a>
377                     [% RESERVE.author %]
378                 </td>
379                 <td class="reservedate">[% RESERVE.reservedate | $KohaDates %]</td>
380         <td class="expirationdate">[% IF ( RESERVE.expirationdate ) %][% RESERVE.expirationdate | $KohaDates %][% ELSE %]Never expires[% END %]</td>
381                 <td class="branch">[% RESERVE.branch %]</td>
382                                 [% IF ( showpriority ) %]
383                              <td class="priority">[% RESERVE.priority %] </td>
384                                 [% END %]
385                 <td class="status">
386                     [% IF ( RESERVE.wait ) %]
387                         [% IF ( RESERVE.atdestination ) %]
388                             [% IF ( RESERVE.found ) %]
389                             Item waiting at <b> [% RESERVE.wbrname %]</b>[% IF ( RESERVE.waitingdate ) %] since [% RESERVE.waitingdate | $KohaDates %][% END %]
390                             <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
391                             [% ELSE %]
392                             Item waiting to be pulled from <b> [% RESERVE.wbrname %]</b>
393                         [% END %]
394                         [% ELSE %]
395                             Item in transit to <b> [% RESERVE.wbrname %]</b> <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
396                         [% END %]
397                     [% ELSE %]
398                             [% IF ( RESERVE.intransit ) %]
399                                 Item in transit from <b> [% RESERVE.frombranch %]</b> since 
400                                 [% RESERVE.datesent | $KohaDates %]
401                             [% ELSIF ( RESERVE.suspend ) %]
402                                 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
403                             [% ELSE %]
404                                 Pending
405                             [% END %]
406                     [% END %]
407                 </td>
408               <td class="modify">
409                 [% IF ( RESERVE.cancelable ) %]
410                         <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
411                         <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
412                 <input type="hidden" name="reservenumber" value="[% RESERVE.reservenumber %]" />
413                         <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
414                 [% ELSE %]
415                 [% END %]
416                 </td>
417
418
419             </tr>
420             [% END %]
421                         </tbody>
422         </table>
423
424         [% IF SuspendHoldsOpac %]
425         <div>
426             <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
427               <input type="submit" name="submit" class="icon delete cancel" value="Suspend all holds" onclick="return confirmDelete('Are you sure you want to suspend all holds?');" />
428               <input type="hidden" name="suspend" value="1" />
429
430               [% IF AutoResumeSuspendedHolds %]
431               <label for="suspend_until"> until </label>
432               <input name="suspend_until" id="suspend_until" readonly="readonly" size="10" />
433               <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date</a></p>
434               [% END %]
435             </form>
436         </div>
437         <div>
438             <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
439               <input type="submit" name="submit" class="icon delete cancel" value="Resume all suspended holds" onclick="return confirmDelete('Are you sure you want to resume all suspended holds?');" />
440               <input type="hidden" name="suspend" value="0" />
441             </form>
442         </div>
443         [% END %]
444     </div>
445     [% END %]
446     </div><!-- /opac-user views -->
447     </div><!-- /userdetails -->
448 </div>
449 </div>
450 </div>
451 <div class="yui-b">
452 <div id="leftmenus" class="container">
453 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
454 </div>
455 </div>
456 </div>
457 [% INCLUDE 'opac-bottom.inc' %]