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