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