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