adding branchcode for subscriptions details
[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         <th colspan="2">Title</th>
133         <th>Call No.</th>
134         <th>Due</th>
135         <!-- TMPL_IF name="OpacRenewalAllowed" -->
136         <!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
137         <!-- /TMPL_IF -->
138         <th>Fines</th>
139         </tr>
140         <!-- TMPL_LOOP NAME="ISSUES" -->
141         <!-- TMPL_IF NAME="toggle" -->
142             
143             <!-- TMPL_IF NAME="overdue" -->
144                 <tr class="overdue">
145             <!-- TMPL_ELSE -->
146                 <tr>
147             <!-- /TMPL_IF -->
148             
149             <!-- TMPL_ELSE -->
150             
151         <!-- TMPL_IF NAME="overdue" -->
152                 <tr class="highlight overdue">
153             <!-- TMPL_ELSE -->
154                 <tr class="highlight">
155             <!-- /TMPL_IF -->
156             
157             <!-- /TMPL_IF -->
158                 <td>
159                     <!-- TMPL_IF NAME="imageurl" -->
160                         <img src="/opac-tmpl/prog/itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" />
161                     <!-- TMPL_ELSE -->
162                         <!-- TMPL_VAR name="description" -->
163                     <!-- /TMPL_IF -->
164                 </td>
165                 <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 -->
166                     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
167                     <span class="item-details">
168                         <!-- TMPL_VAR NAME="author" -->
169                     </span>
170                 </td>
171                 <td><!-- TMPL_VAR NAME="classification" --></td>
172                 <!-- TMPL_IF NAME="overdue" -->
173                     <td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
174                 <!-- TMPL_ELSE -->
175                     <td><!-- TMPL_VAR NAME="date_due" --></td>
176                 <!-- /TMPL_IF -->
177                 <!-- TMPL_IF name="OpacRenewalAllowed" -->
178                     <!-- TMPL_UNLESS name="patron_flagged" -->
179                     <td>
180                         <!-- TMPL_IF NAME="status" -->
181                             <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>
182                         <!-- TMPL_ELSE -->
183                             Not renewable
184                         <!-- /TMPL_IF -->
185                     </td>
186                     <!-- /TMPL_UNLESS -->
187                 <!-- /TMPL_IF -->
188                 <td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
189             </tr>
190         <!-- /TMPL_LOOP -->
191         </table>
192         <!--TMPL_IF Name="OpacRenewalAllowed"-->
193             <form action="/cgi-bin/koha/opac-renew.pl" method="post">
194                 <input type="hidden" name="from" value="opac_user" />
195                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
196                 <!-- TMPL_LOOP NAME="ISSUES" -->
197                 <input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
198                 <!-- /TMPL_LOOP -->
199                 <input type="submit" value="Renew All" />
200             </form>
201         <!--/TMPL_IF-->
202     <!-- TMPL_ELSE -->
203         <table>
204             <tr><td>You have nothing checked out</td></tr>
205         </table>
206     <!-- /TMPL_IF --></div>
207     
208     
209 <!-- TMPL_IF NAME="overdues_count" -->
210 <div id="opac-user-overdues"><table>
211 <caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
212 <!-- OVERDUES TABLE ROWS -->
213 <tr>
214 <th colspan="2">Title</th><th>Call No.</th>
215 <th>Due</th>
216 <th>Renew</th>
217 <!-- <th>Fine to Date</th> -->
218 </tr>
219
220 <!-- TMPL_LOOP NAME="OVERDUES" -->
221 <tr>
222 <td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="ccode" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /></td>
223 <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">
224 <!-- TMPL_VAR NAME="author" --></span></td>
225 <td><!-- TMPL_VAR NAME="classification" --></td>
226 <td><!-- TMPL_VAR NAME="date_due" --></td>
227 <td>
228 <!-- TMPL_IF NAME="debarred" -->Account Frozen
229 <!-- TMPL_ELSE -->
230 <!-- TMPL_IF NAME="status" -->
231 <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>
232 <!-- TMPL_ELSE -->
233 <!-- TMPL_IF NAME="onreserve" -->
234 On Reserve
235 <!-- TMPL_ELSE -->
236 No renewals left
237 <!-- /TMPL_IF -->
238 <!-- /TMPL_IF -->
239 <!-- /TMPL_IF -->
240 </td>
241 <!-- <td><!-- TMPL_VAR NAME="charges" --></td> -->
242 </tr>
243 <!-- /TMPL_LOOP -->
244 </table></div>
245 <!-- /TMPL_IF --><!-- /TMPL_IF -->
246     
247
248     <!-- TMPL_IF NAME="reserves_count" -->
249         <div id="opac-user-holds">
250         <table>
251         <caption>Holds <span class="count">(<!-- TMPL_VAR NAME="reserves_count" --> total)</span></caption>
252             <!-- RESERVES TABLE ROWS -->
253             <tr>
254                 <th>Title</th>
255                 <th>Placed On</th>
256                 <th>Pick Up Location</th>
257                 <th>Status</th>
258                 <th>Modify</th>
259             </tr>
260             <!-- TMPL_LOOP NAME="RESERVES" -->
261             <tr>
262                 <td>
263                     <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
264                     <!-- TMPL_VAR NAME="author" -->
265                 </td>
266                 <td><!-- TMPL_VAR NAME="reservedate" --></td>
267                 <td><!-- TMPL_VAR NAME="branch" --></td>
268                 <td>
269                     <!-- TMPL_IF NAME="wait" -->
270                         <!-- TMPL_IF NAME="atdestination" -->
271                             <!-- TMPL_IF NAME="found" -->
272                             Item waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
273                             <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
274                             <!-- TMPL_ELSE -->
275                             Item waiting to be pulled from <b> <!-- TMPL_VAR NAME="wbrname" --></b>
276                         <!-- /TMPL_IF -->
277                         <!-- TMPL_ELSE -->
278                             Item in transit to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
279                         <!-- /TMPL_IF -->
280                     <!-- TMPL_ELSE -->
281                             Item waiting to be pulled
282                     <!-- /TMPL_IF -->
283                 </td>
284                 <td>
285                 <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
286                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
287                 <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
288                 </td>
289
290             </tr>
291             <!-- /TMPL_LOOP -->
292         </table>
293     </div>
294     <!-- /TMPL_IF -->
295     </div><!-- /opac-user views -->
296     
297 </div>
298 </div>
299 </div>
300 <div class="yui-b">
301 <!--TMPL_INCLUDE NAME="navigation.inc" -->
302 <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
303 </div>
304 </div>
305 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->