Whitespace was causing table sorting problem. Fixes Bug 2215, "In page JavaScript...
[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 EXPR="AmazonContent||GoogleJackets||BakerTaylorEnabled" -->
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 <!-- TMPL_IF NAME="GoogleJackets" -->KOHA.Google.GetCoverFromIsbn();<!-- /TMPL_IF -->
46             });
47 //]]>
48 </script>
49 </head>
50 <body>
51 <div id="doc3" class="yui-t1">
52    <div id="bd">
53 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
54
55     <div id="yui-main">
56     <div class="yui-b"><div class="yui-g">
57         <div id="userdetails" class="container">
58     <!-- TMPL_LOOP NAME="BORROWER_INFO" -->
59         <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>
60         
61                 <!-- 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 -->
62                 
63         <!-- TMPL_IF NAME="opacnote"-->
64                 <div class="dialog message">
65             <h3>Message from the library</h3>
66             <p><!-- TMPL_VAR name="opacnote" --></p>
67                 </div>
68         <!-- /TMPL_IF -->
69         <!-- TMPL_IF NAME="flagged" -->
70                 <div class="dialog alert">
71         <ul>
72             <!-- TMPL_IF NAME="debarred" -->
73                 <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>
74             <!-- /TMPL_IF -->
75             <!-- TMPL_IF NAME="gonenoaddress" -->
76                 <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>
77             <!-- /TMPL_IF -->
78             <!-- TMPL_IF NAME="lost" -->
79                 <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>
80             <!-- /TMPL_IF -->
81         </ul></div>
82         <!-- /TMPL_IF -->
83         
84 <div id="opac-user-views" class="toptabs">
85         <ul>
86             <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">Checked Out</a></li>
87             <!-- TMPL_IF NAME="overdues_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">Overdue</a></li><!-- /TMPL_IF -->
88             <!-- TMPL_IF NAME="amountoverfive" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
89             <!-- TMPL_IF NAME="amountoverzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
90             <!-- TMPL_IF NAME="amountlessthanzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Credits</a></li><!-- /TMPL_IF -->
91             <!-- 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 -->
92             <!-- TMPL_IF NAME="reserves_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li><!-- /TMPL_IF -->
93         </ul>
94         
95         <!-- FINES BOX -->
96         <!-- TMPL_IF NAME="amountoverfive" -->
97             <div id="opac-user-fines"> <h3>Fines and Charges</h3>
98             <table>
99                 <tr><th colspan="2">Amount</th></tr>
100                 <tr>
101                     <td>You currently owe fines and charges amounting to:</td>
102                     <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td>
103                 </tr>
104             </table></div>
105         <!-- /TMPL_IF -->
106
107         <!-- TMPL_IF NAME="amountoverzero" -->
108            <div id="opac-user-fines"> <h3>Fines and Charges</h3>
109             <table>
110                 <tr><th colspan="2">Amount</th></tr>
111                 <tr><td>You currently owe fines and charges amounting to:</td>
112                 <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
113             </table></div>
114         <!-- /TMPL_IF -->
115
116         <!-- TMPL_IF NAME="amountlessthanzero" -->
117           <div id="opac-user-fines">  <h3>Credits</h3>
118             <table>
119             <tr><th colspan="2">Amount</th></tr>
120             <tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
121             </table></div>
122         <!-- /TMPL_IF -->
123     
124     <!-- /TMPL_LOOP -->
125
126     <!-- TMPL_IF NAME="waiting_count" -->
127     <!-- TMPL_IF NAME="atdestination" -->
128     <div id="opac-user-waiting">
129         <table id="waitingt">
130             <caption>Holds Waiting</caption>
131             <tr>
132                 <th colspan="2">Title</th>
133                 <th>Hold date</th>
134                 <th>Pick Up Library</th>
135             </tr>
136             <!-- TMPL_LOOP NAME="WAITING" -->
137                 <tr>
138                     <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" /></td>
139                     <td><a href="opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
140                             <!-- TMPL_VAR NAME="waiting_title" -->
141                         </a><span class="item-details">
142                             <!-- TMPL_VAR NAME="author" -->
143                         </span></td>
144                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
145                     <td><!-- TMPL_IF NAME="atdestination" --><strong>Waiting</strong> at <!-- TMPL_VAR NAME="branch" -->
146                         <!-- TMPL_ELSE -->
147                         In transit from <!-- TMPL_VAR NAME="holdingbranch" --> to <!-- TMPL_VAR NAME="branch" -->
148                         <!-- /TMPL_IF --></td>
149                 </tr>
150             <!-- /TMPL_LOOP -->
151         </table></div>
152         <!-- /TMPL_IF -->
153     <!-- /TMPL_IF -->
154
155     <div id="opac-user-checkouts"><!-- TMPL_IF NAME="issues_count" -->
156         <table id="checkoutst">
157         <caption><!-- TMPL_VAR NAME="issues_count" --> Items Checked Out</caption>
158        <thead><tr>
159                 <!-- TMPL_IF EXPR="AmazonContent||GoogleJackets||BakerTaylorEnabled" --><th>&nbsp;</th><!-- /TMPL_IF -->
160         <th>Title</th>
161                 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS -->
162         <th>Call No.</th>
163         <th>Due</th>
164         <!-- TMPL_IF name="OpacRenewalAllowed" -->
165         <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
166         <!-- /TMPL_IF -->
167         <th>Fines</th>
168         </tr></thead>
169         <tbody><!-- TMPL_LOOP NAME="ISSUES" -->
170         <!-- TMPL_IF NAME="toggle" -->
171             
172             <!-- TMPL_IF NAME="overdue" -->
173                 <tr class="overdue">
174             <!-- TMPL_ELSE -->
175                 <tr>
176             <!-- /TMPL_IF -->
177             
178             <!-- TMPL_ELSE -->
179             
180         <!-- TMPL_IF NAME="overdue" -->
181                 <tr class="highlight overdue">
182             <!-- TMPL_ELSE -->
183                 <tr class="highlight">
184             <!-- /TMPL_IF -->
185             
186             <!-- /TMPL_IF -->
187 <!-- TMPL_IF NAME="AmazonContent" --><td><a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="amazonisbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="amazonisbn" -->.01.THUMBZZZ.jpg" alt="Cover Image" /></a></td><!-- /TMPL_IF -->
188
189     <!-- TMPL_IF NAME="GoogleJackets" --><td><div style="block" title="<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" id="<!-- TMPL_VAR NAME="amazonisbn" -->" class="gbs-thumbnail"></div></td><!-- /TMPL_IF -->
190
191     <!-- TMPL_IF NAME="BakerTaylorEnabled" --><td><!-- 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_IF --></td><!-- /TMPL_IF -->
192                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><span class="item-details">
193                         <!-- TMPL_VAR NAME="author" -->
194                     </span></td>
195                 <!-- 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 -->
196                 <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
197                 <!-- TMPL_IF NAME="overdue" -->
198                     <td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
199                 <!-- TMPL_ELSE -->
200                     <td><!-- TMPL_VAR NAME="date_due" --></td>
201                 <!-- /TMPL_IF -->
202                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
203                     <!-- TMPL_UNLESS name="patron_flagged" -->
204                     <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>
205                         <!-- TMPL_ELSE -->
206                             Not renewable
207                         <!-- /TMPL_IF --></td>
208                     <!-- /TMPL_UNLESS -->
209                 <!-- /TMPL_IF -->
210                 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
211             </tr>
212         <!-- /TMPL_LOOP --></tbody>
213         </table>
214         <!-- FIXME: See bug 1101 <!--TMPL_IF Name="OpacRenewalAllowed"-->
215             <form action="/cgi-bin/koha/opac-renew.pl" method="post">
216                 <input type="hidden" name="from" value="opac_user" />
217                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
218                 <!-- TMPL_LOOP NAME="ISSUES" -->
219                 <input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
220                 <!-- /TMPL_LOOP -->
221                 <input type="submit" value="Renew All" />
222             </form>
223         <!--/TMPL_IF--> -->
224     <!-- TMPL_ELSE -->
225         <table>
226             <tr><td>You have nothing checked out</td></tr>
227         </table>
228     <!-- /TMPL_IF --></div>
229     
230     
231 <!-- TMPL_IF NAME="overdues_count" -->
232 <div id="opac-user-overdues"><table id="overduest">
233 <caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
234 <!-- OVERDUES TABLE ROWS -->
235 <tr>
236 <!-- TMPL_IF EXPR="AmazonContent||GoogleJackets||BakerTaylorEnabled" --><th>&nbsp;</th><!-- /TMPL_IF -->
237         <th>Title</th>
238                 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS -->
239 <th>Call No.</th>
240 <th>Due</th>
241 <th>Renew</th>
242 <!-- <th>Fine to Date</th> -->
243 </tr>
244
245 <!-- TMPL_LOOP NAME="OVERDUES" -->
246 <tr>
247 <!-- TMPL_IF NAME="AmazonContent" --><td><a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="amazonisbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="amazonisbn" -->.01.THUMBZZZ.jpg" alt="Cover Image" /></a></td><!-- /TMPL_IF -->
248
249     <!-- TMPL_IF NAME="GoogleJackets" --><td><div style="block" title="<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" id="<!-- TMPL_VAR NAME="amazonisbn" -->" class="gbs-thumbnail"></div></td><!-- /TMPL_IF -->
250
251     <!-- TMPL_IF NAME="BakerTaylorEnabled" --><td><!-- 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_IF --></td><!-- /TMPL_IF -->
252
253 <td><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><span class="item-details">
254 <!-- TMPL_VAR NAME="author" --></span></td>
255
256  <!-- 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 -->
257 <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
258 <td><!-- TMPL_VAR NAME="date_due" --></td>
259 <td>
260 <!-- TMPL_IF NAME="debarred" -->Account Frozen
261 <!-- TMPL_ELSE -->
262 <!-- TMPL_IF NAME="status" -->
263 <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>
264 <!-- TMPL_ELSE -->
265 <!-- TMPL_IF NAME="onreserve" -->
266 On Reserve
267 <!-- TMPL_ELSE -->
268 No renewals left
269 <!-- /TMPL_IF -->
270 <!-- /TMPL_IF -->
271 <!-- /TMPL_IF -->
272 </td>
273 <!-- <td><!-- TMPL_VAR NAME="charges" --></td> -->
274 </tr>
275 <!-- /TMPL_LOOP -->
276 </table></div>
277 <!-- /TMPL_IF -->
278     
279
280     <!-- TMPL_IF NAME="reserves_count" -->
281         <div id="opac-user-holds">
282         <table id="holdst">
283         <caption>Holds <span class="count">(<!-- TMPL_VAR NAME="reserves_count" --> total)</span></caption>
284             <!-- RESERVES TABLE ROWS -->
285             <thead><tr>
286                 <th>Title</th>
287                 <th>Placed On</th>
288                 <th>Pick Up Location</th>
289                 <th>Status</th>
290                 <th>Modify</th>
291             </tr></thead>
292                         <tbody>
293             <!-- TMPL_LOOP NAME="RESERVES" -->
294            <!-- TMPL_IF NAME="wait" -->
295                         <!-- TMPL_IF NAME="atdestination" -->
296                             <!-- TMPL_IF NAME="found" -->
297                             <tr class="reserved">
298                             <!-- TMPL_ELSE -->
299                             <tr>
300                         <!-- /TMPL_IF -->
301                         <!-- TMPL_ELSE -->
302                             <tr class="transfered">
303                         <!-- /TMPL_IF -->
304                     <!-- TMPL_ELSE -->
305                             <tr>
306                     <!-- /TMPL_IF -->
307                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
308                     <!-- TMPL_VAR NAME="author" -->
309                 </td>
310                 <td><!-- TMPL_VAR NAME="reservedate" --></td>
311                 <td><!-- TMPL_VAR NAME="branch" --></td>
312                 <td>
313                     <!-- TMPL_IF NAME="wait" -->
314                         <!-- TMPL_IF NAME="atdestination" -->
315                             <!-- TMPL_IF NAME="found" -->
316                             Item waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
317                             <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
318                             <!-- TMPL_ELSE -->
319                             Item waiting to be pulled from <b> <!-- TMPL_VAR NAME="wbrname" --></b>
320                         <!-- /TMPL_IF -->
321                         <!-- TMPL_ELSE -->
322                             Item in transit to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
323                         <!-- /TMPL_IF -->
324                     <!-- TMPL_ELSE -->
325                             Item waiting to be pulled
326                     <!-- /TMPL_IF -->
327                 </td>
328                 <td>
329                 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
330                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
331                 <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
332                 </td>
333
334             </tr>
335             <!-- /TMPL_LOOP -->
336                         </tbody>
337         </table>
338     </div>
339     <!-- /TMPL_IF -->
340     </div><!-- /opac-user views -->
341     </div><!-- /userdetails -->
342 </div>
343 </div>
344 </div>
345 <div class="yui-b">
346 <div class="container">
347 <!--TMPL_INCLUDE NAME="navigation.inc" -->
348 <!-- TMPL_INCLUDE name="usermenu.inc" -->
349 </div>
350 </div>
351 </div>
352 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->