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