Fixing some call number and item type display issues. Still need item type images...
[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" language="JavaScript">
8 //<![CDATA[
9      $(document).ready(function() {
10         $('#opac-user-views').tabs();
11      });
12 //]]>
13 </script>
14 </head>
15 <body>
16 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
17
18 <div id="doc3" class="yui-t1">
19    <div id="bd">
20     <div id="yui-main">
21     <div class="yui-b"><div class="yui-g">
22
23     <!-- TMPL_LOOP NAME="BORROWER_INFO" -->
24         <h2>Hello, <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> <span class="hint">(<a href="/cgi-bin/koha/opac-logout.pl">Click here</a> if you're not <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" -->)</span></h2>
25         
26                 <!-- 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 -->
27                 
28         <!-- TMPL_IF NAME="opacnote"-->
29             <h3>Message from the library</h3>
30             <p><!-- TMPL_VAR name="opacnote" --></p>
31         <!-- /TMPL_IF -->
32         <!-- TMPL_IF NAME="flagged" -->
33         <ul>
34             <!-- TMPL_IF NAME="debarred" -->
35                 <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>
36             <!-- /TMPL_IF -->
37             <!-- TMPL_IF NAME="gonenoaddress" -->
38                 <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>
39             <!-- /TMPL_IF -->
40             <!-- TMPL_IF NAME="lost" -->
41                 <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>
42             <!-- /TMPL_IF -->
43         </ul>
44         <!-- /TMPL_IF -->
45         
46 <div id="opac-user-views" class="toptabs">
47         <ul>
48             <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">Checked Out</a></li>
49             <!-- TMPL_IF NAME="overdues_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">Overdue</a></li><!-- /TMPL_IF -->
50             <!-- TMPL_IF NAME="amountoverfive" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
51             <!-- TMPL_IF NAME="amountoverzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
52             <!-- TMPL_IF NAME="amountlessthanzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Credits</a></li><!-- /TMPL_IF -->
53             <!-- 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 -->
54             <!-- TMPL_IF NAME="reserves_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li><!-- /TMPL_IF -->
55         </ul>
56         
57         <!-- FINES BOX -->
58         <!-- TMPL_IF NAME="amountoverfive" -->
59             <div id="opac-user-fines">
60             <table>
61                 <caption>Fines and Charges</caption>
62                 <tr><th colspan="2">Amount</th></tr>
63                 <tr>
64                     <td>You currently owe fines and charges amounting to:</td>
65                     <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td>
66                 </tr>
67             </table></div>
68         <!-- /TMPL_IF -->
69
70         <!-- TMPL_IF NAME="amountoverzero" -->
71            <div id="opac-user-fines"> <h3>Fines and Charges</h3>
72             <table>
73                 <tr><th colspan="2">Amount</th></tr>
74                 <tr><td>You currently owe fines and charges amounting to:</td>
75                 <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
76             </table></div>
77         <!-- /TMPL_IF -->
78
79         <!-- TMPL_IF NAME"amountlessthanzero" -->
80           <div id="opac-user-fines">  <h3>Credits</h3>
81             <table>
82             <tr><th colspan="2">Amount</th></tr>
83             <tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
84             </table></div>
85         <!-- /TMPL_IF -->
86     
87     <!-- /TMPL_LOOP -->
88
89     <!-- TMPL_IF NAME="waiting_count" -->
90     <!-- TMPL_IF NAME="atdestination" -->
91     <div id="opac-user-waiting">
92         <table>
93             <caption>Holds Waiting</caption>
94             <tr>
95                 <th colspan="2">Title</th>
96                 <th>Hold date</th>
97                 <th>Pick Up Branch</th>
98             </tr>
99             <!-- TMPL_LOOP NAME="WAITING" -->
100                 <tr>
101                     <td>
102                         <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
103                     </td>
104                     <td>
105                         <a href="opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
106                             <!-- TMPL_VAR NAME="waiting_title" -->
107                         </a>
108                         <span class="item-details">
109                             <!-- TMPL_VAR NAME="author" -->
110                         </span>
111                     </td>
112                     <td>
113                         <!-- TMPL_VAR NAME="reservedate" -->
114                     </td>
115                     <td>
116                         <!-- TMPL_IF NAME="atdestination" -->
117                         <strong>Waiting</strong> at <!-- TMPL_VAR NAME="branch" -->
118                         <!-- TMPL_ELSE -->
119                         In transit from <!-- TMPL_VAR NAME="holdingbranch" --> to <!-- TMPL_VAR NAME="branch" -->
120                         <!-- /TMPL_IF -->
121                     </td>
122                 </tr>
123             <!-- /TMPL_LOOP -->
124         </table></div>
125         <!-- /TMPL_IF -->
126     <!-- /TMPL_IF -->
127
128     <div id="opac-user-checkouts"><!-- TMPL_IF NAME="issues_count" -->
129         <table>
130         <caption><!-- TMPL_VAR NAME="issues_count" --> Items</caption>
131         <!-- ISSUES TABLE ROWS --><tr>
132                 <!-- TMPL_IF NAME="AmazonContent" --><th>&nbsp;</th><!-- /TMPL_IF -->
133         <th>Title</th>
134                 <th>Item Type</th>
135         <th>Call No.</th>
136         <th>Due</th>
137         <!-- TMPL_IF name="OpacRenewalAllowed" -->
138         <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
139         <!-- /TMPL_IF -->
140         <th>Fines</th>
141         </tr>
142         <!-- TMPL_LOOP NAME="ISSUES" -->
143         <!-- TMPL_IF NAME="toggle" -->
144             
145             <!-- TMPL_IF NAME="overdue" -->
146                 <tr class="overdue">
147             <!-- TMPL_ELSE -->
148                 <tr>
149             <!-- /TMPL_IF -->
150             
151             <!-- TMPL_ELSE -->
152             
153         <!-- TMPL_IF NAME="overdue" -->
154                 <tr class="highlight overdue">
155             <!-- TMPL_ELSE -->
156                 <tr class="highlight">
157             <!-- /TMPL_IF -->
158             
159             <!-- /TMPL_IF -->
160                         <!-- 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 -->
161                 <td>
162                     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
163                     <span class="item-details">
164                         <!-- TMPL_VAR NAME="author" -->
165                     </span>
166                 </td>
167                 <td>
168                     <!-- 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" -->
169                 </td>
170                 <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
171                 <!-- TMPL_IF NAME="overdue" -->
172                     <td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
173                 <!-- TMPL_ELSE -->
174                     <td><!-- TMPL_VAR NAME="date_due" --></td>
175                 <!-- /TMPL_IF -->
176                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
177                     <!-- TMPL_UNLESS name="patron_flagged" -->
178                     <td>
179                         <!-- TMPL_IF NAME="status" -->
180                             <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>
181                         <!-- TMPL_ELSE -->
182                             Not renewable
183                         <!-- /TMPL_IF -->
184                     </td>
185                     <!-- /TMPL_UNLESS -->
186                 <!-- /TMPL_IF -->
187                 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
188             </tr>
189         <!-- /TMPL_LOOP -->
190         </table>
191         <!--TMPL_IF Name="OpacRenewalAllowed"-->
192             <form action="/cgi-bin/koha/opac-renew.pl" method="post">
193                 <input type="hidden" name="from" value="opac_user" />
194                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
195                 <!-- TMPL_LOOP NAME="ISSUES" -->
196                 <input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
197                 <!-- /TMPL_LOOP -->
198                 <input type="submit" value="Renew All" />
199             </form>
200         <!--/TMPL_IF-->
201     <!-- TMPL_ELSE -->
202         <table>
203             <tr><td>You have nothing checked out</td></tr>
204         </table>
205     <!-- /TMPL_IF --></div>
206     
207     
208 <!-- TMPL_IF NAME="overdues_count" -->
209 <div id="opac-user-overdues"><table>
210 <caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
211 <!-- OVERDUES TABLE ROWS -->
212 <tr>
213 <th colspan="2">Title</th><th>Call No.</th>
214 <th>Due</th>
215 <th>Renew</th>
216 <!-- <th>Fine to Date</th> -->
217 </tr>
218
219 <!-- TMPL_LOOP NAME="OVERDUES" -->
220 <tr>
221 <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="ccode" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /></td>
222 <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">
223 <!-- TMPL_VAR NAME="author" --></span></td>
224 <td><!-- TMPL_VAR NAME="classification" --></td>
225 <td><!-- TMPL_VAR NAME="date_due" --></td>
226 <td>
227 <!-- TMPL_IF NAME="debarred" -->Account Frozen
228 <!-- TMPL_ELSE -->
229 <!-- TMPL_IF NAME="status" -->
230 <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>
231 <!-- TMPL_ELSE -->
232 <!-- TMPL_IF NAME="onreserve" -->
233 On Reserve
234 <!-- TMPL_ELSE -->
235 No renewals left
236 <!-- /TMPL_IF -->
237 <!-- /TMPL_IF -->
238 <!-- /TMPL_IF -->
239 </td>
240 <!-- <td><!-- TMPL_VAR NAME="charges" --></td> -->
241 </tr>
242 <!-- /TMPL_LOOP -->
243 </table></div>
244 <!-- /TMPL_IF -->
245     
246
247     <!-- TMPL_IF NAME="reserves_count" -->
248         <div id="opac-user-holds">
249         <table>
250         <caption>Holds <span class="count">(<!-- TMPL_VAR NAME="reserves_count" --> total)</span></caption>
251             <!-- RESERVES TABLE ROWS -->
252             <tr>
253                 <th>Title</th>
254                 <th>Placed On</th>
255                 <th>Pick Up Location</th>
256                 <th>Status</th>
257                 <th>Modify</th>
258             </tr>
259             <!-- TMPL_LOOP NAME="RESERVES" -->
260             <tr>
261                 <td>
262                     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
263                     <!-- TMPL_VAR NAME="author" -->
264                 </td>
265                 <td><!-- TMPL_VAR NAME="reservedate" --></td>
266                 <td><!-- TMPL_VAR NAME="branch" --></td>
267                 <td>
268                     <!-- TMPL_IF NAME="wait" -->
269                         <!-- TMPL_IF NAME="atdestination" -->
270                             <!-- TMPL_IF NAME="found" -->
271                             Item waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
272                             <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
273                             <!-- TMPL_ELSE -->
274                             Item waiting to be pulled from <b> <!-- TMPL_VAR NAME="wbrname" --></b>
275                         <!-- /TMPL_IF -->
276                         <!-- TMPL_ELSE -->
277                             Item in transit to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
278                         <!-- /TMPL_IF -->
279                     <!-- TMPL_ELSE -->
280                             Item waiting to be pulled
281                     <!-- /TMPL_IF -->
282                 </td>
283                 <td>
284                 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
285                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
286                 <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
287                 </td>
288
289             </tr>
290             <!-- /TMPL_LOOP -->
291         </table>
292     </div>
293     <!-- /TMPL_IF -->
294     </div><!-- /opac-user views -->
295     
296 </div>
297 </div>
298 </div>
299 <div class="yui-b">
300 <!--TMPL_INCLUDE NAME="navigation.inc" -->
301 <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
302 </div>
303 </div>
304 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->