Bug 10672 - Add subtitle to display of checkouts, overdues, and holds on the patron...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-user.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
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 [% INCLUDE 'datatables.inc' %]
8 <script type="text/JavaScript">
9 //<![CDATA[
10 var MSG_CONFIRM_DELETE_HOLD   = _("Are you sure you want to cancel this hold?");
11 var MSG_CONFIRM_SUSPEND_HOLDS = _("Are you sure you want to suspend all holds?");
12 var MSG_CONFIRM_RESUME_HOLDS  = _("Are you sure you want to resume all suspended holds?");
13
14             $(function() {
15             $('#opac-user-views').tabs();
16
17         var dTables = $("#checkoutst,#holdst,#overduest");
18         dTables.each(function(){
19             var thIndex = $(this).find("th.psort").index();
20             $(this).dataTable($.extend(true, {}, dataTablesDefaults, {
21                 "aaSorting" : [[ thIndex, 'asc' ]],
22                 "aoColumnDefs": [
23                     { "aTargets": [ "nosort" ],"bSortable": false,"bSearchable": false },
24                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
25                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
26                 ]
27             }));
28         });
29
30 [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
31         [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]$("#renewselected").submit(function(){
32             valid = false;
33             $("input[type=checkbox]").each(function(){
34                 if($(this).is(':checked')){
35                     valid = true;
36                 }
37             });
38             if(!valid){
39                 alert(_("Nothing has been selected. Check the box for each item you want to renew"));
40             }
41             return valid;
42         });
43         $("#renewselected_link").live('click',function(){
44             $("#renewselected").submit();
45         });
46         $("#renewall_link").live('click',function(){
47             $("#renewall").submit();
48         });
49         $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");[% END %]
50         $( "#suspend_until" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future
51             });
52 //]]>
53 </script>
54 </head>
55 <body id="opac-user">
56 <div id="doc3" class="yui-t1">
57    <div id="bd">
58 [% INCLUDE 'masthead.inc' %]
59
60     <div id="yui-main">
61     <div class="yui-b"><div class="yui-g">
62         <div id="userdetails" class="container">
63         [% IF ( bor_messages ) %]
64                <div class="dialog message">
65                    <h3>Messages for you</h3>
66                        <ul>
67                                [% FOREACH bor_messages_loo IN bor_messages_loop %]
68                                         <li>
69                                                 <strong>[% bor_messages_loo.message %]</strong><br>
70                             &nbsp;&nbsp;&nbsp;<i>Written on [% bor_messages_loo.message_date | $KohaDates %] by [% bor_messages_loo.branchname %]</i>
71                                         </li>
72                                 [% END %]
73
74                                 [% IF ( opacnote ) %]<li>[% opacnote %]</li>[% END %]
75                        </ul>
76                </div>
77         [% END %]
78     [% FOREACH BORROWER_INF IN BORROWER_INFO %]
79         <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 %]
80         <span class="hint">(<a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here</a> if you're not
81         [% 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 %])
82         </span></h2>
83         
84                 [% 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 %]
85                 
86         [% IF ( BORROWER_INF.warndeparture ) %]
87         <div class="dialog alert" id="warndeparture">
88                 <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>
89                 [% IF ( BORROWER_INF.returnbeforeexpiry ) %]<span id="warndeparture_returnbeforeexpiry"> Also note that you must return all checked out items before your card expires.</span>[% END %]
90         </div>
91         [% END %]
92
93         [% IF ( BORROWER_INF.warnexpired ) %]
94         <div class="dialog alert" id="warnexpired">
95             <strong>Please note:</strong><span> Your card has expired. Please contact the library for more information.</span>
96         </div>
97         [% END %]
98
99         [% IF ( patron_flagged ) %]
100                 <div class="dialog alert">
101         <ul>
102             [% IF ( userdebarred ) %]
103                 <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>
104             [% END %]
105             [% IF ( BORROWER_INF.gonenoaddress ) %]
106                 <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-memberentry.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-memberentry.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>
107             [% END %]
108             [% IF ( BORROWER_INF.lost ) %]
109                 <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>
110             [% END %]
111             [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %]
112                 <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>
113             [% END %]
114         </ul></div>
115         [% END %]
116         
117 <div id="opac-user-views" class="toptabs">
118         <ul>
119             <li><a href="#opac-user-checkouts">Checked out</a></li>
120             [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue</a></li>[% END %]
121 [% IF ( OPACFinesTab ) %]
122             [% IF ( BORROWER_INF.amountoverfive ) %]<li><a href="#opac-user-fines">Fines</a></li>[% END %]
123             [% IF ( BORROWER_INF.amountoverzero ) %]<li><a href="#opac-user-fines">Fines</a></li>[% END %]
124             [% IF ( BORROWER_INF.amountlessthanzero ) %]<li><a href="#opac-user-fines">Credits</a></li>[% END %]
125 [% END %]
126             [% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]<li><a href="#opac-user-waiting">Waiting</a></li>[% END %][% END %]
127             [% IF ( reserves_count ) %]<li><a href="#opac-user-holds">Holds</a></li>[% END %]
128         </ul>
129
130     <div id="opac-user-checkouts">[% IF ( issues_count ) %]
131         <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
132     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
133     <input type="hidden" name="from" value="opac_user" />
134         <table id="checkoutst">
135         <caption>[% issues_count %] Item(s) checked out</caption>
136        <thead><tr>
137         [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
138         <th class="anti-the">Title</th>
139         <th class="title-string psort">Due</th>
140         [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
141         [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
142         <th>Call No.</th>
143         [% IF ( OpacRenewalAllowed ) %]
144         <th class="nosort">Renew</th>
145         [% END %]
146 [% IF ( OPACFinesTab ) %]
147         <th>Fines</th>
148 [% END %]
149         [% IF ( OPACMySummaryHTML ) %]
150         <th class="nosort">Links</th>
151         [% END %]
152         </tr></thead>
153         <tbody>
154         <!-- FIXME: the styling for highlight overrides the overdue red background,
155                 so currently we don't use this conditional as the first thing inside the LOOP:
156         [% UNLESS ( __odd__ ) %]
157            <tr[% IF ( overdue ) %] class="overdue"[% END %]>
158         [% ELSE %]
159            <tr class="[% IF ( overdue ) %]overdue [% END %]highlight">
160         [% END %]
161         -->
162         [% FOREACH ISSUE IN ISSUES %]
163         [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
164
165 [% IF ( JacketImages ) %]<td class="jacketcell">
166
167 [% 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 %]
168
169 [% 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 %]
170
171 [% 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 %]
172
173 [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %]
174 <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" />
175 [% ELSE %]
176 <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 %]
177
178 </td>[% END %]
179
180                 <td class="title"><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %][% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %]</a><span class="item-details">
181                         [% ISSUE.author %]
182                     </span></td>
183                 [% IF ( ISSUE.overdue ) %]
184                     <td class="date_due overdue"><span title="[% ISSUE.date_due %]">[% ISSUE.date_due | $KohaDates %]</span></td>
185                 [% ELSE %]
186                     <td class="date_due"><span title="[% ISSUE.date_due %]">[% ISSUE.date_due | $KohaDates %]</span></td>
187                 [% END %]
188                 [% 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 %]
189                 [% IF ( show_barcode ) %]<td class="barcode">[% ISSUE.barcode %]</td>[% END %]
190                 <td class="call_no">[% ISSUE.itemcallnumber %]</td>
191                 [% IF ( OpacRenewalAllowed ) %]
192                     <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>
193                         [% ELSE %]
194                         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 %] 
195                         [% END %]</td>
196                 [% END %]
197 [% IF ( OPACFinesTab ) %]
198                 <td class="fines">[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %]</td>
199 [% END %]
200             [% IF ( OPACMySummaryHTML ) %]
201                 <td class="links">[% ISSUE.MySummaryHTML %]</td>
202             [% END %]
203             </tr>
204         [% END %]</tbody>
205         </table>
206        [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
207         <input type="submit" value="Renew Selected" />
208         [% END %]
209         </form>
210         [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
211         <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
212             <input type="hidden" name="from" value="opac_user" />
213             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
214             [% FOREACH ISSUE IN ISSUES %]
215             <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
216             [% END %]
217             <input type="submit" value="Renew All" />
218         </form>
219         [% END %]
220     [% ELSE %]
221         <table>
222             <tr><td>You have nothing checked out</td></tr>
223         </table>
224     [% END %]</div>
225
226 [% IF ( OPACFinesTab ) %]
227         <!-- FINES BOX -->
228         [% IF ( BORROWER_INF.amountoverfive ) %]
229             <div id="opac-user-fines"> <h3>Fines and charges</h3>
230             <table>
231                 <tr><th colspan="2">Amount</th></tr>
232                 <tr>
233                     <td>You currently owe fines and charges amounting to:</td>
234                     <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
235                 </tr>
236             </table></div>
237         [% END %]
238
239         [% IF ( BORROWER_INF.amountoverzero ) %]
240            <div id="opac-user-fines"> <h3>Fines and charges</h3>
241             <table>
242                 <tr><th colspan="2">Amount</th></tr>
243                 <tr><td>You currently owe fines and charges amounting to:</td>
244                 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr>
245             </table></div>
246         [% END %]
247
248         [% IF ( BORROWER_INF.amountlessthanzero ) %]
249           <div id="opac-user-fines">  <h3>Credits</h3>
250             <table>
251             <tr><th colspan="2">Amount</th></tr>
252             <tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr>
253             </table></div>
254         [% END %]
255 [% END %]
256     
257     [% END %]
258
259     [% IF ( waiting_count ) %]
260     [% IF ( atdestination ) %]
261     <div id="opac-user-waiting">
262         <table id="waitingt">
263             <caption>Holds waiting</caption>
264            <thead> <tr>
265                 <th>Title</th>
266                 <th>Hold date</th>
267                 <th>Pick up library</th>
268             </tr></thead>
269             <tbody>[% FOREACH WAITIN IN WAITING %]
270                 <tr>
271                     <td><img src="[% themelang %]/images/[% WAITIN.itemtype %].gif" alt="[% WAITIN.itemtype %]" title="[% WAITIN.itemtype %]" /></td>
272                     <td><a href="opac-detail.pl?biblionumber=[% WAITIN.biblionumber %]">
273                             [% WAITIN.waiting_title %]
274                         </a><span class="item-details">
275                             [% WAITIN.author %]
276                         </span></td>
277                     <td>[% WAITIN.reservedate | $KohaDates %]</td>
278                     <td>[% IF ( WAITIN.atdestination ) %]<strong>Waiting</strong> at [% WAITIN.branch %]
279                         [% ELSE %]
280                         In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %]
281                         [% END %]</td>
282                 </tr>
283             [% END %]</tbody>
284         </table></div>
285         [% END %]
286     [% END %]
287
288 [% IF ( overdues_count ) %]
289 <div id="opac-user-overdues"><table id="overduest">
290 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
291 <!-- OVERDUES TABLE ROWS -->
292 <thead><tr>
293 [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
294 <th>Title</th>
295 [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
296 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
297 <th>Call no.</th>
298 <th class="psort">Due</th>
299 [% IF ( OpacRenewalAllowed ) %]
300                     <th class="nosort">Renew</th>
301 [% END %]
302 [% IF ( OPACFinesTab ) %]
303 <th>Fines</th>
304 [% END %]
305 </tr></thead>
306
307 <tbody>[% FOREACH OVERDUE IN OVERDUES %]
308 <tr>
309 [% IF ( JacketImages ) %]<td class="jacketcell">
310
311 [% 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 %]
312
313 [% 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 %]
314
315 [% 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 %]
316
317 [% IF ( SyndeticsCoverImages ) %]
318 [% IF ( using_https ) %]
319 <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"/>
320 [% ELSE %]
321 <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"/>
322 [% END %]
323 [% END %]
324 </td>[% END %]
325
326 <td><a href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %][% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %]</a> <span class="item-details">[% OVERDUE.author %]</span></td>
327
328 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( OVERDUE.imageurl ) %]<img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />[% END %] [% OVERDUE.description %]</td>[% END %]
329 [% IF ( show_barcode ) %]<td>[% OVERDUE.barcode %]</td>[% END %]
330 <td>[% OVERDUE.itemcallnumber %]</td>
331 <td><span title="[% OVERDUE.date_due %]">[% OVERDUE.date_due | $KohaDates %]</span></td>
332                 [% IF ( OpacRenewalAllowed ) %]
333 <td>
334 [% IF ( OVERDUE.debarred ) %]Account frozen
335 [% ELSIF ( OVERDUE.status ) %]
336 [% 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>
337 [% ELSIF ( OVERDUE.onreserve ) %]On hold
338 [% ELSE %]No renewals left
339 [% END %]
340 </td>[% END %]
341 [% IF ( OPACFinesTab ) %]
342 <td>[% IF ( OVERDUE.charges ) %]Yes[% ELSE %]No[% END %]</td>
343 [% END %]
344 </tr>
345 [% END %]</tbody>
346 </table></div>
347 [% END %]
348     
349
350     [% IF ( reserves_count ) %]
351         <div id="opac-user-holds">
352         <table id="holdst">
353         <caption>Holds <span class="count">([% reserves_count %] total)</span></caption>
354             <!-- RESERVES TABLE ROWS -->
355             <thead><tr>
356                 <th>Title</th>
357                 <th class="psort">Placed on</th>
358                 [% IF OpacHoldNotes %]<th>Notes</th>[% END %]
359         <th>Expires on</th>
360                 <th>Pick up location</th>
361                 [% IF ( showpriority ) %]
362                         <th>Priority</th>
363                 [% END %]
364                 <th>Status</th>
365         <th class="nosort">Modify</th>
366             </tr></thead>
367                         <tbody>
368             [% FOREACH RESERVE IN RESERVES %]
369            [% IF ( RESERVE.wait ) %]
370                         [% IF ( RESERVE.atdestination ) %]
371                             [% IF ( RESERVE.found ) %]
372                             <tr class="reserved">
373                             [% ELSE %]
374                             <tr>
375                         [% END %]
376                         [% ELSE %]
377                             <tr class="transfered">
378                         [% END %]
379                     [% ELSE %]
380                             <tr>
381                     [% END %]
382                 <td class="title"><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">[% RESERVE.reserves_title %][% FOREACH subtitl IN RESERVE.subtitle %] [% subtitl.subfield %][% END %]</a>
383                     [% RESERVE.author %]
384                 </td>
385                 <td class="reservedate"><span title="[% RESERVE.reservedate %]">[% RESERVE.reservedate | $KohaDates %]</span></td>
386                 [% IF OpacHoldNotes %]<td class="reservenotes">[% RESERVE.reservenotes %]</td>[% END %]
387                 <td class="expirationdate">
388                     [% IF ( RESERVE.expirationdate ) %]
389                         <span title="[% RESERVE.expirationdate %]">[% RESERVE.expirationdate | $KohaDates %]</span>
390                     [% ELSE %]
391                         Never expires
392                     [% END %]
393                 </td>
394                 <td class="branch">[% RESERVE.branch %]</td>
395                                 [% IF ( showpriority ) %]
396                              <td class="priority">[% RESERVE.priority %] </td>
397                                 [% END %]
398                 <td class="status">
399                     [% IF ( RESERVE.wait ) %]
400                         [% IF ( RESERVE.atdestination ) %]
401                             [% IF ( RESERVE.found ) %]
402                             Item waiting at <b> [% RESERVE.wbrname %]</b>[% IF ( RESERVE.waitingdate ) %] since [% RESERVE.waitingdate | $KohaDates %][% END %]
403                             <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
404                             [% ELSE %]
405                             Item waiting to be pulled from <b> [% RESERVE.wbrname %]</b>
406                         [% END %]
407                         [% ELSE %]
408                             Item in transit to <b> [% RESERVE.wbrname %]</b> <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
409                         [% END %]
410                     [% ELSE %]
411                             [% IF ( RESERVE.intransit ) %]
412                                 Item in transit from <b> [% RESERVE.frombranch %]</b> since 
413                                 [% RESERVE.datesent | $KohaDates %]
414                             [% ELSIF ( RESERVE.suspend ) %]
415                                 Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
416                             [% ELSE %]
417                                 Pending
418                             [% END %]
419                     [% END %]
420                 </td>
421               <td class="modify">
422                 [% IF ( RESERVE.cancelable ) %]
423                         <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
424                         <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
425           <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id %]" />
426                         <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);" /></form>
427                 [% ELSE %]
428                 [% END %]
429                 </td>
430
431
432             </tr>
433             [% END %]
434                         </tbody>
435         </table>
436
437         [% IF SuspendHoldsOpac %]
438         <div>
439             <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
440               <input type="submit" name="submit" class="icon delete cancel" value="Suspend all holds" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);" />
441               <input type="hidden" name="suspend" value="1" />
442
443               [% IF AutoResumeSuspendedHolds %]
444               <label for="suspend_until"> until </label>
445               <input name="suspend_until" id="suspend_until" readonly="readonly" size="10" />
446               <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date</a></p>
447               [% END %]
448             </form>
449         </div>
450         <div>
451             <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
452               <input type="submit" name="submit" class="icon delete cancel" value="Resume all suspended holds" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);" />
453               <input type="hidden" name="suspend" value="0" />
454             </form>
455         </div>
456         [% END %]
457     </div>
458     [% END %]
459     </div><!-- /opac-user views -->
460     </div><!-- /userdetails -->
461 </div>
462 </div>
463 </div>
464 <div class="yui-b">
465 <div id="leftmenus" class="container">
466 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
467 </div>
468 </div>
469 </div>
470 [% INCLUDE 'opac-bottom.inc' %]