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