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