Highlight waiting and transfered items in the user's holds list. Statuses on transfer...
[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.pack.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({
19                                 widgets : ['zebra'],
20                                 sortList: [[0,0]],
21                         headers: { 0: { sorter: 'articles' },4: { sorter: false }
22                                 }
23                         }); 
24                         $("#checkoutst").tablesorter({
25                                 widgets : ['zebra'],
26                                 <!-- TMPL_IF NAME="AmazonContent" -->
27                                 sortList: [[3,0]],
28                                 <!-- TMPL_IF NAME="item-level_itypes" -->
29                                 sortList: [[3,0]],
30                                 headers: { 0: { sorter: false }, 1: { sorter: 'articles' },4: { sorter: false },5: { sorter: false }}
31                                 <!-- TMPL_ELSE -->
32                                 sortList: [[3,0]],
33                                 headers: { 0: { sorter: false }, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false }}
34                                 <!-- /TMPL_IF -->
35                                 <!-- TMPL_ELSE -->
36                                 sortList: [[2,0]],
37                                 <!-- TMPL_IF NAME="item-level_itypes" -->
38                                 sortList: [[2,0]],
39                                 headers: { 0: { sorter: 'articles' },3: { sorter: false },4: { sorter: false }}
40                                 <!-- TMPL_ELSE -->
41                                 sortList: [[3,0]],
42                                 headers: { 0: { sorter: 'articles' },4: { sorter: false },5: { sorter: false }}
43                                 <!-- /TMPL_IF -->
44                                 <!-- /TMPL_IF -->
45                         }); 
46             });
47 //]]>
48 </script>
49 </head>
50 <body>
51 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
52
53 <div id="doc3" class="yui-t1">
54    <div id="bd">
55     <div id="yui-main">
56     <div class="yui-b"><div class="yui-g">
57
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             <h3>Message from the library</h3>
65             <p><!-- TMPL_VAR name="opacnote" --></p>
66         <!-- /TMPL_IF -->
67         <!-- TMPL_IF NAME="flagged" -->
68         <ul>
69             <!-- TMPL_IF NAME="debarred" -->
70                 <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>
71             <!-- /TMPL_IF -->
72             <!-- TMPL_IF NAME="gonenoaddress" -->
73                 <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>
74             <!-- /TMPL_IF -->
75             <!-- TMPL_IF NAME="lost" -->
76                 <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>
77             <!-- /TMPL_IF -->
78         </ul>
79         <!-- /TMPL_IF -->
80         
81 <div id="opac-user-views" class="toptabs">
82         <ul>
83             <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">Checked Out</a></li>
84             <!-- TMPL_IF NAME="overdues_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">Overdue</a></li><!-- /TMPL_IF -->
85             <!-- TMPL_IF NAME="amountoverfive" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
86             <!-- TMPL_IF NAME="amountoverzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
87             <!-- TMPL_IF NAME="amountlessthanzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Credits</a></li><!-- /TMPL_IF -->
88             <!-- 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 -->
89             <!-- TMPL_IF NAME="reserves_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li><!-- /TMPL_IF -->
90         </ul>
91         
92         <!-- FINES BOX -->
93         <!-- TMPL_IF NAME="amountoverfive" -->
94             <div id="opac-user-fines"> <h3>Fines and Charges</h3>
95             <table>
96                 <tr><th colspan="2">Amount</th></tr>
97                 <tr>
98                     <td>You currently owe fines and charges amounting to:</td>
99                     <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td>
100                 </tr>
101             </table></div>
102         <!-- /TMPL_IF -->
103
104         <!-- TMPL_IF NAME="amountoverzero" -->
105            <div id="opac-user-fines"> <h3>Fines and Charges</h3>
106             <table>
107                 <tr><th colspan="2">Amount</th></tr>
108                 <tr><td>You currently owe fines and charges amounting to:</td>
109                 <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
110             </table></div>
111         <!-- /TMPL_IF -->
112
113         <!-- TMPL_IF NAME="amountlessthanzero" -->
114           <div id="opac-user-fines">  <h3>Credits</h3>
115             <table>
116             <tr><th colspan="2">Amount</th></tr>
117             <tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
118             </table></div>
119         <!-- /TMPL_IF -->
120     
121     <!-- /TMPL_LOOP -->
122
123     <!-- TMPL_IF NAME="waiting_count" -->
124     <!-- TMPL_IF NAME="atdestination" -->
125     <div id="opac-user-waiting">
126         <table id="waitingt">
127             <caption>Holds Waiting</caption>
128             <tr>
129                 <th colspan="2">Title</th>
130                 <th>Hold date</th>
131                 <th>Pick Up Branch</th>
132             </tr>
133             <!-- TMPL_LOOP NAME="WAITING" -->
134                 <tr>
135                     <td>
136                         <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
137                     </td>
138                     <td>
139                         <a href="opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
140                             <!-- TMPL_VAR NAME="waiting_title" -->
141                         </a>
142                         <span class="item-details">
143                             <!-- TMPL_VAR NAME="author" -->
144                         </span>
145                     </td>
146                     <td>
147                         <!-- TMPL_VAR NAME="reservedate" -->
148                     </td>
149                     <td>
150                         <!-- TMPL_IF NAME="atdestination" -->
151                         <strong>Waiting</strong> at <!-- TMPL_VAR NAME="branch" -->
152                         <!-- TMPL_ELSE -->
153                         In transit from <!-- TMPL_VAR NAME="holdingbranch" --> to <!-- TMPL_VAR NAME="branch" -->
154                         <!-- /TMPL_IF -->
155                     </td>
156                 </tr>
157             <!-- /TMPL_LOOP -->
158         </table></div>
159         <!-- /TMPL_IF -->
160     <!-- /TMPL_IF -->
161
162     <div id="opac-user-checkouts"><!-- TMPL_IF NAME="issues_count" -->
163         <table id="checkoutst">
164         <caption><!-- TMPL_VAR NAME="issues_count" --> Items Checked Out</caption>
165        <thead><tr>
166                 <!-- TMPL_IF NAME="AmazonContent" --><th>&nbsp;</th><!-- /TMPL_IF -->
167         <th>Title</th>
168                 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS -->
169         <th>Call No.</th>
170         <th>Due</th>
171         <!-- TMPL_IF name="OpacRenewalAllowed" -->
172         <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
173         <!-- /TMPL_IF -->
174         <th>Fines</th>
175         </tr></thead>
176         <tbody><!-- TMPL_LOOP NAME="ISSUES" -->
177         <!-- TMPL_IF NAME="toggle" -->
178             
179             <!-- TMPL_IF NAME="overdue" -->
180                 <tr class="overdue">
181             <!-- TMPL_ELSE -->
182                 <tr>
183             <!-- /TMPL_IF -->
184             
185             <!-- TMPL_ELSE -->
186             
187         <!-- TMPL_IF NAME="overdue" -->
188                 <tr class="highlight overdue">
189             <!-- TMPL_ELSE -->
190                 <tr class="highlight">
191             <!-- /TMPL_IF -->
192             
193             <!-- /TMPL_IF -->
194                         <!-- TMPL_IF NAME="AmazonContent" --><td><!-- TMPL_IF NAME="isbn" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg" alt="Book Cover Image" class="thumbnail" /></a><!-- /TMPL_IF --></td><!-- /TMPL_IF -->
195                 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
196                     <span class="item-details">
197                         <!-- TMPL_VAR NAME="author" -->
198                     </span>
199                 </td>
200                 <!-- TMPL_UNLESS NAME="item-level_itypes" --><td>
201                     <!-- 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" -->
202                 </td><!-- /TMPL_UNLESS -->
203                 <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
204                 <!-- TMPL_IF NAME="overdue" -->
205                     <td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
206                 <!-- TMPL_ELSE -->
207                     <td><!-- TMPL_VAR NAME="date_due" --></td>
208                 <!-- /TMPL_IF -->
209                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
210                     <!-- TMPL_UNLESS name="patron_flagged" -->
211                     <td>
212                         <!-- TMPL_IF NAME="status" -->
213                             <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>
214                         <!-- TMPL_ELSE -->
215                             Not renewable
216                         <!-- /TMPL_IF -->
217                     </td>
218                     <!-- /TMPL_UNLESS -->
219                 <!-- /TMPL_IF -->
220                 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
221             </tr>
222         <!-- /TMPL_LOOP --></tbody>
223         </table>
224         <!-- FIXME: See bug 1101 <!--TMPL_IF Name="OpacRenewalAllowed"-->
225             <form action="/cgi-bin/koha/opac-renew.pl" method="post">
226                 <input type="hidden" name="from" value="opac_user" />
227                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
228                 <!-- TMPL_LOOP NAME="ISSUES" -->
229                 <input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
230                 <!-- /TMPL_LOOP -->
231                 <input type="submit" value="Renew All" />
232             </form>
233         <!--/TMPL_IF--> -->
234     <!-- TMPL_ELSE -->
235         <table>
236             <tr><td>You have nothing checked out</td></tr>
237         </table>
238     <!-- /TMPL_IF --></div>
239     
240     
241 <!-- TMPL_IF NAME="overdues_count" -->
242 <div id="opac-user-overdues"><table id="overduest">
243 <caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
244 <!-- OVERDUES TABLE ROWS -->
245 <tr>
246 <th colspan="2">Title</th><th>Call No.</th>
247 <th>Due</th>
248 <th>Renew</th>
249 <!-- <th>Fine to Date</th> -->
250 </tr>
251
252 <!-- TMPL_LOOP NAME="OVERDUES" -->
253 <tr>
254 <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="ccode" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /></td>
255 <td><!-- TMPL_IF NAME="AmazonContent" --><!-- TMPL_IF NAME="isbn" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg" alt="" class="thumbnail" /></a><!-- /TMPL_IF --><!-- /TMPL_IF --> <a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><span class="item-details">
256 <!-- TMPL_VAR NAME="author" --></span></td>
257 <td><!-- TMPL_VAR NAME="classification" --></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>
308                     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
309                     <!-- TMPL_VAR NAME="author" -->
310                 </td>
311                 <td><!-- TMPL_VAR NAME="reservedate" --></td>
312                 <td><!-- TMPL_VAR NAME="branch" --></td>
313                 <td>
314                     <!-- TMPL_IF NAME="wait" -->
315                         <!-- TMPL_IF NAME="atdestination" -->
316                             <!-- TMPL_IF NAME="found" -->
317                             Item waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
318                             <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
319                             <!-- TMPL_ELSE -->
320                             Item waiting to be pulled from <b> <!-- TMPL_VAR NAME="wbrname" --></b>
321                         <!-- /TMPL_IF -->
322                         <!-- TMPL_ELSE -->
323                             Item in transit to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
324                         <!-- /TMPL_IF -->
325                     <!-- TMPL_ELSE -->
326                             Item waiting to be pulled
327                     <!-- /TMPL_IF -->
328                 </td>
329                 <td>
330                 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
331                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
332                 <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
333                 </td>
334
335             </tr>
336             <!-- /TMPL_LOOP -->
337                         </tbody>
338         </table>
339     </div>
340     <!-- /TMPL_IF -->
341     </div><!-- /opac-user views -->
342     
343 </div>
344 </div>
345 </div>
346 <div class="yui-b">
347 <!--TMPL_INCLUDE NAME="navigation.inc" -->
348 <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
349 </div>
350 </div>
351 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->