OPAC update
[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>
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     <!-- TMPL_ELSE -->
175         <table>
176             <caption>Issues</caption>
177             <tr><td>You have nothing checked out</td></tr>
178         </table>
179     <!-- /TMPL_IF --></div>
180         
181         
182 <!-- TMPL_IF NAME="overdues_count" -->
183 <div id="opac-user-overdues"><table>
184 <caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
185 <!-- OVERDUES TABLE ROWS -->
186 <tr>
187 <th colspan="2">Title</th><th>Call No.</th>
188 <th>Due</th>
189 <th>Renew</th>
190 <!-- <th>Fine to Date</th> -->
191 </tr>
192
193 <!-- TMPL_LOOP NAME="OVERDUES" -->
194 <tr>
195 <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="ccode" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /></td>
196 <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">
197 <!-- TMPL_VAR NAME="author" --></span></td>
198 <td><!-- TMPL_VAR NAME="classification" --></td>
199 <td><!-- TMPL_VAR NAME="date_due" --></td>
200 <td>
201 <!-- TMPL_IF NAME="debarred" -->Account Frozen
202 <!-- TMPL_ELSE -->
203 <!-- TMPL_IF NAME="status" -->
204 <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>
205 <!-- TMPL_ELSE -->
206 <!-- TMPL_IF NAME="onreserve" -->
207 On Reserve
208 <!-- TMPL_ELSE -->
209 No renewals left
210 <!-- /TMPL_IF -->
211 <!-- /TMPL_IF -->
212 <!-- /TMPL_IF -->
213 </td>
214 <!-- <td><!-- TMPL_VAR NAME="charges" --></td> -->
215 </tr>
216 <!-- /TMPL_LOOP -->
217 </table></div>
218 <!-- /TMPL_IF --><!-- /TMPL_IF -->
219         
220
221     <!-- TMPL_IF NAME="reserves_count" -->
222         <div id="opac-user-holds">
223         <table>
224                 <caption>Holds <span class="count">(<!-- TMPL_VAR NAME="reserves_count" --> total)</span></caption>
225             <!-- RESERVES TABLE ROWS -->
226             <tr>
227                 <th>Title</th>
228                 <th>Placed On</th>
229                 <th>Pick Up Location</th>
230                 <th>Status</th>
231             </tr>
232             <!-- TMPL_LOOP NAME="RESERVES" -->
233             <tr>
234                 <td>
235                     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
236                     <!-- TMPL_VAR NAME="author" -->
237                 </td>
238                 <td><!-- TMPL_VAR NAME="reservedate" --></td>
239                 <td><!-- TMPL_VAR Name="branch" --></td>
240                 <td>
241                     <!-- TMPL_IF Name="wait" -->
242                         <!-- TMPL_IF NAME="atdestination" -->
243                             <!-- TMPL_IF name="found" -->
244                             Document waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
245                             <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
246                         <!-- TMPL_ELSE -->
247                             Waiting to be pulled
248                         <!-- /TMPL_IF -->
249                         <!-- TMPL_ELSE -->
250                         Document being transfered to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
251                         <!-- /TMPL_IF -->
252                     <!-- TMPL_ELSE -->
253                         Not ready
254                     <!-- /TMPL_IF -->
255                 </td>
256             </tr>
257             <!-- /TMPL_LOOP -->
258         </table>
259         <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>
260     <!-- /TMPL_IF -->
261         </div><!-- /opac-user views -->
262         
263 </div>
264 </div>
265 </div>
266 <div class="yui-b">
267 <!--TMPL_INCLUDE NAME="navigation.inc" -->
268 <!-- TMPL_INCLUDE name="usermenu.inc" -->
269 </div>
270 </div>
271 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->