MT 1587 : CSV export for cart and shelves, with the ability to define different expor...
[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
79         <!-- TMPL_IF NAME="bor_messages" -->
80                <div class="dialog message">
81                        <h3>Messages For You</h3>
82                        <ul>
83                                <!--TMPL_LOOP NAME="bor_messages_loop" -->
84                                         <li>
85                                                 <strong><!--TMPL_VAR NAME="message"--></strong><br>
86                                                 &nbsp;&nbsp;&nbsp;<i>Written on <!--TMPL_VAR NAME="message_date_formatted"--> by <!--TMPL_VAR NAME="branchname"--></i>
87                                         </li>
88                                 <!-- /TMPL_LOOP -->
89
90                                 <!-- TMPL_IF NAME="opacnote" --><li><!-- TMPL_VAR name="opacnote" --></li><!-- /TMPL_IF -->
91                        </ul>
92                </div>
93         <!-- /TMPL_IF -->
94     <!-- TMPL_LOOP NAME="BORROWER_INFO" -->
95         <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>
96         
97                 <!-- 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 -->
98                 
99
100         <!-- TMPL_IF NAME="flagged" -->
101                 <div class="dialog alert">
102         <ul>
103             <!-- TMPL_IF NAME="debarred" -->
104                 <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>
105             <!-- /TMPL_IF -->
106             <!-- TMPL_IF NAME="gonenoaddress" -->
107                 <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>
108             <!-- /TMPL_IF -->
109             <!-- TMPL_IF NAME="lost" -->
110                 <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>
111             <!-- /TMPL_IF -->
112             <!-- TMPL_IF NAME="renewal_blocked_fines" -->
113                 <li><strong>Please note: </strong> Since you have <a href="/cgi-bin/koha/opac-account.pl">more than <!-- TMPL_VAR NAME="renewal_blocked_fines" --></a> in fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.</li>
114             <!-- /TMPL_IF -->
115         </ul></div>
116         <!-- /TMPL_IF -->
117         
118 <div id="opac-user-views" class="toptabs">
119         <ul>
120             <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">Checked Out</a></li>
121             <!-- TMPL_IF NAME="overdues_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">Overdue</a></li><!-- /TMPL_IF -->
122             <!-- TMPL_IF NAME="amountoverfive" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
123             <!-- TMPL_IF NAME="amountoverzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
124             <!-- TMPL_IF NAME="amountlessthanzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Credits</a></li><!-- /TMPL_IF -->
125             <!-- 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 -->
126             <!-- TMPL_IF NAME="reserves_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li><!-- /TMPL_IF -->
127         </ul>
128         
129         <!-- FINES BOX -->
130         <!-- TMPL_IF NAME="amountoverfive" -->
131             <div id="opac-user-fines"> <h3>Fines and Charges</h3>
132             <table>
133                 <tr><th colspan="2">Amount</th></tr>
134                 <tr>
135                     <td>You currently owe fines and charges amounting to:</td>
136                     <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td>
137                 </tr>
138             </table></div>
139         <!-- /TMPL_IF -->
140
141         <!-- TMPL_IF NAME="amountoverzero" -->
142            <div id="opac-user-fines"> <h3>Fines and Charges</h3>
143             <table>
144                 <tr><th colspan="2">Amount</th></tr>
145                 <tr><td>You currently owe fines and charges amounting to:</td>
146                 <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
147             </table></div>
148         <!-- /TMPL_IF -->
149
150         <!-- TMPL_IF NAME="amountlessthanzero" -->
151           <div id="opac-user-fines">  <h3>Credits</h3>
152             <table>
153             <tr><th colspan="2">Amount</th></tr>
154             <tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
155             </table></div>
156         <!-- /TMPL_IF -->
157     
158     <!-- /TMPL_LOOP -->
159
160     <!-- TMPL_IF NAME="waiting_count" -->
161     <!-- TMPL_IF NAME="atdestination" -->
162     <div id="opac-user-waiting">
163         <table id="waitingt">
164             <caption>Holds Waiting</caption>
165            <thead> <tr>
166                 <th colspan="2">Title</th>
167                 <th>Hold date</th>
168                 <th>Pick Up Library</th>
169             </tr></thead>
170             <tbody><!-- TMPL_LOOP NAME="WAITING" -->
171                 <tr>
172                     <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" /></td>
173                     <td><a href="opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
174                             <!-- TMPL_VAR NAME="waiting_title" -->
175                         </a><span class="item-details">
176                             <!-- TMPL_VAR NAME="author" -->
177                         </span></td>
178                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
179                     <td><!-- TMPL_IF NAME="atdestination" --><strong>Waiting</strong> at <!-- TMPL_VAR NAME="branch" -->
180                         <!-- TMPL_ELSE -->
181                         In transit from <!-- TMPL_VAR NAME="holdingbranch" --> to <!-- TMPL_VAR NAME="branch" -->
182                         <!-- /TMPL_IF --></td>
183                 </tr>
184             <!-- /TMPL_LOOP --></tbody>
185         </table></div>
186         <!-- /TMPL_IF -->
187     <!-- /TMPL_IF -->
188
189     <div id="opac-user-checkouts"><!-- TMPL_IF NAME="issues_count" -->
190         <table id="checkoutst">
191         <caption><!-- TMPL_VAR NAME="issues_count" --> Items Checked Out</caption>
192        <thead><tr>
193                 <!-- TMPL_IF NAME="JacketImages" --><th>&nbsp;</th><!-- /TMPL_IF -->
194         <th>Title</th>
195                 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS -->
196         <th>Call No.</th>
197         <th>Due</th>
198         <!-- TMPL_IF name="OpacRenewalAllowed" -->
199         <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
200         <!-- /TMPL_IF -->
201         <th>Fines</th>
202         </tr></thead>
203         <tbody>
204                 <!-- FIXME: the styling for highlight overrides the overdue red background,
205                                 so currently we don't use this conditional as the first thing inside the LOOP:
206         <!-- TMPL_UNLESS NAME="__odd__" -->
207            <tr<!-- TMPL_IF NAME="overdue" --> class="overdue"<!-- /TMPL_IF -->>
208         <!-- TMPL_ELSE -->
209            <tr class="<!-- TMPL_IF NAME="overdue" -->overdue <!-- /TMPL_IF -->highlight">
210         <!-- /TMPL_UNLESS -->
211                 -->
212                 <!-- TMPL_LOOP NAME="ISSUES" -->
213         <!-- TMPL_IF NAME="overdue" --><tr class="overdue"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
214
215 <!-- TMPL_IF NAME="JacketImages" --><td class="jacketcell">
216
217 <!-- TMPL_IF NAME="OPACAmazonCoverImages" --><!-- TMPL_IF NAME="normalized_isbn" --><a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="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/<!-- TMPL_VAR name="normalized_isbn" -->.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 -->
218
219 <!-- TMPL_IF NAME="GoogleJackets" --><!-- TMPL_IF NAME="normalized_isbn" --><div style="display:block;" title="Click to view in Google Books" class="<!-- TMPL_VAR NAME="normalized_isbn" -->" 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 -->
220
221 <!-- TMPL_IF NAME="BakerTaylorEnabled" --><!-- TMPL_IF NAME="normalized_isbn" --><a href="https://<!-- TMPL_VAR NAME="BakerTaylorBookstoreURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->"><img alt="See Baker &amp; Taylor" src="<!-- TMPL_VAR NAME="BakerTaylorImageURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->" /></a><!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_isbn! --><!-- /TMPL_IF --><!-- /TMPL_IF -->
222
223 <!-- TMPL_IF NAME="SyndeticsCoverImages" --><img src="http://www.syndetics.com/index.aspx?isbn=<!-- TMPL_VAR NAME="normalized_isbn" -->/SC.GIF&amp;client=<!-- TMPL_VAR NAME="SyndeticsClientCode" --><!-- TMPL_IF NAME="normalized_upc" -->&amp;upc=<!-- TMPL_VAR NAME="normalized_upc" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="normalized_oclc" -->&amp;oclc=<!-- TMPL_VAR NAME="normalized_oclc" --><!-- /TMPL_IF -->&amp;type=xw10" alt="" class="thumbnail"/><!-- /TMPL_IF -->
224
225 </td><!-- /TMPL_IF -->
226
227                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a><span class="item-details">
228                         <!-- TMPL_VAR NAME="author" -->
229                     </span></td>
230                 <!-- 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 -->
231                 <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
232                 <!-- TMPL_IF NAME="overdue" -->
233                     <td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
234                 <!-- TMPL_ELSE -->
235                     <td><!-- TMPL_VAR NAME="date_due" --></td>
236                 <!-- /TMPL_IF -->
237                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
238                     <!-- TMPL_UNLESS name="patron_flagged" -->
239                     <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>
240                         <!-- TMPL_ELSE -->
241                         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 --> 
242                         <!-- /TMPL_IF --></td>
243                     <!-- /TMPL_UNLESS -->
244                 <!-- /TMPL_IF -->
245                 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
246             </tr>
247         <!-- /TMPL_LOOP --></tbody>
248         </table>
249                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
250                 <form action="/cgi-bin/koha/opac-renew.pl" method="post">
251                         <input type="hidden" name="from" value="opac_user" />
252                         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
253                         <!-- TMPL_LOOP NAME="ISSUES" -->
254                         <input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
255                         <!-- /TMPL_LOOP -->
256                         <!-- TMPL_UNLESS name="patron_flagged" --><input type="submit" value="Renew All" /><!-- /TMPL_UNLESS -->
257                 </form>
258                 <!-- /TMPL_IF -->
259     <!-- TMPL_ELSE -->
260         <table>
261             <tr><td>You have nothing checked out</td></tr>
262         </table>
263     <!-- /TMPL_IF --></div>
264     
265     
266 <!-- TMPL_IF NAME="overdues_count" -->
267 <div id="opac-user-overdues"><table id="overduest">
268 <caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
269 <!-- OVERDUES TABLE ROWS -->
270 <thead><tr>
271 <!-- TMPL_IF NAME="JacketImages" --><th>&nbsp;</th><!-- /TMPL_IF -->
272 <th>Title</th>
273 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS -->
274 <th>Call No.</th>
275 <th>Due</th>
276 <!-- TMPL_IF name="OpacRenewalAllowed" -->
277                     <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
278 <th>Fines</th>
279 </tr></thead>
280
281 <tbody><!-- TMPL_LOOP NAME="OVERDUES" -->
282 <tr>
283 <!-- TMPL_IF NAME="JacketImages" --><td class="jacketcell">
284
285 <!-- TMPL_IF NAME="OPACAmazonCoverImages" --><!-- TMPL_IF NAME="normalized_isbn" --><a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="normalized_isbn" -->/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="normalized_isbn" -->.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 -->
286
287 <!-- TMPL_IF NAME="GoogleJackets" --><!-- TMPL_IF NAME="normalized_isbn" --><div style="display:block;" title="Click to view in Google Books" class="<!-- TMPL_VAR NAME="normalized_isbn" -->" 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 -->
288
289 <!-- TMPL_IF NAME="BakerTaylorEnabled" --><!-- TMPL_IF NAME="normalized_isbn" --><a href="https://<!-- TMPL_VAR NAME="BakerTaylorBookstoreURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->"><img alt="See Baker &amp; Taylor" src="<!-- TMPL_VAR NAME="BakerTaylorImageURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->" /></a><!-- TMPL_ELSE --><!-- BakerTaylor needs normalized_isbn! --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF -->
290
291 <!-- TMPL_IF NAME="SyndeticsCoverImages" --><img src="http://www.syndetics.com/index.aspx?isbn=<!-- TMPL_VAR NAME="normalized_isbn" -->/SC.GIF&amp;client=<!-- TMPL_VAR NAME="SyndeticsClientCode" --><!-- TMPL_IF NAME="normalized_upc" -->&amp;upc=<!-- TMPL_VAR NAME="normalized_upc" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="normalized_oclc" -->&amp;oclc=<!-- TMPL_VAR NAME="normalized_oclc" --><!-- /TMPL_IF -->&amp;type=xw10" alt="" class="thumbnail"/><!-- /TMPL_IF -->
292
293 </td><!-- /TMPL_IF -->
294
295 <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>
296
297 <!-- 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 -->
298 <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
299 <td><!-- TMPL_VAR NAME="date_due" --></td>
300                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
301                     <!-- TMPL_UNLESS name="patron_flagged" -->
302 <td>
303 <!-- TMPL_IF NAME="debarred" -->Account Frozen
304 <!-- TMPL_ELSIF NAME="status" -->
305 <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>
306 <!-- TMPL_ELSIF NAME="onreserve" -->On Reserve
307 <!-- TMPL_ELSE -->No renewals left
308 <!-- /TMPL_IF -->
309 </td><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
310 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
311 </tr>
312 <!-- /TMPL_LOOP --></tbody>
313 </table></div>
314 <!-- /TMPL_IF -->
315     
316
317     <!-- TMPL_IF NAME="reserves_count" -->
318         <div id="opac-user-holds">
319         <table id="holdst">
320         <caption>Holds <span class="count">(<!-- TMPL_VAR NAME="reserves_count" --> total)</span></caption>
321             <!-- RESERVES TABLE ROWS -->
322             <thead><tr>
323                 <th>Title</th>
324                 <th>Placed On</th>
325                 <th>Pick Up Location</th>
326                                 <!-- TMPL_IF NAME="showpriority" -->
327                                 <th>Priority</th>
328                                 <!-- /TMPL_IF -->
329                 <th>Status</th>
330                 <th>Modify</th>
331             </tr></thead>
332                         <tbody>
333             <!-- TMPL_LOOP NAME="RESERVES" -->
334            <!-- TMPL_IF NAME="wait" -->
335                         <!-- TMPL_IF NAME="atdestination" -->
336                             <!-- TMPL_IF NAME="found" -->
337                             <tr class="reserved">
338                             <!-- TMPL_ELSE -->
339                             <tr>
340                         <!-- /TMPL_IF -->
341                         <!-- TMPL_ELSE -->
342                             <tr class="transfered">
343                         <!-- /TMPL_IF -->
344                     <!-- TMPL_ELSE -->
345                             <tr>
346                     <!-- /TMPL_IF -->
347                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
348                     <!-- TMPL_VAR NAME="author" -->
349                 </td>
350                 <td><!-- TMPL_VAR NAME="reservedate" --></td>
351                 <td><!-- TMPL_VAR NAME="branch" --></td>
352                                 <!-- TMPL_IF NAME="showpriority" -->
353                                 <td><!-- TMPL_VAR NAME="priority" --> </td>
354                                 <!-- /TMPL_IF -->
355                 <td>
356                     <!-- TMPL_IF NAME="wait" -->
357                         <!-- TMPL_IF NAME="atdestination" -->
358                             <!-- TMPL_IF NAME="found" -->
359                             Item waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
360                             <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
361                             <!-- TMPL_ELSE -->
362                             Item waiting to be pulled from <b> <!-- TMPL_VAR NAME="wbrname" --></b>
363                         <!-- /TMPL_IF -->
364                         <!-- TMPL_ELSE -->
365                             Item in transit to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
366                         <!-- /TMPL_IF -->
367                     <!-- TMPL_ELSE -->
368                             <!-- TMPL_IF NAME="intransit" -->
369                                 Item in transit from <b> <!-- TMPL_VAR NAME="frombranch" --></b> since 
370                                 <!-- TMPL_VAR NAME="datesent" -->
371                             <!-- TMPL_ELSE -->
372                                 Pending
373                             <!-- /TMPL_IF -->
374                     <!-- /TMPL_IF -->
375                 </td>
376                 <td>
377                 <!-- TMPL_IF NAME="cancelable" -->
378                         <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
379                         <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
380                         <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
381                 <!-- TMPL_ELSE -->
382                         &nbsp;
383                 <!-- /TMPL_IF -->
384                 </td>
385
386             </tr>
387             <!-- /TMPL_LOOP -->
388                         </tbody>
389         </table>
390     </div>
391     <!-- /TMPL_IF -->
392     </div><!-- /opac-user views -->
393     </div><!-- /userdetails -->
394 </div>
395 </div>
396 </div>
397 <div class="yui-b">
398 <div class="container">
399 <!--TMPL_INCLUDE NAME="navigation.inc" -->
400 <!-- TMPL_INCLUDE name="usermenu.inc" -->
401 </div>
402 </div>
403 </div>
404 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->