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