Merge commit 'origin/master' into sopac
[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" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
10 <script type="text/JavaScript" language="JavaScript">
11 //<![CDATA[
12 $.tablesorter.addParser({
13     id: 'articles',
14     is: function(s) {return false;  },
15     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
16     type: 'text'
17 });
18 <!-- TMPL_UNLESS NAME="borrowernumber" --><!-- TMPL_UNLESS NAME="CGIselectborrower" -->window.onload=function(){ $('#findborrower').focus(); };<!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
19          $(document).ready(function() {
20                 $('#patronlists > ul').tabs();
21                 $.tablesorter.defaults.widgets = ['zebra'];
22                 $("#issuest").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
23                 dateFormat: 'uk',<!-- /TMPL_IF -->
24                 headers: { 1: { sorter: 'articles' },5: { sorter: false },6:{sorter:false},7:{sorter:false},8:{sorter:false}}
25                 });
26                 $("#issuest").bind("sortEnd",function() {
27                 $("#previous").parents("tr").remove();  // 'previous checkouts' header chokes table sorter
28             });
29                 $("#holdst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
30                 dateFormat: 'uk',<!-- /TMPL_IF -->
31                         sortList: [[0,0]],
32                         headers: { 1: { sorter: 'articles' }}
33                 });
34
35         <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
36         $( '#override_limit' ).click( function () {
37             if ( this.checked ) {
38                 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
39             } else {
40                 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
41             }
42         } ).attr( 'checked', false );
43         <!-- /TMPL_IF -->
44
45 var allcheckboxes = $(".checkboxed");
46         $("#renew_all").click(function(){
47                 $(allcheckboxes).checkCheckboxes(":input[name*=items]"); 
48                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]");
49         });
50         $("#return_all").click(function(){
51                 $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]");
52                 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]");
53         });
54         $("#CheckAllitems").click(function(){
55                 $(allcheckboxes).checkCheckboxes(":input[name*=items]");
56                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
57         });
58     $("#CheckNoitems").click(function(){
59                 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
60         });
61         $("#CheckAllreturns").click(function(){
62                 $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]");
63                 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
64         });
65     $("#CheckNoreturns" ).click(function(){
66                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
67         });
68
69     <!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
70     <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
71     $( '#override_limit' ).click( function () {
72         if ( this.checked ) {
73            $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
74         } else {
75            $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
76         }
77     } ).attr( 'checked', false );
78     <!-- /TMPL_IF -->
79     <!-- /TMPL_IF -->
80         $("td").click(function(e){
81                 if(e.target.tagName.toLowerCase() == 'td'){
82            $(this).find("input:checkbox").each( function() {
83                $(this).attr('checked', !$(this).attr('checked'));
84                            if($(this).attr('checked')){
85                     $(this).parent().siblings().find("input:checkbox").each(function(){
86                        if($(this).attr('checked')){ $(this).attr('checked',''); }
87                    });
88                            }
89            });
90                 }
91         });
92                 
93          });
94 function uncheck_sibling(me){
95 nodename=me.getAttribute("name");
96 if (nodename =="barcodes[]"){
97     var Node=me.parentNode.previousSibling;
98     while (Node.nodeName!="TD"){Node=Node.previousSibling}
99     var Nodes=Node.childNodes;
100     for (var i=0;i<Nodes.length;i++){
101       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
102         Nodes[i].checked=false;
103       }     
104    }   
105
106 }else {
107     var Node=me.parentNode.nextSibling;
108     while (Node.nodeName!="TD"){Node=Node.nextSibling}
109     var Nodes=Node.childNodes;
110     for (var i=0;i<Nodes.length;i++){
111       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
112         Nodes[i].checked=false;
113       }     
114    }   
115 }
116 }
117 function validate1(date) {
118     var today = new Date();
119     if ( date < today ) {
120         return true;
121      } else {
122         return false;
123      }
124 };
125 function refocus(calendar) {
126    document.getElementById('barcode').focus();
127    calendar.hide();
128 };
129 //]]>
130 </script>
131 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
132 </head>
133 <body>
134
135 <!-- TMPL_INCLUDE NAME="header.inc" -->
136 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
137
138 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo;<!-- TMPL_IF NAME="borrowernumber" --> <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> &rsaquo; <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --><!-- TMPL_ELSE --> <strong>Checkouts</strong><!-- /TMPL_IF --></div>
139
140 <!-- TMPL_IF NAME="CGIselectborrower" -->
141 <div id="doc" class="yui-t7">
142
143    <div id="bd">
144         <div id="yui-main">
145         <div class="yui-g">
146 <!-- TMPL_ELSE -->
147 <div id="doc3" class="yui-t2">
148
149    <div id="bd">
150         <div id="yui-main">
151         <div class="yui-b">
152 <!-- /TMPL_IF -->
153
154 <!-- TMPL_IF NAME="borrowernumber" -->
155 <!-- TMPL_INCLUDE NAME="circ-toolbar.inc" -->
156 <!-- /TMPL_IF -->
157
158 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
159 <!-- TMPL_IF NAME="dateexpiry" --><div class="dialog message">Patron's account has been renewed until <!-- TMPL_VAR NAME="dateexpiry" --></div><!-- /TMPL_IF -->
160 <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
161 <div class="yui-g">
162
163 <div id="circ_needsconfirmation" class="dialog alert">
164 <h3>Please Confirm Checkout</h3>
165
166 <ul>
167 <!-- TMPL_IF NAME="DEBT" -->
168     <li>The patron has a debt of <!-- TMPL_VAR name="DEBT" --></li>
169 <!-- /TMPL_IF -->
170
171 <!-- TMPL_IF NAME="RENEW_ISSUE" -->
172     <li>Item is currently checked out to this patron.  Renew?</li>
173 <!-- /TMPL_IF -->
174
175 <!-- TMPL_IF NAME="RESERVE_WAITING" -->
176     <li>Item is consigned for <!-- TMPL_VAR NAME="RESERVE_WAITING" --></li>
177 <!-- /TMPL_IF -->
178
179 <!-- TMPL_IF NAME="RESERVED" -->
180     <li>Item is on reserve for <!-- TMPL_VAR NAME="RESERVED" --></li>
181 <!-- /TMPL_IF -->
182
183 <!-- TMPL_IF NAME="ISSUED_TO_ANOTHER" -->
184     <li>Item ( <!-- TMPL_VAR NAME="getTitleMessageIteminfo" --> ) checked out to <!-- TMPL_VAR NAME="ISSUED_TO_ANOTHER" -->. Check in and check out?</li>
185 <!-- /TMPL_IF -->
186
187 <!-- TMPL_IF NAME="TOO_MANY" -->
188     <li>Too many checked out (already checked out / max : <!-- TMPL_VAR name="TOO_MANY" -->)</li>
189 <!-- /TMPL_IF -->
190
191 <!-- TMPL_IF NAME="PATRON_CANT" -->
192     <li>This patron can't check out this item per library circulation policy</i>
193 <!-- /TMPL_IF -->
194
195 <!-- TMPL_IF NAME="NOT_FOR_LOAN_FORCING" -->
196     <li>Item is normally not for loan.  Check out anyway?</li>
197 <!-- /TMPL_IF -->
198 </ul>
199
200 <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
201
202 <!-- TMPL_IF NAME="RESERVED" -->
203     <p>
204     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
205     <label for="cancelreserve">Cancel Reserve</label>
206     </p>
207 <!-- /TMPL_IF -->
208
209 <!-- TMPL_IF NAME="RESERVE_WAITING" -->
210     <p>
211     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
212     <label for="cancelreserve">Cancel Reserve</label>
213     </p>
214 <!-- /TMPL_IF -->
215
216     <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" />
217     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
218     <input type="hidden" name="issueconfirmed" value="1" />
219     <!-- TMPL_IF NAME="DEBT" --><input type="hidden" name="debt_confirmed" value="1" /><!-- /TMPL_IF -->
220     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
221     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
222     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
223     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
224 </form>
225
226 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
227     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
228     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
229     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
230     <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
231 </form>
232
233 </div></div>
234 <!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
235
236         <!-- TMPL_IF NAME="IMPOSSIBLE" -->
237 <div class="yui-g">
238 <div id="circ_impossible" class="dialog alert">
239 <!-- RESULT OF ISSUING REQUEST -->
240         <ul>
241         <!-- TMPL_IF NAME="STATS" -->
242             <li>Local Use Recorded</li>
243         <!-- /TMPL_IF -->
244
245         <!-- TMPL_IF NAME="INVALID_DATE" -->
246             <li>The due date &quot;<!-- TMPL_VAR NAME="INVALID_DATE" -->&quot; is invalid</li>
247         <!-- /TMPL_IF -->
248
249         <!-- TMPL_IF NAME="UNKNOWN_BARCODE" -->
250             <li>The barcode was not found</li>
251         <!-- /TMPL_IF -->
252
253         <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
254             <li>Item not for loan</li>
255         <!-- /TMPL_IF -->
256
257         <!-- TMPL_IF NAME="WTHDRAWN" -->
258             <li>Item has been withdrawn</li>
259         <!-- /TMPL_IF -->
260
261         <!-- TMPL_IF NAME="RESTRICTED" -->
262             <li>Item is restricted</li>
263         <!-- /TMPL_IF -->
264
265         <!-- TMPL_IF NAME="GNA" -->
266             <li>Patron's address is in doubt</li>
267         <!-- /TMPL_IF -->
268
269         <!-- TMPL_IF NAME="CARD_LOST" -->
270             <li>Patron's card is lost</li>
271         <!-- /TMPL_IF -->
272
273         <!-- TMPL_IF NAME="DEBARRED" -->
274             <li>Patron is restricted</li>
275         <!-- /TMPL_IF -->
276
277         <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
278             <li>No more renewals possible</li>
279         <!-- /TMPL_IF -->
280
281         <!-- TMPL_IF NAME="EXPIRED" -->
282             <li>Patron's card is expired</li>
283         <!-- /TMPL_IF -->
284
285         <!-- TMPL_IF NAME="NOTSAMEBRANCH" -->
286             <li>This item belongs to <!-- TMPL_VAR NAME="itemhomebranch" --> and cannot be issued from this location.</li>
287         <!-- /TMPL_IF -->
288         </ul>
289
290     <!-- TMPL_IF NAME="memberofinstution" -->
291     <p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
292     <!-- /TMPL_IF -->
293
294 </div></div>
295     <!--/TMPL_IF --> <!-- /impossible -->
296
297 <!-- TMPL_IF NAME="issued" -->
298 <p>Item Checked out</p>
299 <!-- /TMPL_IF -->
300
301 <!-- TMPL_IF NAME="message" -->
302 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
303 <h4>
304 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
305 </h4>
306 <!-- /TMPL_IF -->
307
308
309 <!-- TMPL_IF NAME="CGIselectborrower" -->
310 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
311
312 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
313 <fieldset id="circ_circulation_selectborrower" class="brief">
314     <legend>Patron selection</legend>
315
316     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
317     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
318     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
319     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
320
321 <ol>    <li>
322     <label for="borrowernumber">Select a patron: </label>
323     <!-- TMPL_VAR name="CGIselectborrower" -->
324     </li>
325 </ol>
326 <p><input type="submit" value="Select" /></p>
327 </fieldset>
328 </form>
329 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
330
331 <!-- BARCODE ENTRY -->
332
333 <!-- TMPL_IF NAME="borrowernumber" -->
334 <div class="yui-g">
335 <!-- TMPL_UNLESS NAME="noissues" -->
336 <!-- TMPL_IF NAME="flagged" -->
337 <div class="yui-u first">
338 <!-- TMPL_ELSE -->
339 <div><!-- /TMPL_IF --><form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
340 <fieldset id="circ_circulation_issue">
341     <!-- TMPL_IF NAME="DisplayClearScreenButton" -->
342             <input type=button value="Clear Screen" onClick="window.location = '/cgi-bin/koha/circ/circulation.pl'">
343     <!-- /TMPL_IF -->
344
345     <label for="barcode">Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->) </label>
346         <div class="hint">Enter item barcode:</div>
347
348         <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> <input type="submit" value="Check Out" />
349
350     <!-- TMPL_IF NAME="SpecifyDueDate" --><div class="date-select">
351         <div class="hint">Specify Due Date:</div>
352                 <!-- TMPL_IF NAME="duedatespec" --><input type="text" size="10" id="duedatespec" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" /><!-- TMPL_ELSE --><input type="text" size="10" id="duedatespec" name="duedatespec" value="" />
353 <!-- /TMPL_IF -->
354                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar"  border="0" id="CalendarDueDate" style="cursor: pointer;" />
355              <script language="JavaScript" type="text/javascript">
356                          //<![CDATA[
357                    function validate1(date) {
358                          var today = new Date();
359                          if ( date < today ) {
360                              return true;
361                           } else {
362                              return false;
363                           }
364                      };
365                      function refocus(calendar) {
366                         $('#barcode').focus();
367                         calendar.hide();
368                      };
369                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
370                      Calendar.setup(
371                           {
372                              inputField : "duedatespec",
373                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
374                              button : "CalendarDueDate",
375                              disableFunc : validate1,
376                              dateStatusFunc : validate1,
377                              onClose : refocus
378                            }
379                         );
380                                 //]]>
381                  </script>
382
383           <label for="stickyduedate"> Remember for Session:</label>
384 <!-- TMPL_IF NAME="stickyduedate" -->
385 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
386 <!-- TMPL_ELSE -->
387 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
388 <!-- /TMPL_IF -->
389           <input type="button" class="action" id="cleardate" value="Clear" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" />
390 </div><!-- /TMPL_IF -->
391           <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
392           <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
393           <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
394           <input type="hidden" name="print" value="maybe" />
395           <input type="hidden" name="debt_confirmed" value="<!-- TMPL_VAR NAME="debt_confirmed" -->" />
396                 <!-- TMPL_IF NAME="CHARGES" -->
397                         <input type="hidden" name="charges" value="yes" />
398                         <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
399                 <!-- /TMPL_IF -->
400 </fieldset>
401 </form></div><!-- /TMPL_UNLESS --><!-- /unless noissues -->
402
403 <!-- TMPL_IF NAME="noissues" --><div><!-- TMPL_ELSE --><div class="yui-u"><!-- /TMPL_IF -->
404
405     <!-- TMPL_IF NAME="flagged" -->
406                 <!-- TMPL_IF NAME="noissues" -->
407                  <h4>Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h4>
408         <div id="circmessages" class="circmessage warning">
409                 <!-- TMPL_ELSE -->
410         <div id="circmessages" class="circmessage attention">
411                 <!-- /TMPL_IF -->
412
413                 <h3><!-- TMPL_IF NAME="noissues" -->Cannot Check Out!<!-- TMPL_ELSE -->Attention:<!-- /TMPL_IF --></h3>
414                 <ul>
415
416                         <!-- TMPL_IF NAME = "warndeparture" -->
417                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
418                         Patron's card expires on <!-- TMPL_VAR NAME="expiry" --> <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;categorycode=<!-- TMPL_VAR NAME="categorycode" -->">Edit Details</a>
419
420                         </li>
421                         <!-- /TMPL_IF -->
422
423                         <!-- TMPL_IF NAME="returnbeforeexpiry" -->
424                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
425                          expiry date is before the date due, the date due will be set to the expiry date
426                          </li>
427                         <!-- /TMPL_IF -->
428
429                         <!-- TMPL_IF NAME = "expired" -->
430                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
431                         Patron's card expired on <!-- TMPL_VAR NAME="expiry" --> <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;categorycode=<!-- TMPL_VAR NAME="categorycode" -->">Edit Details</a>
432
433                         </li>
434                         <!-- /TMPL_IF -->
435
436             <!-- TMPL_IF NAME="gna" -->
437                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
438                         <!-- /TMPL_IF -->
439
440             <!-- TMPL_IF NAME="lost" -->
441                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
442                         <!-- /TMPL_IF -->
443
444             <!-- TMPL_IF NAME="dbarred" --><li class="blocker">
445                <span class="circ-hlt"> Restricted:</span> Patron's account is restricted <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&amp;destination=circ&amp;status=0">Lift restriction</a>
446 </li><!-- /TMPL_IF -->
447
448                 <!-- TMPL_IF name="odues" --><li><!-- TMPL_IF name="nonreturns" --><span class="circ-hlt">Overdues:</span> Patron has <span class="circ-hlt">ITEMS OVERDUE</span>. See highlighted items <a href="#checkouts">below</a><!-- /TMPL_IF --></li>
449             <!-- /TMPL_IF -->
450
451                 <!-- TMPL_IF NAME="charges" -->
452                 <!-- TMPL_IF NAME="charges_is_blocker" -->
453                                 <li class="blocker">
454                 <!-- TMPL_ELSE -->
455                                 <li>
456                 <!-- /TMPL_IF -->
457             <span class="circ-hlt">Fines:</span> Patron has  <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Outstanding fines<!-- TMPL_IF NAME="chargesamount" --> of <!-- TMPL_VAR NAME="chargesamount" --><!-- /TMPL_IF --></a>.
458                 <!-- TMPL_IF NAME="charges_is_blocker" -->
459                     Checkouts are blocked because fine balance is over the limit.
460                 <!-- /TMPL_IF -->
461             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li>
462                         <!-- /TMPL_IF -->
463
464                 <!-- TMPL_IF NAME="credits" -->
465                         <li><span class="circ-hlt">Credits:</span> Patron has a credit</li>
466                         <!-- /TMPL_IF -->
467
468
469
470                         </ul>
471         </div>
472
473                         <!-- TMPL_IF NAME="WaitingReserveLoop" -->
474                         <div id="holdswaiting" class="circmessage">
475                     <h4>Holds waiting:</h4>
476                                 <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
477                                     <ul> 
478                                         <li> <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a> (<!-- TMPL_VAR NAME="itemtype"-->), <!-- TMPL_IF NAME="author" -->by <!-- TMPL_VAR NAME="author"--><!-- /TMPL_IF --> Hold placed on <!-- TMPL_VAR NAME="reservedate"-->.
479                                     <!-- TMPL_IF NAME="waitingat" -->
480                                         <br /><!-- TMPL_IF NAME="waitinghere" --><strong class="waitinghere"><!-- TMPL_ELSE --><strong><!-- /TMPL_IF -->Waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
481                                     <!-- /TMPL_IF -->
482                                         </li>
483                                     </ul>
484                             <!-- /TMPL_LOOP -->
485                         </div>
486                         <!-- /If WaitingReserveLoop --><!-- /TMPL_IF -->
487         <!-- TMPL_IF name="notes" -->
488                         <div id="circnotes" class="circmessage">
489                         <h4>Notes:</h4>
490             <p><span class="circ-hlt"><!-- TMPL_VAR name="notesmsg" --></span></p>
491                         </div>
492     <!-- /If notes --><!-- /TMPL_IF -->
493      <!-- /If flagged --><!-- /TMPL_IF -->
494
495
496 </div>
497 </div>
498
499 <div class="yui-g"><div id="patronlists" class="toptabs">
500
501 <ul>
502 <li>    <!--TMPL_IF NAME="issuecount"-->
503             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts"><!-- TMPL_VAR NAME="issuecount"--> Checkout(s)</a>
504     <!-- TMPL_ELSE -->
505             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts">0 Checkouts</a>
506     <!-- /TMPL_IF --></li>
507 <li><!-- TMPL_IF NAME="countreserv"-->
508             <a href="/cgi-bin/koha/circ/circulation.pl#reserves"><!--TMPL_VAR NAME="countreserv"--> Hold(s)</a>
509     <!-- TMPL_ELSE -->
510             <a href="/cgi-bin/koha/circ/circulation.pl#reserves">0 Holds</a>
511     <!-- /TMPL_IF --></li>
512
513 </ul>
514
515 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
516 <div id="checkouts">
517 <!--TMPL_IF NAME="issuecount"-->
518     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
519     <input type="hidden" value="circ" name="destination" />
520     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
521     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
522     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
523         <table id="issuest">
524     <thead><tr>
525         <th scope="col">Due date</th>
526         <th scope="col">Title</th>
527         <th scope="col">Item Type</th>
528         <th scope="col">Checked out on</th> 
529         <th scope="col">Call no</th>
530         <th scope="col">Charge</th>
531         <th scope="col">Price</th>
532         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
533         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
534     </tr>
535 <!-- TMPL_IF NAME="todayissues" --></thead>
536 <tfoot>
537                 <tr>
538             <td colspan="5" style="text-align: right; font-weight:bold;">Totals:</td>
539                         <td><!-- TMPL_VAR NAME="totaldue" --></td>
540             <td><!-- TMPL_VAR NAME="totalprice" --></td>
541             <td colspan="2">      
542                 <p>
543                     Renewal due date: <input type="text" size="8" id="newduedate" name="newduedate" value="<!-- TMPL_VAR Name="newduedate" -->" />
544                     <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="newduedate_button" alt="Show Calendar" />
545  <script type="text/javascript"> //<![CDATA[
546                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
547                      Calendar.setup(
548                           {
549                              inputField : "newduedate",
550                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
551                              button : "newduedate_button",
552                              disableFunc : validate1,
553                              dateStatusFunc : validate1,
554                              onClose : refocus
555                            }
556                         );
557                                 //]]>
558                                  </script>
559                 </p>
560                 <p>
561                     <label>Forgive fines on return: <input type="checkbox" name="exemptfine" value="1" /></label>
562                 </p>
563             </td>
564         </tr>
565                 </tfoot>
566         <tbody>
567
568     <!-- TMPL_LOOP NAME="todayissues" -->
569     <!-- TMPL_IF NAME="__odd__" -->
570     <tr>
571     <!-- TMPL_ELSE -->
572     <tr class="highlight">
573     <!-- /TMPL_IF -->
574         <td><!-- TMPL_VAR NAME="dd" --></td>
575         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><strong><!-- TMPL_VAR NAME="title" escape="html" --></strong></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="itemnotes" -->- <span class="circ-hlt"><!-- TMPL_VAR name="itemnotes" --></span><!-- /TMPL_IF --> <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->#item<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a></td>
576         <td><!-- TMPL_UNLESS NAME="noItemTypeImages" --> <!-- TMPL_IF NAME="itemtype_image" --><img src="<!-- TMPL_VAR NAME="itemtype_image" -->" alt="" /><!-- /TMPL_IF --><!-- /TMPL_UNLESS --><!-- TMPL_VAR NAME="itemtype" --></td>
577         <td><!-- TMPL_VAR NAME="checkoutdate" --></td>
578         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
579             <td><!-- TMPL_VAR NAME="charge" --></td>
580             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
581         <td><span style="padding: 0 1em;"><!-- TMPL_VAR NAME="renewals" --></span>
582         <!-- TMPL_IF NAME="can_renew" -->
583         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
584         <!-- TMPL_IF NAME="od" -->
585             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
586         <!-- TMPL_ELSE -->
587             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
588         <!-- /TMPL_IF -->
589         <!-- TMPL_ELSE -->
590             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
591                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
592                 <!-- TMPL_IF NAME="od" -->
593                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
594                 <!-- TMPL_ELSE -->
595                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
596                 <!-- /TMPL_IF -->
597                 </span>
598                 <span class="renewals-disabled">
599             <!-- /TMPL_IF -->
600                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
601                         On Hold
602                 <!-- /TMPL_IF -->
603                 <!-- TMPL_IF NAME="renew_error_too_many" -->
604                         Not Renewable
605                 <!-- /TMPL_IF -->
606             <!-- TMPL_IF NAME="can_confirm" -->
607                 </span>
608             <!-- /TMPL_IF -->
609         <!-- /TMPL_IF -->
610         </td>
611   <!-- TMPL_IF NAME="return_failed" -->
612             <td class="problem">Checkin Failed</td>
613       <!--TMPL_ELSE-->
614             <td><input type="checkbox" name="barcodes[]"  value="<!-- TMPL_VAR NAME="barcode" -->" onclick="uncheck_sibling(this);" />
615                 <input type="checkbox" name="all_barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" checked="checked" style="display: none;" />
616             </td>
617       <!-- /TMPL_IF -->
618                 <!-- TMPL_IF NAME="renew_failed" -->
619                 <td>Renewal Failed</td>
620                 <!-- /TMPL_IF -->
621     </tr>
622     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
623     <!-- /if todayissues --><!-- /TMPL_IF --> 
624 <!-- TMPL_IF NAME="previssues" -->
625 <!-- TMPL_IF NAME="todayissues" --><tr><th colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
626 <tr><th class="{sorter: false}" colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
627         <tbody>
628 <!-- /TMPL_IF -->
629     <!-- TMPL_LOOP NAME="previssues" -->
630     <!-- TMPL_IF NAME="__odd__" -->
631         <tr>
632     <!-- TMPL_ELSE -->
633         <tr class="highlight">
634     <!-- /TMPL_IF -->
635         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
636         <!-- TMPL_VAR NAME="dd" -->
637         </td>
638         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><strong><!-- TMPL_VAR NAME="title" escape="html" --></strong></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="itemnotes" -->- <!-- TMPL_VAR name="itemnotes" --><!-- /TMPL_IF --> <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->#item<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a></td>
639         <td>
640             <!-- TMPL_VAR NAME="itemtype" -->
641         </td>
642         <td><!-- TMPL_VAR NAME="issuedate" --></td>
643         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
644         <td><!-- TMPL_VAR NAME="charge" --></td>
645         <td><!-- TMPL_VAR NAME="replacementprice" --></td>
646         <td><span style="padding: 0 1em;"><!-- TMPL_IF NAME="renewals" --><!-- TMPL_VAR NAME="renewals" --><!-- TMPL_ELSE -->0<!-- /TMPL_IF --></span>
647         <!-- TMPL_IF NAME="can_renew" -->
648         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
649         <!-- TMPL_IF NAME="od" -->
650             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
651         <!-- TMPL_ELSE -->
652             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
653         <!-- /TMPL_IF -->
654         <!-- TMPL_ELSE -->
655             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
656                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
657                 <!-- TMPL_IF NAME="od" -->
658                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
659                 <!-- TMPL_ELSE -->
660                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
661                 <!-- /TMPL_IF -->
662                 </span>
663                 <span class="renewals-disabled">
664             <!-- /TMPL_IF -->
665                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
666                         On Hold
667                 <!-- /TMPL_IF -->
668                 <!-- TMPL_IF NAME="renew_error_too_many" -->
669                         Not Renewable
670                 <!-- /TMPL_IF -->
671             <!-- TMPL_IF NAME="can_confirm" -->
672                 </span>
673             <!-- /TMPL_IF -->
674         <!-- /TMPL_IF -->
675         </td>
676                       <!-- TMPL_IF NAME="return_failed" -->
677             <td class="problem">Checkin Failed</td>
678       <!--TMPL_ELSE-->
679             <td><input type="checkbox" name="barcodes[]"  value="<!-- TMPL_VAR NAME="barcode" -->" onclick="uncheck_sibling(this);" />
680                 <input type="checkbox" name="all_barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" checked="checked" style="display: none;" />
681             </td>
682       <!-- /TMPL_IF -->
683                 <!-- TMPL_IF NAME="renew_failed" -->
684                 <td>Renewal Failed</td>
685                 <!-- /TMPL_IF -->
686
687     </tr>
688     <!-- /loop previssues --><!-- /TMPL_LOOP -->
689 <!--/if previssues --><!-- /TMPL_IF -->
690       </tbody>
691     </table>
692     <!--TMPL_IF NAME="issuecount"-->
693     <fieldset class="action">
694         <!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
695         <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
696         <label for="override_limit">Override Renewal Limit:</label>
697         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
698         <!-- /TMPL_IF -->
699         <!-- /TMPL_IF -->
700         <input type="submit" name="renew_checked" value="Renew or Return checked items" />
701         <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
702         <input type="submit" id="return_all" name="return_all" value="Return all" />
703         </fieldset>
704     <!-- /TMPL_IF -->
705 </form>
706 <!-- TMPL_ELSE -->
707 <p>Patron has nothing checked out.</p>
708 <!-- /TMPL_IF -->
709 </div>
710
711
712 <div id="reserves">
713 <!-- TMPL_IF NAME="reservloop" -->
714 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
715         <input type="hidden" name="from" value="circ" />
716     <table id="holdst">
717         <thead><tr>
718             <th>Hold date</th>
719             <th>Title</th>
720             <th>Call Number</th>
721                         <th>Barcode</th>
722             <th>Priority</th>
723                         <th>Delete?</th>
724         </tr></thead>
725                 <tbody>
726         <!-- TMPL_LOOP NAME="reservloop" -->
727         <tr class="<!-- TMPL_VAR NAME="color" -->">
728                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
729                     <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><strong><!-- TMPL_VAR NAME="title" escape="html" --></strong></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></td>
730                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
731                                         <td><em><!-- TMPL_IF name="barcodereserv" -->Item <!-- TMPL_VAR NAME="barcodereserv" -->
732                         <!-- /TMPL_IF --><!-- TMPL_IF name="waiting" --> <strong>waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
733                         <!-- /TMPL_IF -->
734                         <!-- TMPL_IF name="transfered" --> <strong>in transit</strong> from
735                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" -->
736                         <!-- /TMPL_IF -->
737                         <!-- TMPL_IF name="nottransfered" --> hasn't been transfered yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
738                         <!-- /TMPL_IF --></em></td>
739                     <td>
740                         <!-- TMPL_IF NAME="waitingposition" --><b> <!-- TMPL_VAR NAME="waitingposition" --> </b><!-- /TMPL_IF -->
741                     </td>
742                                 <td><select name="rank-request">
743                     <option value="n">No</option>
744                     <option value="del">Yes</option>
745                 </select>
746                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
747                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" />
748             </td>
749             </tr>
750         <!-- /TMPL_LOOP --></tbody>
751     </table>
752                 <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel Marked Requests" /></fieldset>
753     </form>
754         <!-- TMPL_ELSE -->
755         <p>Patron has nothing on hold.</p>
756 <!-- /TMPL_IF -->
757 </div> <!-- reservesloop -->
758
759 <!-- /TMPL_IF --> <!-- borrowernumber -->
760 </div></div>
761 <!--/TMPL_IF -->
762
763
764
765 </div>
766 </div>
767 <!-- TMPL_UNLESS NAME="CGIselectborrower" --><!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b">
768 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
769 </div><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
770 </div>
771 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->