e39ac7b99075a8efb92181b19f07eb7c60cba829
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / circulation.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation
3 <!-- TMPL_IF NAME="borrowernumber" -->
4 &rsaquo; Checking out to <!-- TMPL_VAR name="surname" -->, <!-- TMPL_VAR name="firstname" -->
5 (<!-- TMPL_VAR NAME="cardnumber" -->)
6 <!-- /TMPL_IF --></title>
7
8 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
9 <!-- TMPL_INCLUDE NAME="menus.inc" -->
10 <!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
11 <!-- TMPL_IF NAME="borrowernumber" -->
12     <h1>Checkouts</h1>
13 <!-- TMPL_ELSE -->
14     <h1>Circulation &rsaquo; Checkouts</h1>
15 <!-- /TMPL_IF -->
16
17 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
18 <!-- Branch: <a href="/cgi-bin/koha/circ/selectbranchprinter.pl" title="change"><!-- TMPL_VAR NAME="branchname"--></a>
19 <!-- TMPL_IF name="printername" --> | Printer: <!-- TMPL_VAR NAME="printername" --><!-- /TMPL_IF -->-->
20
21 <!-- TMPL_IF NAME="borrowernumber" -->
22
23 <div id="BorrowerDetails">
24         <fieldset>
25             <legend><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" -->
26             </legend>
27             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">details</a>
28                 / <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->&amp;modify=edit&amp;destination=circ&categorycode=<!-- TMPL_VAR name="categorycode" -->">edit</a>
29         <p>
30         <!--TMPL_IF Name="warndeparture"--><p class="problem"> Patron card expires on <!-- TMPL_VAR name="warndeparture" -->.</p><!--/TMPL_IF-->
31         <!-- TMPL_IF NAME="streetaddress"-->
32             <!-- TMPL_VAR NAME="streetaddress" -->,
33         <!-- TMPL_ELSE -->
34             <span class="problem">No address stored for patron.</span>
35         <!-- /TMPL_IF -->
36         <!-- TMPL_IF NAME="city" -->
37             <!-- TMPL_VAR NAME="city" -->
38         <!-- TMPL_ELSE -->
39             No city stored.
40         <!-- /TMPL_IF -->
41     <!--TMPL_IF NAME="phone" -->
42         <!-- TMPL_VAR NAME="phone" -->
43     <!-- TMPL_ELSE -->
44         <span class="problem">No phone stored.</span>    
45     <!-- /TMPL_IF -->
46     </p>
47     <!-- TMPL_IF NAME="emailaddress" -->
48     <a href="mailto:<!-- TMPL_VAR NAME="emailaddress" -->"><!-- TMPL_VAR NAME="emailaddress" --></a>
49     <!-- /TMPL_IF -->
50     <p>Category: <!-- TMPL_VAR name="categorycode" --></p>
51     </fieldset>
52     <!-- TMPL_IF NAME="overduecount" -->
53         <span class="problem"><b><big>This borrower has <!-- TMPL_VAR name="overduecount" --> overdue(s) items</big></b></span>
54     <!--/TMPL_IF-->
55     <!-- TMPL_IF NAME="flagged" -->
56         <fieldset>
57             <legend class="problem">Warning</legend>
58             <!-- TMPL_IF NAME="gna" -->
59                 <p>Address: Patron's address in doubt</p>
60             <!-- /TMPL_IF -->
61         
62             <!-- TMPL_IF NAME="lost" -->
63                 <p>Lost: Patron's card is lost</p>
64             <!-- /TMPL_IF -->
65         
66             <!-- TMPL_IF NAME="dbarred" -->
67                 <p>
68                 Restricted: Patron's account is restricted <a href="/cgi-bin/koha/members/setdebar.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&amp;destination=circ&amp;status=0">Lift restriction</a>
69                 </p>
70             <!-- /TMPL_IF -->
71         
72             <!-- TMPL_IF name="odues" -->
73             <p>
74                 <!-- TMPL_IF name="nonreturns" -->
75             Overdues: See highlighted items <a href="JavaScript:active(1)">below</a>
76                 <!-- /TMPL_IF -->
77             </p>
78             <!-- /TMPL_IF --> <!-- odues -->
79         
80             <!-- TMPL_IF NAME="charges" -->
81             <p>
82             Fines: Patron has 
83             <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Outstanding fines</a>.
84             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a>
85             </p>
86             <!-- /TMPL_IF -->
87             <!-- this part must be removed if we keep the new waiting infos display-->
88             <!-- TMPL_IF NAME="waiting" -->
89             <p>
90             Reserves waiting:
91                 <!-- TMPL_LOOP name="itemswaiting" -->
92                 <li>
93                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR name="title" --></a>
94                 (<!-- TMPL_VAR name="barcode" --> -- <!-- TMPL_VAR name="branchname" -->)
95                 </li>
96                 <!-- /TMPL_LOOP --> <!-- itemswaiting -->
97             </p>
98             <!-- /TMPL_IF --> <!-- waiting -->
99             <!-- end of this part must be removed if we keep the new waiting infos display-->
100         
101             <!-- TMPL_IF name="notes" -->
102             <p>Notes: <!-- TMPL_VAR name="notesmsg" --></p>
103             <!-- /TMPL_IF --> <!-- notes -->
104         </fieldset>
105     <!-- /TMPL_IF --> <!-- flagged -->
106
107 </div> <!-- id=BorrowerDetails -->
108 <!-- TMPL_ELSE --> <!-- borrowernumber -->
109
110 <!-- TMPL_UNLESS NAME="CGIselectborrower"-->
111 <!-- No card entered yet -->
112 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform" id="mainform">
113 <fieldset id="circ_circulation_borrower_search">
114     <legend>Search for a patron</legend>
115
116     <p>
117     <label for="findborrower">Enter patron card number or partial name: </label>
118     <input id="findborrower" name="findborrower" type="text" size="40" />
119     </p>
120
121     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
122     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
123     <input type="submit" value="Submit" />
124 </fieldset>
125 </form>
126 <!-- /TMPL_UNLESS -->
127 <!-- /TMPL_IF --> <!-- borrowernumber -->
128
129 <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
130 <fieldset id="circ_circulation_needsconfirmation">
131 <legend>Please Confirm Checkout</legend>
132
133 <ul>
134 <!-- TMPL_IF NAME="DEBT" -->
135     <li>The patron has a debt of $<!-- TMPL_VAR name="DEBT" --></li>
136 <!-- /TMPL_IF -->
137
138 <!-- TMPL_IF NAME="RENEW_ISSUE" -->
139     <li>Item is currently issued to this patron.  Renew?</li>
140 <!-- /TMPL_IF -->
141
142 <!-- TMPL_IF NAME="RESERVE_WAITING" -->
143     <li>Item is consigned for <!-- TMPL_VAR NAME="RESERVE_WAITING" --></li>
144 <!-- /TMPL_IF -->
145
146 <!-- TMPL_IF NAME="RESERVED" -->
147     <li>Item is on reserve for <!-- TMPL_VAR NAME="RESERVED" --></li>
148 <!-- /TMPL_IF -->
149
150 <!-- TMPL_IF NAME="ISSUED_TO_ANOTHER" -->
151     <li>Item ( <!-- TMPL_VAR NAME="getTitleMessageIteminfo" --> ) issued to <!-- TMPL_VAR NAME="ISSUED_TO_ANOTHER" -->. Return and issue?</li>
152 <!-- /TMPL_IF -->
153
154 <!-- TMPL_IF NAME="TOO_MANY" -->
155     <li>Too many checked out (already checked out / max : <!-- TMPL_VAR name="TOO_MANY" -->)</li>
156 <!-- /TMPL_IF -->
157 </ul>
158
159 <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
160     
161 <!-- TMPL_IF NAME="RESERVED" -->
162     <p>
163     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
164     <label for="cancelreserve">Cancel Reserve</label>
165     </p>
166 <!-- /TMPL_IF -->
167
168 <!-- TMPL_IF NAME="RESERVE_WAITING" -->
169     <p>
170     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
171     <label for="cancelreserve">Cancel Reserve</label>
172     </p>
173 <!-- /TMPL_IF -->
174
175     <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" />
176     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
177     <input type="hidden" name="issueconfirmed" value="1" />
178     <input type="hidden" name="day" value="<!-- TMPL_VAR name="day" -->" />
179     <input type="hidden" name="month" value="<!-- TMPL_VAR name="month" -->" />
180     <input type="hidden" name="year" value="<!-- TMPL_VAR name="year" -->" />
181     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
182
183     <div id="action">
184     <input type="submit" value="Confirm Checkout" accesskey="y" />
185     </div>
186
187 </form>
188
189 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
190     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
191
192     <div id="action">
193     <input type="submit" value="Don't Checkout" accesskey="n" />
194     </div>
195 </form>
196
197 </fieldset>
198
199 <!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
200
201 <!-- TMPL_IF NAME="issued" -->
202 <p>Item Checked out</p>
203 <!-- /TMPL_IF -->
204
205 <!-- TMPL_IF NAME="message" -->
206 <p>
207 No patron matched <!-- TMPL_VAR name="message" -->
208 <a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=A" />Add adult</a>
209 <a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=C" />Add child</a>  
210 </p>
211 <!-- /TMPL_IF -->
212
213
214 <!-- TMPL_IF NAME="CGIselectborrower" -->
215 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
216 <fieldset id="circ_circulation_selectborrower">
217     <legend>Patron selection</legend>
218
219     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
220     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
221
222     <p>
223     <label for="borrowernumber">Select a patron: </label>
224     <!-- TMPL_VAR name="CGIselectborrower" -->
225     </p>
226
227     <p><input type="submit" value="Select" /></p>
228
229     <p>
230     Patron not found?
231     <a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=A" />Add adult</a>
232     <a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=C" />Add child</a>
233     or <a href="JavaScript:back();">try another search</a>
234     </p>
235 </fieldset>
236 </form>
237 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
238
239 <!-- BARCODE ENTRY -->
240
241 <!-- TMPL_IF NAME="borrowernumber" -->
242 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
243 <fieldset id="circ_circulation_issue">
244     <legend>Checkout an item</legend>
245
246     <p>
247     <label for="barcode">Enter item barcode: </label><input type="text" name="barcode" size="14" />
248     
249         <!-- RESULT OF ISSUING REQUEST -->
250         <!-- TMPL_IF NAME="IMPOSSIBLE" -->
251         <ul>
252         <!-- TMPL_IF NAME="INVALID_DATE" -->
253             <li><span class="problem">The due date is invalid</span></li>
254         <!-- /TMPL_IF -->  
255         <!-- TMPL_IF NAME="UNKNOWN_BARCODE" -->
256             <li><span class="problem">The barcode was not found</span></li>
257         <!-- /TMPL_IF -->
258
259         <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
260             <li><span class="problem">Item not for loan</span></li>
261         <!-- /TMPL_IF -->
262
263         <!-- TMPL_IF NAME="WTHDRAWN" -->
264             <li><span class="problem">Item is cancelled</span></li>
265         <!-- /TMPL_IF -->
266
267         <!-- TMPL_IF NAME="GNA" -->
268             <li><span class="problem">Patron's address is in doubt</span></li>
269         <!-- /TMPL_IF -->
270
271         <!-- TMPL_IF NAME="CARD_LOST" -->
272             <li><span class="problem">Patron's card is lost</span></li>
273         <!-- /TMPL_IF -->
274
275         <!-- TMPL_IF NAME="DEBARRED" -->
276             <li><span class="problem">Patron is restricted</span></li>
277         <!-- /TMPL_IF -->
278
279         <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
280             <li><span class="problem">No more renewals possible</span></li>
281         <!-- /TMPL_IF -->
282
283         <!-- TMPL_IF NAME="EXPIRED" -->
284             <li><span class="problem">Patron's card is expired</span></li>
285         <!-- /TMPL_IF -->
286         </ul>
287 </p>
288     <!-- TMPL_IF NAME="memberofinstution" -->
289     <p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
290     <!-- /TMPL_IF -->
291
292     <!--/TMPL_IF --> <!-- impossible -->
293     <p><label for="day">Specify due date: </label>
294         <select name="day" id="day">
295             <option value="0">Day</option>
296             <!-- TMPL_IF NAME="day1" -->
297                 <option value="1" selected="selected">1</option>
298             <!-- TMPL_ELSE -->
299                 <option value="1">1</option>
300             <!-- /TMPL_IF -->
301             
302             <!-- TMPL_IF NAME="day2" -->
303                 <option value="2" selected="selected">2</option>
304             <!-- TMPL_ELSE -->
305                 <option value="2">2</option>
306             <!-- /TMPL_IF -->
307             
308             <!-- TMPL_IF NAME="day3" -->
309                 <option value="3" selected="selected">3</option>
310             <!-- TMPL_ELSE -->
311                 <option value="3">3</option>
312             <!-- /TMPL_IF -->
313             
314             <!-- TMPL_IF NAME="day4" -->
315                 <option value="4" selected="selected">4</option>
316             <!-- TMPL_ELSE -->
317                 <option value="4">4</option>
318             <!-- /TMPL_IF -->
319             
320             <!-- TMPL_IF NAME="day5" -->
321                 <option value="5" selected="selected">5</option>
322             <!-- TMPL_ELSE -->
323                 <option value="5">5</option>
324             <!-- /TMPL_IF -->
325             
326             <!-- TMPL_IF NAME="day6" -->
327                 <option value="6" selected="selected">6</option>
328             <!-- TMPL_ELSE -->
329                 <option value="6">6</option>
330             <!-- /TMPL_IF -->
331             
332             <!-- TMPL_IF NAME="day7" -->
333                 <option value="7" selected="selected">7</option>
334             <!-- TMPL_ELSE -->
335                 <option value="7">7</option>
336             <!-- /TMPL_IF -->
337             
338             <!-- TMPL_IF NAME="day8" -->
339                 <option value="8" selected="selected">8</option>
340             <!-- TMPL_ELSE -->
341                 <option value="8">8</option>
342             <!-- /TMPL_IF -->
343             
344             <!-- TMPL_IF NAME="day9" -->
345                 <option value="9" selected="selected">9</option>
346             <!-- TMPL_ELSE -->
347                 <option value="9">9</option>
348             <!-- /TMPL_IF -->
349             
350             <!-- TMPL_IF NAME="day10" -->
351                 <option value="10" selected="selected">10</option>
352             <!-- TMPL_ELSE -->
353                 <option value="10">10</option>
354             <!-- /TMPL_IF -->
355             
356             <!-- TMPL_IF NAME="day11" -->
357                 <option value="11" selected="selected">11</option>
358             <!-- TMPL_ELSE -->
359                 <option value="11">11</option>
360             <!-- /TMPL_IF -->
361             
362             <!-- TMPL_IF NAME="day12" -->
363                 <option value="12" selected="selected">12</option>
364             <!-- TMPL_ELSE -->
365                 <option value="12">12</option>
366             <!-- /TMPL_IF -->
367             
368             <!-- TMPL_IF NAME="day13" -->
369                 <option value="13" selected="selected">13</option>
370             <!-- TMPL_ELSE -->
371                 <option value="13">13</option>
372             <!-- /TMPL_IF -->
373             
374             <!-- TMPL_IF NAME="day14" -->
375                 <option value="14" selected="selected">14</option>
376             <!-- TMPL_ELSE -->
377                 <option value="14">14</option>
378             <!-- /TMPL_IF -->
379             
380             <!-- TMPL_IF NAME="day15" -->
381                 <option value="15" selected="selected">15</option>
382             <!-- TMPL_ELSE -->
383                 <option value="15">15</option>
384             <!-- /TMPL_IF -->
385             
386             <!-- TMPL_IF NAME="day16" -->
387                 <option value="16" selected="selected">16</option>
388             <!-- TMPL_ELSE -->
389                 <option value="16">16</option>
390             <!-- /TMPL_IF -->
391             
392             <!-- TMPL_IF NAME="day17" -->
393                 <option value="17" selected="selected">17</option>
394             <!-- TMPL_ELSE -->
395                 <option value="17">17</option>
396             <!-- /TMPL_IF -->
397             
398             <!-- TMPL_IF NAME="day18" -->
399                 <option value="18" selected="selected">18</option>
400             <!-- TMPL_ELSE -->
401                 <option value="18">18</option>
402             <!-- /TMPL_IF -->
403             
404             <!-- TMPL_IF NAME="day19" -->
405                 <option value="19" selected="selected">19</option>
406             <!-- TMPL_ELSE -->
407                 <option value="19">19</option>
408             <!-- /TMPL_IF -->
409             
410             <!-- TMPL_IF NAME="day20" -->
411                 <option value="20" selected="selected">20</option>
412             <!-- TMPL_ELSE -->
413                 <option value="20">20</option>
414             <!-- /TMPL_IF -->
415             
416             <!-- TMPL_IF NAME="day21" -->
417                 <option value="21" selected="selected">21</option>
418             <!-- TMPL_ELSE -->
419                 <option value="21">21</option>
420             <!-- /TMPL_IF -->
421             
422             <!-- TMPL_IF NAME="day22" -->
423                 <option value="22" selected="selected">22</option>
424             <!-- TMPL_ELSE -->
425                 <option value="22">22</option>
426             <!-- /TMPL_IF -->
427             
428             <!-- TMPL_IF NAME="day23" -->
429                 <option value="23" selected="selected">23</option>
430             <!-- TMPL_ELSE -->
431                 <option value="23">23</option>
432             <!-- /TMPL_IF -->
433             
434             <!-- TMPL_IF NAME="day24" -->
435                 <option value="24" selected="selected">24</option>
436             <!-- TMPL_ELSE -->
437                 <option value="24">24</option>
438             <!-- /TMPL_IF -->
439             
440             <!-- TMPL_IF NAME="day25" -->
441                 <option value="25" selected="selected">25</option>
442             <!-- TMPL_ELSE -->
443                 <option value="25">25</option>
444             <!-- /TMPL_IF -->
445             
446             <!-- TMPL_IF NAME="day26" -->
447                 <option value="26" selected="selected">26</option>
448             <!-- TMPL_ELSE -->
449                 <option value="26">26</option>
450             <!-- /TMPL_IF -->
451             
452             <!-- TMPL_IF NAME="day27" -->
453                 <option value="27" selected="selected">27</option>
454             <!-- TMPL_ELSE -->
455                 <option value="27">27</option>
456             <!-- /TMPL_IF -->
457             
458             <!-- TMPL_IF NAME="day28" -->
459                 <option value="28" selected="selected">28</option>
460             <!-- TMPL_ELSE -->
461                 <option value="28">28</option>
462             <!-- /TMPL_IF -->
463             
464             <!-- TMPL_IF NAME="day29" -->
465                 <option value="29" selected="selected">29</option>
466             <!-- TMPL_ELSE -->
467                 <option value="29">29</option>
468             <!-- /TMPL_IF -->
469             
470             <!-- TMPL_IF NAME="day30" -->
471                 <option value="30" selected="selected">30</option>
472             <!-- TMPL_ELSE -->
473                 <option value="30">30</option>
474             <!-- /TMPL_IF -->
475             
476             <!-- TMPL_IF NAME="day31" -->
477                 <option value="31" selected="selected">31</option>
478             <!-- TMPL_ELSE -->
479                 <option value="31">31</option>
480             <!-- /TMPL_IF -->
481             </select>
482         
483         <select name="month">
484             <option value="0">Month</option>
485             <!-- TMPL_IF NAME="month1" -->
486                 <option value="1" selected="selected">Jan</option>
487             <!-- TMPL_ELSE -->
488                 <option value="1">Jan</option>
489             <!-- /TMPL_IF -->
490             
491             <!-- TMPL_IF NAME="month2" -->
492                 <option value="2" selected="selected">Feb</option>
493             <!-- TMPL_ELSE -->
494                 <option value="2">Feb</option>
495             <!-- /TMPL_IF -->
496             
497             <!-- TMPL_IF NAME="month3" -->
498                 <option value="3" selected="selected">Mar</option>
499             <!-- TMPL_ELSE -->
500                 <option value="3">Mar</option>
501             <!-- /TMPL_IF -->
502             
503             <!-- TMPL_IF NAME="month4" -->
504                 <option value="4" selected="selected">Apr</option>
505             <!-- TMPL_ELSE -->
506                 <option value="4">Apr</option>
507             <!-- /TMPL_IF -->
508             
509             <!-- TMPL_IF NAME="month5" -->
510                 <option value="5" selected="selected">May</option>
511             <!-- TMPL_ELSE -->
512                 <option value="5">May</option>
513             <!-- /TMPL_IF -->
514             
515             <!-- TMPL_IF NAME="month6" -->
516                 <option value="6" selected="selected">Jun</option>
517             <!-- TMPL_ELSE -->
518                 <option value="6">Jun</option>
519             <!-- /TMPL_IF -->
520             
521             <!-- TMPL_IF NAME="month7" -->
522                 <option value="7" selected="selected">Jul</option>
523             <!-- TMPL_ELSE -->
524                 <option value="7">Jul</option>
525             <!-- /TMPL_IF -->
526             
527             <!-- TMPL_IF NAME="month8" -->
528                 <option value="8" selected="selected">Aug</option>
529             <!-- TMPL_ELSE -->
530                 <option value="8">Aug</option>
531             <!-- /TMPL_IF -->
532             
533             <!-- TMPL_IF NAME="month9" -->
534                 <option value="9" selected="selected">Sep</option>
535             <!-- TMPL_ELSE -->
536                 <option value="9">Sep</option>
537             <!-- /TMPL_IF -->
538             
539             <!-- TMPL_IF NAME="month10" -->
540                 <option value="10" selected="selected">Oct</option>
541             <!-- TMPL_ELSE -->
542                 <option value="10">Oct</option>
543             <!-- /TMPL_IF -->
544             
545             <!-- TMPL_IF NAME="month11" -->
546                 <option value="11" selected="selected">Nov</option>
547             <!-- TMPL_ELSE -->
548                 <option value="11">Nov</option>
549             <!-- /TMPL_IF -->
550             
551             <!-- TMPL_IF NAME="month12" -->
552                 <option value="12" selected="selected">Dec</option>
553             <!-- TMPL_ELSE -->
554                 <option value="12">Dec</option>
555             <!-- /TMPL_IF -->
556         </select>
557             
558         <select name="year">
559             <option value="0">Year</option>
560             <!-- TMPL_IF NAME="year2007" -->
561                 <option value="2007" selected="selected">2007</option>
562             <!-- TMPL_ELSE -->
563                 <option value="2007">2007</option>
564             <!-- /TMPL_IF -->
565             <!-- TMPL_IF NAME="year2008" -->
566                 <option value="2008" selected="selected">2008</option>
567             <!-- TMPL_ELSE -->
568                 <option value="2008">2008</option>
569             <!-- /TMPL_IF -->
570             <!-- TMPL_IF NAME="year2009" -->
571                 <option value="2009" selected="selected">2009</option>
572             <!-- TMPL_ELSE -->
573                 <option value="2009">2009</option>
574             <!-- /TMPL_IF -->
575             <!-- TMPL_IF NAME="year2010" -->
576                 <option value="2010" selected="selected">2010</option>
577             <!-- TMPL_ELSE -->
578                 <option value="2010">2010</option>
579             <!-- /TMPL_IF -->
580         <!-- TMPL_IF NAME="year2011" -->
581                 <option value="2011" selected="selected">2011</option>
582             <!-- TMPL_ELSE -->
583                 <option value="2011">2011</option>
584             <!-- /TMPL_IF -->   
585         </select>
586         
587         <label for="stickyduedate">
588         <!-- TMPL_IF NAME="stickyduedate" -->
589             <input type="checkbox" id="stickyduedate" name="stickyduedate" <!-- TMPL_VAR NAME="selected" --> checked="checked" />
590             Remember due date for this patron
591 <!-- TMPL_ELSE -->
592             <input type="checkbox" id="stickyduedate" name="stickyduedate" <!-- TMPL_VAR NAME="selected" --> />
593 <!-- /TMPL_IF -->
594             </label>
595         </p>
596
597     <input type="hidden" name="day" value="0" />
598     <input type="hidden" name="month" value="0" />
599     <input type="hidden" name="year" value="0" />
600     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
601     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
602     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
603     <input type="hidden" name="print" value="maybe" />
604     <!-- TMPL_IF NAME="CHARGES" -->
605     <input type="hidden" name="charges" value="yes" />
606     <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
607     <!-- /TMPL_IF -->
608
609     <div id="action">
610     <input type="submit" value="Issue" />
611     </div>
612
613 </fieldset>
614 </form>
615
616 <!-- TMPL_IF NAME="WaitingReserveLoop" -->      
617 <fieldset id="circ_circulation_issue">
618     <legend class="problem">Holds waiting</legend>
619         This patron has holds waiting:
620         <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
621         <p>
622             <ul> 
623                 <li> <!-- TMPL_VAR NAME="title"--> (<!-- TMPL_VAR NAME="itemtype"-->), author : <!-- TMPL_VAR NAME="author"-->, reserved the : <!-- TMPL_VAR NAME="reservedate"--> 
624             <!-- TMPL_IF NAME="waitingat" -->
625                 waiting at : <!-- TMPL_VAR NAME="waitingat" --> 
626             <!-- /TMPL_IF -->
627                 </li>
628             </ul>
629         </p>
630     <!-- /TMPL_LOOP -->
631 </fieldset>
632
633 <!-- /TMPL_IF -->
634
635 <div id="tabs">
636     <h2><!-- TMPL_VAR NAME="firstname"--> <!-- TMPL_VAR NAME="surname"--> (<!-- TMPL_VAR NAME="cardnumber"-->) has</h2>
637     <!-- TMPL_IF NAME="countreserv"-->
638         <a href="javascript:active(0)" class="tab_inactive" id="link0">
639             <!--TMPL_VAR NAME="countreserv"--> reserve(s)
640         </a>
641     <!-- TMPL_ELSE -->
642         <a href="#" class="tab_inactive">
643             0 reserves
644         </a>
645     <!-- /TMPL_IF -->
646     
647     <!--TMPL_IF NAME="issuecount"-->
648         <a href="javascript:active(1)" class="tab_inactive" id="link1">
649             <!-- TMPL_VAR NAME="issuecount"--> issue(s)
650         </a>
651     <!-- TMPL_ELSE -->
652         <a href="#" class="tab_inactive">
653             0 issue(s)
654         </a>
655     <!-- /TMPL_IF -->
656 </div>
657
658 <!-- TMPL_IF NAME="reservloop" -->
659 <div id="0XX" class="content_hidden">
660     <table>
661         <tr>
662             <th>Reserve date</th>
663             <th>Barcode</th>
664             <th>Title</th>
665             <th>Author</th>
666             <th>Localisation</th>
667         </tr>
668         <!-- TMPL_LOOP NAME="reservloop" -->
669         <tr class="<!-- TMPL_VAR NAME="color" -->">
670                     <td>
671                         <!-- TMPL_VAR NAME="reservedate" -->
672                     </td>
673                     <td>
674                         <!-- TMPL_IF name="barcodereserv" -->
675                         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra" onclick="openWindow(this, 'Item', 480, 640); return false;"><!-- TMPL_VAR NAME="barcodereserv" --></a>
676                         <!-- /TMPL_IF -->
677                         <!-- TMPL_IF NAME="waitingposition" -->
678                         Hold priority :
679                         <b> <!-- TMPL_VAR NAME="waitingposition" --> </b>
680                         <!-- /TMPL_IF -->
681                     </td>
682                     <td>
683                         <!-- TMPL_VAR NAME="title" --> (<b> <!-- TMPL_VAR NAME="itemtype" --> </b>) 
684
685                         <!-- TMPL_IF name="waiting" -->
686                         <br />
687                         <i>This hold is available</i>
688                         <!-- /TMPL_IF -->
689                         <!-- TMPL_IF name="transfered" -->
690                         <br />
691                         <i>This hold has been transfered from library : 
692                         <!-- TMPL_VAR NAME="frombranch" --> the : <!-- TMPL_VAR NAME="datesent" --> </i>
693                         <!-- /TMPL_IF -->
694
695                         <!-- TMPL_IF name="nottransfered" -->
696                         <br />
697                         <i>This hold hasn't been transfered yet from library : <!-- TMPL_VAR NAME="nottransferedby" --></i>
698                         <!-- /TMPL_IF -->
699                     </td>
700                     <td><!-- TMPL_VAR NAME="author" --></td>
701                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
702             </tr>
703         <!-- /TMPL_LOOP -->
704     </table>
705 </div>
706 <!-- /TMPL_IF --> <!-- reservesloop -->
707 <!-- /TMPL_IF --> <!-- borrowernumber -->
708
709 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
710 <!-- TMPL_IF NAME="borrowernumber" -->
711 <div id="1XX">
712     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
713     <p>
714     <span class="click" onclick="window.open('/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=page')">Print Page</span>
715     / <span class="click" onclick="window.open('/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=slip')">Print Slip</span>
716     </p>
717     
718     <input type="hidden" value="circ" name="destination" />
719     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
720     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
721     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />       
722     
723 <!-- TMPL_IF NAME="todayissues" -->
724     <table>
725     <tr>
726         <th>Title</th>
727         <th>Due date</th>
728         <th>Itemtype</th>
729         <th>Call no</th>
730         <th>Barcode</th>
731         <th>Renew?</th>
732     </tr>
733     
734     <tr>
735         <th colspan="6"><a name="today" id="today">Today checkouts</a></th>
736     </tr>
737     <!-- TMPL_LOOP NAME="todayissues" -->
738     <!-- TMPL_IF NAME="togglecolor" -->
739     <tr>
740     <!-- TMPL_ELSE -->
741     <tr class="highlight">
742     <!-- /TMPL_IF -->
743         <td>
744         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR NAME="title" --></a>
745         <br /><!-- TMPL_VAR NAME="author" -->
746         - <!-- TMPL_VAR name="itemnotes" -->
747         </td>
748         <td><!-- TMPL_VAR NAME="dd" --></td>
749         <td>
750             <!-- TMPL_VAR NAME="itemtype" -->
751             <!-- TMPL_IF NAME="itemtype_image" -->
752             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
753             <!-- /TMPL_IF -->
754         </td>
755         <td><!-- TMPL_VAR NAME="classification" --></td>
756         <td><!-- TMPL_VAR NAME="barcode" --></td>
757         <td>
758         <!-- TMPL_IF NAME="od" -->
759             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
760         <!-- TMPL_ELSE -->
761             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
762         <!-- /TMPL_IF -->
763         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
764         </td>
765     </tr>
766     <!-- /TMPL_LOOP --> <!-- todayissues -->
767     <!-- /TMPL_IF --> <!-- todayissues -->
768 <!-- TMPL_IF NAME="previssues" -->
769     <table>
770     <tr>
771         <th>Title</th>
772         <th>Due date</th>
773         <th>Itemtype</th>
774         <th>Call no</th>
775         <th>Barcode</th>
776         <th>Renew?</th>
777     </tr>
778     <tr>
779         <th colspan="6"><a name="previous" id="previous">Previous checkouts</a></th>
780     </tr>
781     <!-- TMPL_LOOP NAME="previssues" -->
782     <!-- TMPL_IF NAME="togglecolor" -->
783         <tr>
784     <!-- TMPL_ELSE -->
785         <tr class="highlight">
786     <!-- /TMPL_IF -->
787         <td>
788         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR NAME="title" --></a>
789         <br /><!-- TMPL_VAR NAME="author" --> - <!-- TMPL_VAR name="itemnotes" -->
790         </td>
791         <td>
792         <!-- TMPL_VAR NAME="dd" -->
793         </td>
794         <td>
795             <!-- TMPL_VAR NAME="itemtype" -->
796             <!-- TMPL_IF NAME="itemtype_image" -->
797             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
798             <!-- /TMPL_IF -->
799         </td>
800         <td><!-- TMPL_VAR NAME="classification" --></td>
801         <td><!-- TMPL_VAR NAME="barcode" --></td>
802         <td>
803         <!-- TMPL_IF NAME="od" -->
804             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
805         <!-- TMPL_ELSE -->
806             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
807         <!-- /TMPL_IF -->
808         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
809         </td>
810     </tr>
811     <!-- /TMPL_LOOP --> <!-- previssues -->
812 <!-- /TMPL_IF --> <!-- previssues -->
813     </table>
814
815     <div id="action">
816     <input type="submit" name="renew_checked" value="Renew Checked Items" />
817     <input type="submit" name="renew_all" value="Renew All" />
818     </div>
819 </form>
820 </div>
821 <!-- /TMPL_IF --> <!-- borrowernumber -->
822 <!--/TMPL_IF -->
823
824 <script type="text/JavaScript" language="JavaScript">
825
826     /**
827     *  MoreBorrowerDetails();
828     *  This function displays or not borrower information.
829     */
830     function MoreBorrowerDetails() {
831         var div = document.getElementById('BorrowerDetails');
832         if(div.getAttribute('class') == "content_visible"){
833             div.removeAttribute('class');
834             div.setAttribute('class',"content_hidden");
835         }
836         else {
837             div.setAttribute('class',"content_visible");
838             div.setAttribute('style',"height:180px;");
839         }
840     }
841     /**
842     *  active(numlayer)
843     *  This function activate the numlayer div.
844     */
845     function active(numlayer){
846         for (i=0; i <= 1 ; i++ ) {
847             var tab;
848             try{
849                 tab = document.getElementById(i+'XX');
850                 tab.getAttribute('id'); // that throw an exception.
851             }
852             catch(e){
853                 continue; // go to the next step.
854             }
855             if (numlayer==i) {
856                 tab.setAttribute("class","content_visible");
857                 var tabactive=document.getElementById('link'+i);
858                 tabactive.removeAttribute("class");
859                 tabactive.setAttribute("class","tab_active");
860             } else {
861                 tab.setAttribute("class","content_hidden");
862                 try {
863                     var tabactive=document.getElementById('link'+i);
864                     tabactive.removeAttribute("class");
865                     tabactive.setAttribute("class","tab_inactive");
866                 }
867                 catch(e){};
868             }
869         }
870     }
871
872     <!-- TMPL_IF NAME="borrowernumber" -->
873         document.mainform.barcode.focus(); // set the focus to the barcode entry.
874     <!-- TMPL_ELSE -->
875         document.mainform.findborrower.focus(); // set the focus to te form to search a borrower
876     <!-- /TMPL_IF -->
877
878 </script>
879
880 <!-- TMPL_INCLUDE name="intranet-bottom.inc" -->