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