Corrected: Hiding renew link in the OPAC for items which cannot be renewed. Fixes...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-user.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Library Home for
3 <!-- TMPL_LOOP name="BORROWER_INFO" -->
4     <!-- TMPL_VAR name="firstname" --><!-- TMPL_VAR name="surname" -->
5 <!-- /TMPL_LOOP -->
6 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
8 <script type="text/JavaScript" language="JavaScript">
9 //<![CDATA[
10 $.tablesorter.addParser({
11     id: 'articles', 
12     is: function(s) {return false;  }, 
13     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
14     type: 'text' 
15 });
16             $(function() {
17             $('#opac-user-views > ul').tabs();
18                         $("#holdst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
19                 dateFormat: 'uk',<!-- /TMPL_IF -->
20                                 widgets : ['zebra'],
21                                 sortList: [[0,0]],
22                         headers: { 0: { sorter: 'articles' },4: { sorter: false }
23                                 }
24                         }); 
25                         $("#checkoutst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
26                 dateFormat: 'uk',<!-- /TMPL_IF -->
27                                 widgets : ['zebra'],
28                                 <!-- TMPL_IF NAME="JacketImages" -->
29                                         sortList: [[3,0]],
30                                                 <!-- TMPL_IF NAME="item-level_itypes" -->
31                                                         headers: { 0: { sorter: false }, 1: { sorter: 'articles' },4: { sorter: false },5: { sorter: false }}
32                                                 <!-- TMPL_ELSE -->
33                                                         headers: { 0: { sorter: false }, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false }}
34                                                 <!-- /TMPL_IF -->
35                                 <!-- TMPL_ELSE -->
36                                                 <!-- TMPL_IF NAME="item-level_itypes" -->
37                                                         sortList: [[2,0]],
38                                                         headers: { 0: { sorter: 'articles' },3: { sorter: false },4: { sorter: false }}
39                                                 <!-- TMPL_ELSE -->
40                                                         sortList: [[3,0]],
41                                                         headers: { 0: { sorter: 'articles' },4: { sorter: false },5: { sorter: false }}
42                                         <!-- /TMPL_IF -->
43                                 <!-- /TMPL_IF -->
44                         }); 
45                         $("#overduest").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
46                 dateFormat: 'uk',<!-- /TMPL_IF -->
47                                 widgets : ['zebra'],
48                                 <!-- TMPL_IF NAME="JacketImages" -->
49                                         sortList: [[1,0]],
50                                                 <!-- TMPL_IF NAME="item-level_itypes" -->
51                                                         headers: { 0: { sorter: false }, 1: { sorter: 'articles' },4: { sorter: false },5: { sorter: false }}
52                                                 <!-- TMPL_ELSE -->
53                                                         headers: { 0: { sorter: false }, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false }}
54                                                 <!-- /TMPL_IF -->
55                                 <!-- TMPL_ELSE -->
56                                                 <!-- TMPL_IF NAME="item-level_itypes" -->
57                                                         sortList: [[0,0]],
58                                                         headers: { 0: { sorter: 'articles' },3: { sorter: false }}
59                                                 <!-- TMPL_ELSE -->
60                                                         sortList: [[0,0]],
61                                                         headers: { 0: { sorter: 'articles' },1: { sorter: false },3: { sorter: false }}
62                                         <!-- /TMPL_IF -->
63                                 <!-- /TMPL_IF -->
64                         });
65 <!-- TMPL_IF NAME="GoogleJackets" -->KOHA.Google.GetCoverFromIsbn();<!-- /TMPL_IF -->
66             });
67 //]]>
68 </script>
69 </head>
70 <body id="opac-user">
71 <div id="doc3" class="yui-t1">
72    <div id="bd">
73 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
74
75     <div id="yui-main">
76     <div class="yui-b"><div class="yui-g">
77         <div id="userdetails" class="container">
78     <!-- TMPL_LOOP NAME="BORROWER_INFO" -->
79         <h2>Hello, <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> <span class="hint">(<a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here</a> if you're not <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" -->)</span></h2>
80         
81                 <!-- TMPL_IF NAME="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><!-- /TMPL_IF -->
82                 
83         <!-- TMPL_IF NAME="opacnote"-->
84                 <div class="dialog message">
85             <h3>Message from the library</h3>
86             <p><!-- TMPL_VAR name="opacnote" --></p>
87                 </div>
88         <!-- /TMPL_IF -->
89         <!-- TMPL_IF NAME="flagged" -->
90                 <div class="dialog alert">
91         <ul>
92             <!-- TMPL_IF NAME="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 consult a librarian.</li>
94             <!-- /TMPL_IF -->
95             <!-- TMPL_IF NAME="gonenoaddress" -->
96                 <li><strong>Please note:</strong> According to our records, we don't have up-to-date <a href="/cgi-bin/koha/opac-userdetails.pl">contact information</a> on file.  Please contact your librarian, 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)</li>
97             <!-- /TMPL_IF -->
98             <!-- TMPL_IF NAME="lost" -->
99                 <li><strong>Please note: </strong> Your library card has been marked as lost or stolen. If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.</li>
100             <!-- /TMPL_IF -->
101         </ul></div>
102         <!-- /TMPL_IF -->
103         
104 <div id="opac-user-views" class="toptabs">
105         <ul>
106             <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">Checked Out</a></li>
107             <!-- TMPL_IF NAME="overdues_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">Overdue</a></li><!-- /TMPL_IF -->
108             <!-- TMPL_IF NAME="amountoverfive" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
109             <!-- TMPL_IF NAME="amountoverzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
110             <!-- TMPL_IF NAME="amountlessthanzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Credits</a></li><!-- /TMPL_IF -->
111             <!-- TMPL_IF NAME="waiting_count" --><!-- TMPL_IF NAME="atdestination" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-waiting">Waiting</a></li><!-- /TMPL_IF --><!-- /TMPL_IF -->
112             <!-- TMPL_IF NAME="reserves_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li><!-- /TMPL_IF -->
113         </ul>
114         
115         <!-- FINES BOX -->
116         <!-- TMPL_IF NAME="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"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td>
123                 </tr>
124             </table></div>
125         <!-- /TMPL_IF -->
126
127         <!-- TMPL_IF NAME="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"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
133             </table></div>
134         <!-- /TMPL_IF -->
135
136         <!-- TMPL_IF NAME="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"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
141             </table></div>
142         <!-- /TMPL_IF -->
143     
144     <!-- /TMPL_LOOP -->
145
146     <!-- TMPL_IF NAME="waiting_count" -->
147     <!-- TMPL_IF NAME="atdestination" -->
148     <div id="opac-user-waiting">
149         <table id="waitingt">
150             <caption>Holds Waiting</caption>
151            <thead> <tr>
152                 <th colspan="2">Title</th>
153                 <th>Hold date</th>
154                 <th>Pick Up Library</th>
155             </tr></thead>
156             <tbody><!-- TMPL_LOOP NAME="WAITING" -->
157                 <tr>
158                     <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" /></td>
159                     <td><a href="opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
160                             <!-- TMPL_VAR NAME="waiting_title" -->
161                         </a><span class="item-details">
162                             <!-- TMPL_VAR NAME="author" -->
163                         </span></td>
164                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
165                     <td><!-- TMPL_IF NAME="atdestination" --><strong>Waiting</strong> at <!-- TMPL_VAR NAME="branch" -->
166                         <!-- TMPL_ELSE -->
167                         In transit from <!-- TMPL_VAR NAME="holdingbranch" --> to <!-- TMPL_VAR NAME="branch" -->
168                         <!-- /TMPL_IF --></td>
169                 </tr>
170             <!-- /TMPL_LOOP --></tbody>
171         </table></div>
172         <!-- /TMPL_IF -->
173     <!-- /TMPL_IF -->
174
175     <div id="opac-user-checkouts"><!-- TMPL_IF NAME="issues_count" -->
176         <table id="checkoutst">
177         <caption><!-- TMPL_VAR NAME="issues_count" --> Items Checked Out</caption>
178        <thead><tr>
179                 <!-- TMPL_IF NAME="JacketImages" --><th>&nbsp;</th><!-- /TMPL_IF -->
180         <th>Title</th>
181                 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS -->
182         <th>Call No.</th>
183         <th>Due</th>
184         <!-- TMPL_IF name="OpacRenewalAllowed" -->
185         <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
186         <!-- /TMPL_IF -->
187         <th>Fines</th>
188         </tr></thead>
189         <tbody>
190                 <!-- FIXME: the styling for highlight overrides the overdue red background,
191                                 so currently we don't use this conditional as the first thing inside the LOOP:
192         <!-- TMPL_UNLESS NAME="__odd__" -->
193            <tr<!-- TMPL_IF NAME="overdue" --> class="overdue"<!-- /TMPL_IF -->>
194         <!-- TMPL_ELSE -->
195            <tr class="<!-- TMPL_IF NAME="overdue" -->overdue <!-- /TMPL_IF -->highlight">
196         <!-- /TMPL_UNLESS -->
197                 -->
198                 <!-- TMPL_LOOP NAME="ISSUES" -->
199         <!-- TMPL_IF NAME="overdue" --><tr class="overdue"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
200
201 <!-- TMPL_IF NAME="JacketImages" --><td class="jacketcell">
202
203 <!-- TMPL_IF NAME="AmazonContent" --><!-- TMPL_IF NAME="amazonisbn" --><a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="amazonisbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link" title="View at Amazon.com"><img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="amazonisbn" -->.01.THUMBZZZ.jpg" alt="Cover Image" /></a><!-- TMPL_ELSE --><a href="#"><span class="no-image">No cover image available</span></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
204
205 <!-- TMPL_IF NAME="GoogleJackets" --><!-- TMPL_IF NAME="amazonisbn" --><div style="display:block;" title="Click to view in Google Books" class="<!-- TMPL_VAR NAME="amazonisbn" -->" id="gbs-thumbnail<!--TMPL_VAR NAME="__counter__"-->"></div><!-- TMPL_ELSE --><a href="http://books.google.com/books?q=<!-- TMPL_VAR NAME="title" escape="url" -->"><span class="no-image">No cover image available</span></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
206
207 <!-- TMPL_IF NAME="BakerTaylorEnabled" --><!-- TMPL_IF NAME="clean_isbn" --><a href="https://<!-- TMPL_VAR NAME="BakerTaylorBookstoreURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="clean_isbn" -->"><img alt="See Baker &amp; Taylor" src="<!-- TMPL_VAR NAME="BakerTaylorImageURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="clean_isbn" -->" /></a><!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- BakerTaylor needs clean_isbn! --><!-- /TMPL_IF --><!-- /TMPL_IF -->
208
209 </td><!-- /TMPL_IF -->
210
211                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><span class="item-details">
212                         <!-- TMPL_VAR NAME="author" -->
213                     </span></td>
214                 <!-- TMPL_UNLESS NAME="item-level_itypes" --><td><!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_IF --> <!-- TMPL_VAR name="description" --></td><!-- /TMPL_UNLESS -->
215                 <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
216                 <!-- TMPL_IF NAME="overdue" -->
217                     <td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
218                 <!-- TMPL_ELSE -->
219                     <td><!-- TMPL_VAR NAME="date_due" --></td>
220                 <!-- /TMPL_IF -->
221                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
222                     <!-- TMPL_UNLESS name="patron_flagged" -->
223                     <td><!-- TMPL_IF NAME="status" --><a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Renew</a> <span class="renewals">(<!-- TMPL_VAR NAME="renewsleft" --> of <!-- TMPL_VAR NAME="renewsallowed" --> renewals remaining)</span>
224                         <!-- TMPL_ELSE -->
225                         Not renewable<!-- TMPL_IF NAME="too_many" --> <span class="renewals">(<!-- TMPL_VAR NAME="renewsleft" --> of <!-- TMPL_VAR NAME="renewsallowed" --> renewals remaining)</span><!-- TMPL_ELSE --><!-- TMPL_IF NAME="on_reserve" --> <span class="renewals">(On hold)</span><!-- /TMPL_IF --><!-- /TMPL_IF --> 
226                         <!-- /TMPL_IF --></td>
227                     <!-- /TMPL_UNLESS -->
228                 <!-- /TMPL_IF -->
229                 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
230             </tr>
231         <!-- /TMPL_LOOP --></tbody>
232         </table>
233                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
234                 <form action="/cgi-bin/koha/opac-renew.pl" method="post">
235                         <input type="hidden" name="from" value="opac_user" />
236                         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
237                         <!-- TMPL_LOOP NAME="ISSUES" -->
238                         <input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
239                         <!-- /TMPL_LOOP -->
240                         <input type="submit" value="Renew All" />
241                 </form>
242                 <!-- /TMPL_IF -->
243     <!-- TMPL_ELSE -->
244         <table>
245             <tr><td>You have nothing checked out</td></tr>
246         </table>
247     <!-- /TMPL_IF --></div>
248     
249     
250 <!-- TMPL_IF NAME="overdues_count" -->
251 <div id="opac-user-overdues"><table id="overduest">
252 <caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
253 <!-- OVERDUES TABLE ROWS -->
254 <thead><tr>
255 <!-- TMPL_IF NAME="JacketImages" --><th>&nbsp;</th><!-- /TMPL_IF -->
256 <th>Title</th>
257 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS -->
258 <th>Call No.</th>
259 <th>Due</th>
260 <!-- TMPL_IF name="OpacRenewalAllowed" -->
261                     <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
262 <th>Fines</th>
263 </tr></thead>
264
265 <tbody><!-- TMPL_LOOP NAME="OVERDUES" -->
266 <tr>
267 <!-- TMPL_IF NAME="JacketImages" --><td class="jacketcell">
268
269 <!-- TMPL_IF NAME="AmazonContent" --><!-- TMPL_IF NAME="amazonisbn" --><a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="amazonisbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link" title="View at Amazon.com"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="amazonisbn" -->.01.THUMBZZZ.jpg" alt="" class="thumbnail" /></a><!-- TMPL_ELSE --><a href="#"><span class="no-image">No cover image available</span></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
270
271 <!-- TMPL_IF NAME="GoogleJackets" --><!-- TMPL_IF NAME="amazonisbn" --><div style="display:block;" title="Click to view in Google Books" class="<!-- TMPL_VAR NAME="amazonisbn" -->" id="gbs-thumbnail<!--TMPL_VAR NAME="__counter__"-->"></div><!-- TMPL_ELSE --><a href="http://books.google.com/books?q=<!-- TMPL_VAR NAME="title" escape="url" -->"><span class="no-image">No cover image available</span></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
272
273 <!-- TMPL_IF NAME="BakerTaylorEnabled" --><!-- TMPL_IF NAME="clean_isbn" --><a href="https://<!-- TMPL_VAR NAME="BakerTaylorBookstoreURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="clean_isbn" -->"><img alt="See Baker &amp; Taylor" src="<!-- TMPL_VAR NAME="BakerTaylorImageURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="clean_isbn" -->" /></a><!-- TMPL_ELSE --><!-- BakerTaylor needs clean_isbn! --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF -->
274 </td><!-- /TMPL_IF -->
275 <td><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a> <span class="item-details"><!-- TMPL_VAR NAME="author" --></span></td>
276
277 <!-- TMPL_UNLESS NAME="item-level_itypes" --><td><!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_IF --> <!-- TMPL_VAR name="description" --></td><!-- /TMPL_UNLESS -->
278 <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
279 <td><!-- TMPL_VAR NAME="date_due" --></td>
280                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
281                     <!-- TMPL_UNLESS name="patron_flagged" -->
282 <td>
283 <!-- TMPL_IF NAME="debarred" -->Account Frozen
284 <!-- TMPL_ELSIF NAME="status" -->
285 <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;bornum=<!-- TMPL_VAR NAME="borrowernumber" -->">Renew</a> <span class="renewals">(<!-- TMPL_VAR NAME="renewsleft" --> of <!-- TMPL_VAR NAME="renewsallowed" --> renewals remaining)</span>
286 <!-- TMPL_ELSIF NAME="onreserve" -->On Reserve
287 <!-- TMPL_ELSE -->No renewals left
288 <!-- /TMPL_IF -->
289 </td><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
290 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
291 </tr>
292 <!-- /TMPL_LOOP --></tbody>
293 </table></div>
294 <!-- /TMPL_IF -->
295     
296
297     <!-- TMPL_IF NAME="reserves_count" -->
298         <div id="opac-user-holds">
299         <table id="holdst">
300         <caption>Holds <span class="count">(<!-- TMPL_VAR NAME="reserves_count" --> total)</span></caption>
301             <!-- RESERVES TABLE ROWS -->
302             <thead><tr>
303                 <th>Title</th>
304                 <th>Placed On</th>
305                 <th>Pick Up Location</th>
306                 <th>Status</th>
307                 <th>Modify</th>
308             </tr></thead>
309                         <tbody>
310             <!-- TMPL_LOOP NAME="RESERVES" -->
311            <!-- TMPL_IF NAME="wait" -->
312                         <!-- TMPL_IF NAME="atdestination" -->
313                             <!-- TMPL_IF NAME="found" -->
314                             <tr class="reserved">
315                             <!-- TMPL_ELSE -->
316                             <tr>
317                         <!-- /TMPL_IF -->
318                         <!-- TMPL_ELSE -->
319                             <tr class="transfered">
320                         <!-- /TMPL_IF -->
321                     <!-- TMPL_ELSE -->
322                             <tr>
323                     <!-- /TMPL_IF -->
324                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
325                     <!-- TMPL_VAR NAME="author" -->
326                 </td>
327                 <td><!-- TMPL_VAR NAME="reservedate" --></td>
328                 <td><!-- TMPL_VAR NAME="branch" --></td>
329                 <td>
330                     <!-- TMPL_IF NAME="wait" -->
331                         <!-- TMPL_IF NAME="atdestination" -->
332                             <!-- TMPL_IF NAME="found" -->
333                             Item waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
334                             <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
335                             <!-- TMPL_ELSE -->
336                             Item waiting to be pulled from <b> <!-- TMPL_VAR NAME="wbrname" --></b>
337                         <!-- /TMPL_IF -->
338                         <!-- TMPL_ELSE -->
339                             Item in transit to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
340                         <!-- /TMPL_IF -->
341                     <!-- TMPL_ELSE -->
342                             <!-- TMPL_IF NAME="intransit" -->
343                                 Item in transit from <b> <!-- TMPL_VAR NAME="frombranch" --></b> since 
344                                 <!-- TMPL_VAR NAME="datesent" -->
345                             <!-- TMPL_ELSE -->
346                                 Item waiting to be pulled
347                             <!-- /TMPL_IF -->
348                     <!-- /TMPL_IF -->
349                 </td>
350                 <td>
351                 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
352                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
353                 <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
354                 </td>
355
356             </tr>
357             <!-- /TMPL_LOOP -->
358                         </tbody>
359         </table>
360     </div>
361     <!-- /TMPL_IF -->
362     </div><!-- /opac-user views -->
363     </div><!-- /userdetails -->
364 </div>
365 </div>
366 </div>
367 <div class="yui-b">
368 <div class="container">
369 <!--TMPL_INCLUDE NAME="navigation.inc" -->
370 <!-- TMPL_INCLUDE name="usermenu.inc" -->
371 </div>
372 </div>
373 </div>
374 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->