Merge remote-tracking branch 'origin/new/bug_7238'
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-user.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Library Home for
3 [% FOREACH BORROWER_INF IN BORROWER_INFO %]
4     [% 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 %]
5 [% END %]
6 [% INCLUDE 'doc-head-close.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 > ul').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             });
50 //]]>
51 </script>
52 </head>
53 <body id="opac-user">
54 <div id="doc3" class="yui-t1">
55    <div id="bd">
56 [% INCLUDE 'masthead.inc' %]
57
58     <div id="yui-main">
59     <div class="yui-b"><div class="yui-g">
60         <div id="userdetails" class="container">
61         [% IF ( bor_messages ) %]
62                <div class="dialog message">
63                        <h3>Messages For You</h3>
64                        <ul>
65                                [% FOREACH bor_messages_loo IN bor_messages_loop %]
66                                         <li>
67                                                 <strong>[% bor_messages_loo.message %]</strong><br>
68                                                 &nbsp;&nbsp;&nbsp;<i>Written on [% bor_messages_loo.message_date_formatted %] by [% bor_messages_loo.branchname %]</i>
69                                         </li>
70                                 [% END %]
71
72                                 [% IF ( opacnote ) %]<li>[% opacnote %]</li>[% END %]
73                        </ul>
74                </div>
75         [% END %]
76     [% FOREACH BORROWER_INF IN BORROWER_INFO %]
77         <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 %]
78         <span class="hint">(<a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here</a> if you're not
79         [% 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 %])
80         </span></h2>
81         
82                 [% 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 %]
83                 
84         [% IF ( BORROWER_INF.warndeparture ) %]
85         <div class="dialog alert">
86                 <strong>Please note:</strong><span> Your card will expire on [% BORROWER_INF.warndeparture %]. Please contact the library if you wish to renew your subscription.</span>
87                 [% IF ( BORROWER_INF.returnbeforeexpiry ) %]<span> Also note that you must return all checked out items before your card expires.</span>[% END %]
88         </div>
89         [% END %]
90
91         [% IF ( patron_flagged ) %]
92                 <div class="dialog alert">
93         <ul>
94             [% IF ( userdebarred ) %]
95                 <li><strong>Please note:</strong> Your account has been frozen[% IF ( BORROWER_INF.userdebarreddate ) %] until [% BORROWER_INF.userdebarreddate %][% END %][% IF ( BORROWER_INF.debarredcomment ) %] with the comment "[% BORROWER_INF.debarredcomment %]"[% 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>
96             [% END %]
97             [% IF ( BORROWER_INF.gonenoaddress ) %]
98                 <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>
99             [% END %]
100             [% IF ( BORROWER_INF.lost ) %]
101                 <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>
102             [% END %]
103             [% IF renewal_blocked_fines %]
104                 <li><strong>Please note: </strong> Since you have <a href="/cgi-bin/koha/opac-account.pl">more than [% renewal_blocked_fines %]</a> in fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.</li>
105             [% END %]
106         </ul></div>
107         [% END %]
108         
109 <div id="opac-user-views" class="toptabs">
110         <ul>
111             <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">Checked Out</a></li>
112             [% IF ( overdues_count ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">Overdue</a></li>[% END %]
113 [% IF ( OPACFinesTab ) %]
114             [% IF ( BORROWER_INF.amountoverfive ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li>[% END %]
115             [% IF ( BORROWER_INF.amountoverzero ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li>[% END %]
116             [% IF ( BORROWER_INF.amountlessthanzero ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Credits</a></li>[% END %]
117 [% END %]
118             [% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-waiting">Waiting</a></li>[% END %][% END %]
119             [% IF ( reserves_count ) %]<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li>[% END %]
120         </ul>
121         
122 [% IF ( OPACFinesTab ) %]
123         <!-- FINES BOX -->
124         [% IF ( BORROWER_INF.amountoverfive ) %]
125             <div id="opac-user-fines"> <h3>Fines and Charges</h3>
126             <table>
127                 <tr><th colspan="2">Amount</th></tr>
128                 <tr>
129                     <td>You currently owe fines and charges amounting to:</td>
130                     <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td>
131                 </tr>
132             </table></div>
133         [% END %]
134
135         [% IF ( BORROWER_INF.amountoverzero ) %]
136            <div id="opac-user-fines"> <h3>Fines and Charges</h3>
137             <table>
138                 <tr><th colspan="2">Amount</th></tr>
139                 <tr><td>You currently owe fines and charges amounting to:</td>
140                 <td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr>
141             </table></div>
142         [% END %]
143
144         [% IF ( BORROWER_INF.amountlessthanzero ) %]
145           <div id="opac-user-fines">  <h3>Credits</h3>
146             <table>
147             <tr><th colspan="2">Amount</th></tr>
148             <tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% BORROWER_INF.amountoutstanding %]</a></td></tr>
149             </table></div>
150         [% END %]
151 [% END %]
152     
153     [% END %]
154
155     [% IF ( waiting_count ) %]
156     [% IF ( atdestination ) %]
157     <div id="opac-user-waiting">
158         <table id="waitingt">
159             <caption>Holds Waiting</caption>
160            <thead> <tr>
161                 <th colspan="2" class="{sorter:'articles'}">Title</th>
162                 <th>Hold date</th>
163                 <th>Pick Up Library</th>
164             </tr></thead>
165             <tbody>[% FOREACH WAITIN IN WAITING %]
166                 <tr>
167                     <td><img src="[% themelang %]/images/[% WAITIN.itemtype %].gif" alt="[% WAITIN.itemtype %]" title="[% WAITIN.itemtype %]" /></td>
168                     <td><a href="opac-detail.pl?biblionumber=[% WAITIN.biblionumber %]">
169                             [% WAITIN.waiting_title %]
170                         </a><span class="item-details">
171                             [% WAITIN.author %]
172                         </span></td>
173                     <td>[% WAITIN.reservedate %]</td>
174                     <td>[% IF ( WAITIN.atdestination ) %]<strong>Waiting</strong> at [% WAITIN.branch %]
175                         [% ELSE %]
176                         In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %]
177                         [% END %]</td>
178                 </tr>
179             [% END %]</tbody>
180         </table></div>
181         [% END %]
182     [% END %]
183
184     <div id="opac-user-checkouts">[% IF ( issues_count ) %]
185         <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
186         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]">
187         <input type="hidden" name="from" value="opac_user" />
188         <table id="checkoutst">
189         <caption>[% issues_count %] Item(s) Checked Out</caption>
190        <thead><tr>
191                 [% IF ( JacketImages ) %]<th class="{sorter: false}">&nbsp;</th>[% END %]
192         <th class="{sorter:'articles'}">Title</th>
193         <th>Due</th>
194                 [% UNLESS ( item_level_itypes ) %]<th>Item Type</th> [% END %]
195         [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
196         <th>Call No.</th>
197         [% IF ( OpacRenewalAllowed ) %]
198         <th class="{sorter: false}">Renew</th>
199         [% END %]
200 [% IF ( OPACFinesTab ) %]
201         <th>Fines</th>
202 [% END %]
203         [% IF ( OPACMySummaryHTML ) %]
204         <th class="{sorter: false}">Links</th>
205         [% END %]
206         </tr></thead>
207         <tbody>
208                 <!-- FIXME: the styling for highlight overrides the overdue red background,
209                                 so currently we don't use this conditional as the first thing inside the LOOP:
210         [% UNLESS ( __odd__ ) %]
211            <tr[% IF ( overdue ) %] class="overdue"[% END %]>
212         [% ELSE %]
213            <tr class="[% IF ( overdue ) %]overdue [% END %]highlight">
214         [% END %]
215                 -->
216                 [% FOREACH ISSUE IN ISSUES %]
217         [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
218
219 [% IF ( JacketImages ) %]<td class="jacketcell">
220
221 [% 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 %]
222
223 [% 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 %]
224
225 [% 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 %]
226
227 [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( using_https ) %]
228 <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" />
229 [% ELSE %]
230 <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 %]
231
232 </td>[% END %]
233
234                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %]</a><span class="item-details">
235                         [% ISSUE.author %]
236                     </span></td>
237                 [% IF ( ISSUE.overdue ) %]
238                     <td class="overdue">[% ISSUE.date_due %]</td>
239                 [% ELSE %]
240                     <td>[% ISSUE.date_due %]</td>
241                 [% END %]
242                 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( ISSUE.imageurl ) %]<img src="[% ISSUE.imageurl %]" title="[% ISSUE.description %]" alt="[% ISSUE.description %]" />[% END %] [% ISSUE.description %]</td>[% END %]
243                 [% IF ( show_barcode ) %]<td>[% ISSUE.barcode %]</td>[% END %]
244                 <td>[% ISSUE.itemcallnumber %]</td>
245                 [% IF ( OpacRenewalAllowed ) %]
246                     <td>[% 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>
247                         [% ELSE %]
248                         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 %] 
249                         [% END %]</td>
250                 [% END %]
251 [% IF ( OPACFinesTab ) %]
252                 <td>[% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %]</td>
253 [% END %]
254             [% IF ( OPACMySummaryHTML ) %]
255                 <td>[% ISSUE.MySummaryHTML %]</td>
256             [% END %]
257             </tr>
258         [% END %]</tbody>
259         </table>
260            [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
261                 <input type="submit" value="Renew Selected" />
262                 [% END %]
263                 </form>
264         [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
265                 <form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
266                         <input type="hidden" name="from" value="opac_user" />
267                         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
268                         [% FOREACH ISSUE IN ISSUES %]
269                         <input type="hidden" name="item" value="[% ISSUE.itemnumber %]" />
270                         [% END %]
271                         <input type="submit" value="Renew All" />
272                 </form>
273                 [% END %]
274     [% ELSE %]
275         <table>
276             <tr><td>You have nothing checked out</td></tr>
277         </table>
278     [% END %]</div>
279     
280     
281 [% IF ( overdues_count ) %]
282 <div id="opac-user-overdues"><table id="overduest">
283 <caption>Overdues <span class="count">([% overdues_count %] total)</span></caption>
284 <!-- OVERDUES TABLE ROWS -->
285 <thead><tr>
286 [% IF ( JacketImages ) %]<th class="{sorter: false}">&nbsp;</th>[% END %]
287 <th class="{sorter:'articles'}">Title</th>
288 [% UNLESS ( item_level_itypes ) %]<th>Item Type</th> [% END %]
289 [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
290 <th>Call No.</th>
291 <th>Due</th>
292 [% IF ( OpacRenewalAllowed ) %]
293                     <th class="{sorter: false}">Renew</th>
294 [% END %]
295 [% IF ( OPACFinesTab ) %]
296 <th>Fines</th>
297 [% END %]
298 </tr></thead>
299
300 <tbody>[% FOREACH OVERDUE IN OVERDUES %]
301 <tr>
302 [% IF ( JacketImages ) %]<td class="jacketcell">
303
304 [% 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 %]
305
306 [% 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 %]
307
308 [% 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 %]
309
310 [% IF ( SyndeticsCoverImages ) %]
311 [% IF ( using_https ) %]
312 <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"/>
313 [% ELSE %]
314 <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"/>
315 [% END %]
316 [% END %]
317 </td>[% END %]
318
319 <td><a href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber %]">[% OVERDUE.title |html %]</a> <span class="item-details">[% OVERDUE.author %]</span></td>
320
321 [% UNLESS ( item_level_itypes ) %]<td>[% IF ( OVERDUE.imageurl ) %]<img src="[% OVERDUE.imageurl %]" title="[% OVERDUE.description %]" alt="[% OVERDUE.description %]" />[% END %] [% OVERDUE.description %]</td>[% END %]
322 [% IF ( show_barcode ) %]<td>[% OVERDUE.barcode %]</td>[% END %]
323 <td>[% OVERDUE.itemcallnumber %]</td>
324 <td>[% OVERDUE.date_due %]</td>
325                 [% IF ( OpacRenewalAllowed ) %]
326 <td>
327 [% IF ( OVERDUE.debarred ) %]Account Frozen
328 [% ELSIF ( OVERDUE.status ) %]
329 [% 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>
330 [% ELSIF ( OVERDUE.onreserve ) %]On hold
331 [% ELSE %]No renewals left
332 [% END %]
333 </td>[% END %]
334 [% IF ( OPACFinesTab ) %]
335 <td>[% IF ( OVERDUE.charges ) %]Yes[% ELSE %]No[% END %]</td>
336 [% END %]
337 </tr>
338 [% END %]</tbody>
339 </table></div>
340 [% END %]
341     
342
343     [% IF ( reserves_count ) %]
344         <div id="opac-user-holds">
345         <table id="holdst">
346         <caption>Holds <span class="count">([% reserves_count %] total)</span></caption>
347             <!-- RESERVES TABLE ROWS -->
348             <thead><tr>
349                 <th class="{sorter:'articles'}">Title</th>
350                 <th>Placed On</th>
351                 <th>Expires On</th>
352                 <th>Pick Up Location</th>
353                 [% IF ( showpriority ) %]
354                         <th>Priority</th>
355                 [% END %]
356                 <th>Status</th>
357                 <th class="{sorter: false}">Modify</th>
358             </tr></thead>
359                         <tbody>
360             [% FOREACH RESERVE IN RESERVES %]
361            [% IF ( RESERVE.wait ) %]
362                         [% IF ( RESERVE.atdestination ) %]
363                             [% IF ( RESERVE.found ) %]
364                             <tr class="reserved">
365                             [% ELSE %]
366                             <tr>
367                         [% END %]
368                         [% ELSE %]
369                             <tr class="transfered">
370                         [% END %]
371                     [% ELSE %]
372                             <tr>
373                     [% END %]
374                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">[% RESERVE.reserves_title %]</a>
375                     [% RESERVE.author %]
376                 </td>
377                 <td>[% RESERVE.reservedate %]</td>
378                 <td>[% IF ( RESERVE.expirationdate ) %][% RESERVE.expirationdate %][% ELSE %]Never Expires[% END %]</td>
379                 <td>[% RESERVE.branch %]</td>
380                                 [% IF ( showpriority ) %]
381                                 <td>[% RESERVE.priority %] </td>
382                                 [% END %]
383                 <td>
384                     [% IF ( RESERVE.wait ) %]
385                         [% IF ( RESERVE.atdestination ) %]
386                             [% IF ( RESERVE.found ) %]
387                             Item waiting at <b> [% RESERVE.wbrname %]</b>[% IF ( RESERVE.formattedwaitingdate ) %] since [% RESERVE.formattedwaitingdate %][% END %]
388                             <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
389                             [% ELSE %]
390                             Item waiting to be pulled from <b> [% RESERVE.wbrname %]</b>
391                         [% END %]
392                         [% ELSE %]
393                             Item in transit to <b> [% RESERVE.wbrname %]</b> <input type="hidden" name="pickup" value="[% RESERVE.wbrcd %]" />
394                         [% END %]
395                     [% ELSE %]
396                             [% IF ( RESERVE.intransit ) %]
397                                 Item in transit from <b> [% RESERVE.frombranch %]</b> since 
398                                 [% RESERVE.datesent %]
399                             [% ELSE %]
400                                 Pending
401                             [% END %]
402                     [% END %]
403                 </td>
404                 <td>
405                 [% IF ( RESERVE.cancelable ) %]
406                         <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
407                         <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber %]" />
408                 <input type="hidden" name="reservenumber" value="[% RESERVE.reservenumber %]" />
409                         <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
410                 [% ELSE %]
411                         &nbsp;
412                 [% END %]
413                 </td>
414
415             </tr>
416             [% END %]
417                         </tbody>
418         </table>
419     </div>
420     [% END %]
421     </div><!-- /opac-user views -->
422     </div><!-- /userdetails -->
423 </div>
424 </div>
425 </div>
426 <div class="yui-b">
427 <div id="leftmenus" class="container">
428 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
429 </div>
430 </div>
431 </div>
432 [% INCLUDE 'opac-bottom.inc' %]