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