A few minor changes: Tweaking amazon image js to try to fix spotty behavior (not...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-user.tmpl
1 <!-- TMPL_INCLUDE name="doc-head-open.inc" -->
2 <!-- TMPL_VAR NAME="LibraryNameTitle" --> 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="textmessaging"-->
27             <h3>Message from the library</h3>
28             <p><!-- TMPL_VAR name="textmessaging" --></p>
29         <!-- /TMPL_IF -->
30         <!-- TMPL_IF NAME="flagged" -->
31         <ul>
32             <!-- TMPL_IF NAME="debarred" -->
33                 <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>
34             <!-- /TMPL_IF -->
35             <!-- TMPL_IF NAME="gonenoaddress" -->
36                 <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>
37             <!-- /TMPL_IF -->
38             <!-- TMPL_IF NAME="lost" -->
39                 <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>
40             <!-- /TMPL_IF -->
41         </ul>
42         <!-- /TMPL_IF -->
43                 
44 <div id="opac-user-views" class="toptabs">
45                 <ul>
46                         <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">Checked Out</a></li>
47                         <!-- TMPL_IF NAME="overdues_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">Overdue</a></li><!-- /TMPL_IF -->
48                         <!-- TMPL_IF NAME="amountoverfive" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
49                         <!-- TMPL_IF NAME="amountoverzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
50                         <!-- TMPL_IF NAME="amountlessthanzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Credits</a></li><!-- /TMPL_IF -->
51                         <!-- 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 -->
52                         <!-- TMPL_IF NAME="reserves_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li><!-- /TMPL_IF -->
53                 </ul>
54                 
55         <!-- FINES BOX -->
56         <!-- TMPL_IF NAME="amountoverfive" -->
57             <div id="opac-user-fines">
58             <table>
59                                 <caption>Fines and Charges</caption>
60                 <tr><th colspan="2">Amount</th></tr>
61                 <tr>
62                     <td>You currently owe fines and charges amounting to:</td>
63                     <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td>
64                 </tr>
65             </table></div>
66         <!-- /TMPL_IF -->
67
68         <!-- TMPL_IF NAME="amountoverzero" -->
69            <div id="opac-user-fines"> <h3>Fines and Charges</h3>
70             <table>
71                 <tr><th colspan="2">Amount</th></tr>
72                 <tr><td>You currently owe fines and charges amounting to:</td>
73                 <td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
74             </table></div>
75         <!-- /TMPL_IF -->
76
77         <!-- TMPL_IF NAME"amountlessthanzero" -->
78           <div id="opac-user-fines">  <h3>Credits</h3>
79             <table>
80             <tr><th colspan="2">Amount</th></tr>
81             <tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
82             </table></div>
83         <!-- /TMPL_IF -->
84         
85     <!-- /TMPL_LOOP -->
86
87     <!-- TMPL_IF NAME="waiting_count" -->
88     <!-- TMPL_IF NAME="atdestination" -->
89     <div id="opac-user-waiting">
90         <table>
91                         <caption>Holds Waiting</caption>
92             <tr>
93                 <th colspan="2">Title</th>
94                 <th>Hold date</th>
95                 <th>Pick Up Branch</th>
96             </tr>
97             <!-- TMPL_LOOP NAME="WAITING" -->
98                 <tr>
99                     <td>
100                         <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
101                     </td>
102                     <td>
103                         <a href="opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
104                             <!-- TMPL_VAR NAME="waiting_title" -->
105                         </a>
106                         <span class="item-details">
107                             <!-- TMPL_VAR NAME="author" -->
108                         </span>
109                     </td>
110                     <td>
111                         <!-- TMPL_VAR NAME="reservedate" -->
112                     </td>
113                     <td>
114                         <!-- TMPL_IF NAME="atdestination" -->
115                         <strong>Waiting</strong> at <!-- TMPL_VAR Name="branch" -->
116                         <!-- TMPL_ELSE -->
117                         In transit from <!-- TMPL_VAR NAME="holdingbranch" --> to <!-- TMPL_VAR Name="branch" -->
118                         <!-- /TMPL_IF -->
119                     </td>
120                 </tr>
121             <!-- /TMPL_LOOP -->
122         </table></div>
123         <!-- /TMPL_IF -->
124     <!-- /TMPL_IF -->
125
126     <div id="opac-user-checkouts"><!-- TMPL_IF NAME="issues_count" -->
127         <table>
128                 <caption>Issues (<!-- TMPL_VAR NAME="issues_count" --> total)</caption>
129         <!-- ISSUES TABLE ROWS --><tr>
130         <th colspan="2">Title</th>
131         <th>Call No.</th>
132         <th>Due</th>
133         <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
134         <th>Fines</th>
135         </tr>
136         <!-- TMPL_LOOP NAME="ISSUES" -->
137             <!-- TMPL_IF NAME="overdue" -->
138                 <tr class="overdue">
139             <!-- TMPL_ELSE -->
140                 <tr>
141             <!-- /TMPL_IF -->
142                 <td>
143                     <!-- TMPL_IF name="imageurl" -->
144                         <img src="<!-- TMPL_VAR name="imageurl" --><!-- TMPL_VAR NAME="itemtype" -->.gif" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" />
145                     <!-- TMPL_ELSE -->
146                         <!-- TMPL_VAR name="description" -->
147                     <!-- /TMPL_IF -->
148                 </td>
149                 <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="Book Cover Image" class="thumbnail" /></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
150                     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
151                     <span class="item-details">
152                         <!-- TMPL_VAR NAME="author" -->
153                     </span>
154                 </td>
155                 <td><!-- TMPL_VAR NAME="classification" --></td>
156                 <!-- TMPL_IF NAME="overdue" -->
157                     <td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
158                 <!-- TMPL_ELSE -->
159                     <td><!-- TMPL_VAR NAME="date_due" --></td>
160                 <!-- /TMPL_IF -->
161                 <!-- TMPL_UNLESS name="patron_flagged" -->
162                 <td>
163                     <!-- TMPL_IF NAME="status" -->
164                         <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>
165                     <!-- TMPL_ELSE -->
166                         Not renewable
167                     <!-- /TMPL_IF -->
168                 </td>
169                 <!-- /TMPL_UNLESS -->
170                 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
171             </tr>
172         <!-- /TMPL_LOOP -->
173         </table>
174                 <form action="/cgi-bin/koha/opac-renew.pl" method="post">
175                         <input type="hidden" name="from" value="opac_user" />
176                         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
177                         <!-- TMPL_LOOP NAME="ISSUES" -->
178                         <input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
179                         <!-- /TMPL_LOOP -->
180                         <input type="submit" value="Renew All" />
181                 </form>
182     <!-- TMPL_ELSE -->
183         <table>
184             <caption>Issues</caption>
185             <tr><td>You have nothing checked out</td></tr>
186         </table>
187     <!-- /TMPL_IF --></div>
188         
189         
190 <!-- TMPL_IF NAME="overdues_count" -->
191 <div id="opac-user-overdues"><table>
192 <caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
193 <!-- OVERDUES TABLE ROWS -->
194 <tr>
195 <th colspan="2">Title</th><th>Call No.</th>
196 <th>Due</th>
197 <th>Renew</th>
198 <!-- <th>Fine to Date</th> -->
199 </tr>
200
201 <!-- TMPL_LOOP NAME="OVERDUES" -->
202 <tr>
203 <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="ccode" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /></td>
204 <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="Book Cover Image" 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">
205 <!-- TMPL_VAR NAME="author" --></span></td>
206 <td><!-- TMPL_VAR NAME="classification" --></td>
207 <td><!-- TMPL_VAR NAME="date_due" --></td>
208 <td>
209 <!-- TMPL_IF NAME="debarred" -->Account Frozen
210 <!-- TMPL_ELSE -->
211 <!-- TMPL_IF NAME="status" -->
212 <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>
213 <!-- TMPL_ELSE -->
214 <!-- TMPL_IF NAME="onreserve" -->
215 On Reserve
216 <!-- TMPL_ELSE -->
217 No renewals left
218 <!-- /TMPL_IF -->
219 <!-- /TMPL_IF -->
220 <!-- /TMPL_IF -->
221 </td>
222 <!-- <td><!-- TMPL_VAR NAME="charges" --></td> -->
223 </tr>
224 <!-- /TMPL_LOOP -->
225 </table></div>
226 <!-- /TMPL_IF --><!-- /TMPL_IF -->
227         
228
229     <!-- TMPL_IF NAME="reserves_count" -->
230         <div id="opac-user-holds">
231         <table>
232                 <caption>Holds <span class="count">(<!-- TMPL_VAR NAME="reserves_count" --> total)</span></caption>
233             <!-- RESERVES TABLE ROWS -->
234             <tr>
235                 <th>Title</th>
236                 <th>Placed On</th>
237                 <th>Pick Up Location</th>
238                 <th>Status</th>
239             </tr>
240             <!-- TMPL_LOOP NAME="RESERVES" -->
241             <tr>
242                 <td>
243                     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
244                     <!-- TMPL_VAR NAME="author" -->
245                 </td>
246                 <td><!-- TMPL_VAR NAME="reservedate" --></td>
247                 <td><!-- TMPL_VAR Name="branch" --></td>
248                 <td>
249                     <!-- TMPL_IF Name="wait" -->
250                         <!-- TMPL_IF NAME="atdestination" -->
251                             <!-- TMPL_IF name="found" -->
252                             Document waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
253                             <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
254                         <!-- TMPL_ELSE -->
255                             Waiting to be pulled
256                         <!-- /TMPL_IF -->
257                         <!-- TMPL_ELSE -->
258                         Document being transfered to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
259                         <!-- /TMPL_IF -->
260                     <!-- TMPL_ELSE -->
261                         Not ready
262                     <!-- /TMPL_IF -->
263                 </td>
264             </tr>
265             <!-- /TMPL_LOOP -->
266         </table>
267         <p>If you no longer want a reserve, please send us an e-mail, or go to the circulation desk at your library to get it removed.</p></div>
268     <!-- /TMPL_IF -->
269         </div><!-- /opac-user views -->
270         
271 </div>
272 </div>
273 </div>
274 <div class="yui-b">
275 <!--TMPL_INCLUDE NAME="navigation.inc" -->
276 <!-- TMPL_INCLUDE name="usermenu.inc" -->
277 </div>
278 </div>
279 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->