bug 2787 : Fix Global Due date
[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.pack.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}}
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                 $("td").click(function(e){
45                         if(e.target.tagName.toLowerCase() == 'td'){
46             $(this).find("input:checkbox").each( function() {
47                 $(this).attr('checked', !$(this).attr('checked'));
48             });
49                         }
50                 });
51          });
52 //]]>
53 </script>
54 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
55 </head>
56 <body>
57
58 <!-- TMPL_INCLUDE NAME="header.inc" -->
59 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
60
61 <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>
62
63
64 <!-- TMPL_IF NAME="CGIselectborrower" -->
65 <div id="doc" class="yui-t7">
66
67    <div id="bd">
68         <div id="yui-main">
69         <div class="yui-g">
70 <!-- TMPL_ELSE -->
71 <div id="doc3" class="yui-t2">
72
73    <div id="bd">
74 <!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b"><!-- TMPL_INCLUDE NAME="circ-menu.inc" --></div><!-- /TMPL_IF -->
75         <div id="yui-main">
76         <div class="yui-b">
77 <!-- /TMPL_IF -->
78
79 <!-- TMPL_IF NAME="borrowernumber" -->
80 <!-- TMPL_INCLUDE NAME="circ-toolbar.inc" -->
81 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
82 <!-- TMPL_IF NAME="dateexpiry" --><div class="dialog message">Patron's account has been renewed until <!-- TMPL_VAR NAME="dateexpiry" --></div><!-- /TMPL_IF -->
83
84 <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
85 <div class="yui-g">
86 <div id="circ_needsconfirmation" class="dialog alert">
87 <h3>Please Confirm Checkout</h3>
88 <ul>
89 <!-- TMPL_IF NAME="DEBT" --><li>The patron has a debt of $<!-- TMPL_VAR name="DEBT" --></li><!-- /TMPL_IF -->
90 <!-- TMPL_IF NAME="RENEW_ISSUE" --><li>Item is currently checked out to this patron.  Renew?</li><!-- /TMPL_IF -->
91 <!-- TMPL_IF NAME="RESERVE_WAITING" --><li>Item is consigned for <!-- TMPL_VAR NAME="RESERVE_WAITING" --></li><!-- /TMPL_IF -->
92 <!-- TMPL_IF NAME="RESERVED" --><li>Item is on reserve for <!-- TMPL_VAR NAME="RESERVED" --></li><!-- /TMPL_IF -->
93 <!-- TMPL_IF NAME="ISSUED_TO_ANOTHER" --><li>Item ( <!-- TMPL_VAR NAME="getTitleMessageIteminfo" --> ) checked out to <!-- TMPL_VAR NAME="ISSUED_TO_ANOTHER" -->. Check in and check out?</li><!-- /TMPL_IF -->
94 <!-- TMPL_IF NAME="TOO_MANY" --><li>Too many checked out (already checked out / max : <!-- TMPL_VAR name="TOO_MANY" -->)</li><!-- /TMPL_IF -->
95 <!-- TMPL_IF NAME="USERBLOCKEDREMAINING" --><li><!--TMPL_VAR Name="USERBLOCKEDREMAINING"--> Overdues</li><!-- /TMPL_IF -->
96 <!-- TMPL_IF NAME="NOT_FOR_LOAN_CAN_FORCING" --><li>Item not for loan, are you sure you want to check it out ?</p><!-- /TMPL_IF -->
97 <!-- TMPL_IF NAME="PATRON_CANT" --><li>This patron can't check out this item per library circulation policy</li><!-- /TMPL_IF -->
98 </ul>
99
100 <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
101
102 <!-- TMPL_IF NAME="RESERVED" -->
103     <p>
104     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
105     <label for="cancelreserve">Cancel Reserve</label>
106     </p><!-- /TMPL_IF -->
107 <!-- TMPL_IF NAME="RESERVE_WAITING" -->    <p>
108     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
109     <label for="cancelreserve">Cancel Reserve</label>
110     </p>
111 <!-- /TMPL_IF -->
112 <!-- TMPL_IF NAME="DEBT" --><input type="hidden" name="debt_confirmed" value="1" /><!-- /TMPL_IF -->
113     <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" />
114     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
115     <input type="hidden" name="issueconfirmed" value="1" />
116     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
117     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
118     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
119     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
120 </form>
121
122 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
123     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
124     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
125     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
126     <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
127 </form>
128 </div></div>
129 <!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
130 <!-- TMPL_IF NAME="IMPOSSIBLE" -->
131 <div class="yui-g first">
132 <div id="circ_impossible" class="dialog alert">
133 <!-- RESULT OF ISSUING REQUEST -->
134         <ul>
135         <!-- TMPL_IF NAME="STATS" -->
136             <li>Local Use Recorded</li>
137         <!-- /TMPL_IF -->
138
139         <!-- TMPL_IF NAME="INVALID_DATE" -->
140             <li>The due date is invalid</li>
141         <!-- /TMPL_IF -->
142         <!-- TMPL_IF NAME="UNKNOWN_BARCODE" -->
143             <li>The barcode was not found</li>
144         <!-- /TMPL_IF -->
145
146         <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
147             <li>Item not for loan</li>
148         <!-- /TMPL_IF -->
149
150         <!-- TMPL_IF NAME="WTHDRAWN" -->
151             <li>Item has been withdrawn</li>
152         <!-- /TMPL_IF -->
153
154         <!-- TMPL_IF NAME="RESTRICTED" -->
155             <li>Item is restricted</li>
156         <!-- /TMPL_IF -->
157
158         <!-- TMPL_IF NAME="GNA" -->
159             <li>Patron's address is in doubt</li>
160         <!-- /TMPL_IF -->
161
162         <!-- TMPL_IF NAME="CARD_LOST" -->
163             <li>Patron's card is lost</li>
164         <!-- /TMPL_IF -->
165
166         <!-- TMPL_IF NAME="DEBARRED" -->
167             <li>Patron is restricted</li>
168         <!-- /TMPL_IF -->
169
170         <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
171             <li>No more renewals possible</li>
172         <!-- /TMPL_IF -->
173
174         <!-- TMPL_IF NAME="EXPIRED" -->
175             <li>Patron's card is expired</li>
176         <!-- /TMPL_IF -->
177
178         <!-- TMPL_IF NAME="NOTSAMEBRANCH" -->
179             <li>This item belongs to <!-- TMPL_VAR NAME="itemhomebranch" --> and cannot be issued from this location.</li>
180         <!-- /TMPL_IF -->
181         </ul>
182
183     <!-- TMPL_IF NAME="memberofinstution" -->
184     <p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
185     <!-- /TMPL_IF -->
186
187 </div></div>
188     <!--/TMPL_IF --> <!-- /impossible -->
189
190 <!-- TMPL_IF NAME="issued" -->
191 <p>Item Checked out</p>
192 <!-- /TMPL_IF -->
193
194 <!-- TMPL_IF NAME="message" -->
195 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
196 <h4>
197 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
198 </h4>
199 <!-- /TMPL_IF -->
200
201 <!-- /TMPL_IF --><!--/borrowernumber-->
202
203 <!-- TMPL_IF NAME="CGIselectborrower" -->
204 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
205
206 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
207 <fieldset id="circ_circulation_selectborrower" class="brief">
208     <legend>Patron selection</legend>
209
210     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
211     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
212     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
213     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
214
215 <ol>    <li>
216     <label for="borrowernumber">Select a patron: </label>
217     <!-- TMPL_VAR name="CGIselectborrower" -->
218     </li>
219 </ol>
220 <p><input type="submit" value="Select" /></p>
221 </fieldset>
222 </form>
223 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
224
225 <!-- BARCODE ENTRY -->
226
227 <!-- TMPL_IF NAME="borrowernumber" -->
228 <div class="yui-g">
229 <!-- TMPL_UNLESS NAME="noissues" -->
230 <!-- TMPL_IF NAME="flagged" -->
231 <div class="yui-u first">
232 <!-- TMPL_ELSE -->
233 <div><!-- /TMPL_IF --><form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
234 <fieldset id="circ_circulation_issue">
235     <label for="barcode">Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->) </label>
236         <div class="hint">Enter item barcode:</div>
237
238         <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> <input type="submit" value="Check Out" />
239
240     <!-- TMPL_IF NAME="SpecifyDueDate" --><div class="date-select">
241         <div class="hint">Specify Due Date:</div>
242                 <!-- 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="" />
243 <!-- /TMPL_IF -->
244                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar"  border="0" id="CalendarDueDate" style="cursor: pointer;" />
245              <script language="JavaScript" type="text/javascript">
246                          //<![CDATA[
247                    function validate1(date) {
248                          var today = new Date();
249                          if ( date < today ) {
250                              return true;
251                           } else {
252                              return false;
253                           }
254                      };
255                      function refocus(calendar) {
256                         document.getElementById('barcode').focus();
257                         calendar.hide();
258                      };
259                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
260                      Calendar.setup(
261                           {
262                              inputField : "duedatespec",
263                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
264                              button : "CalendarDueDate",
265                              disableFunc : validate1,
266                              dateStatusFunc : validate1,
267                              onClose : refocus
268                            }
269                         );
270                                 //]]>
271                  </script>
272
273           <label for="stickyduedate"> Remember for Session:</label>
274 <!-- TMPL_IF NAME="stickyduedate" -->
275 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
276 <!-- TMPL_ELSE -->
277 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
278 <!-- /TMPL_IF -->
279           <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;" />
280 </div><!-- /TMPL_IF -->
281           <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
282           <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
283           <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
284           <input type="hidden" name="print" value="maybe" />
285           <input type="hidden" name="debt_confirmed" value="<!-- TMPL_VAR NAME="debt_confirmed" -->" />
286                 <!-- TMPL_IF NAME="CHARGES" -->
287                         <input type="hidden" name="charges" value="yes" />
288                         <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
289                 <!-- /TMPL_IF -->
290 </fieldset>
291 </form></div><!-- /TMPL_UNLESS --><!-- /unless noissues -->
292
293 <!-- TMPL_IF NAME="noissues" --><div><!-- TMPL_ELSE --><div class="yui-u"><!-- /TMPL_IF -->
294
295
296     <!-- TMPL_IF NAME="flagged" -->
297     <div class="yui-u">
298                 <!-- TMPL_IF NAME="noissues" -->
299                  <h4>Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h4>
300         <div id="circmessages" class="circmessage warning">
301                 <!-- TMPL_ELSE -->
302         <div id="circmessages" class="circmessage attention">
303                 <!-- /TMPL_IF -->
304
305                 <h3><!-- TMPL_IF NAME="noissues" -->Cannot Check Out!<!-- TMPL_ELSE -->Attention:<!-- /TMPL_IF --></h3>
306                 <ul>
307
308                         <!-- TMPL_IF NAME = "warndeparture" -->
309                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
310                         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>
311
312                         </li>
313                         <!-- /TMPL_IF -->
314
315                         <!-- TMPL_IF NAME="returnbeforeexpiry" -->
316                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
317                          expiry date is before the date due, the date due will be set to the expiry date
318                          </li>
319                         <!-- /TMPL_IF -->
320                         <!-- TMPL_IF NAME = "expired" -->
321                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
322                         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>
323                         </li>
324                         <!-- /TMPL_IF -->
325             <!-- TMPL_IF NAME="gna" -->
326                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
327                         <!-- /TMPL_IF -->
328
329             <!-- TMPL_IF NAME="lost" -->
330                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
331                         <!-- /TMPL_IF -->
332
333             <!-- TMPL_IF NAME="dbarred" --><li class="blocker">
334                <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>
335 </li><!-- /TMPL_IF -->
336             <!-- 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>
337             <!-- /TMPL_IF -->
338
339                 <!-- TMPL_IF NAME="charges" -->
340                 <!-- TMPL_IF NAME="charges_is_blocker" -->
341                                 <li class="blocker">
342                 <!-- TMPL_ELSE -->
343                                 <li>
344                 <!-- /TMPL_IF -->
345             <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>.
346                 <!-- TMPL_IF NAME="charges_is_blocker" -->
347                     Checkouts are blocked because fine balance is over the limit.
348                 <!-- /TMPL_IF -->
349             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li>
350                         <!-- /TMPL_IF -->
351
352                 <!-- TMPL_IF NAME="credits" -->
353                         <li><span class="circ-hlt">Credits:</span> Patron has a credit</li>
354                         <!-- /TMPL_IF -->
355
356
357
358                         </ul>
359         </div>
360
361                         <!-- TMPL_IF NAME="WaitingReserveLoop" -->
362                         <div id="holdswaiting" class="circmessage">
363                     <h4>Holds waiting:</h4>
364                                 <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
365                                     <ul> 
366                                         <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"-->.
367                                     <!-- TMPL_IF NAME="waitingat" -->
368                                         <br /><!-- TMPL_IF NAME="waitinghere" --><strong class="waitinghere"><!-- TMPL_ELSE --><strong><!-- /TMPL_IF -->Waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
369                                     <!-- /TMPL_IF -->
370                                         </li>
371                                     </ul>
372                             <!-- /TMPL_LOOP -->
373                         </div>
374                         <!-- /If WaitingReserveLoop --><!-- /TMPL_IF -->
375         <!-- TMPL_IF name="notes" -->
376                         <div id="circnotes" class="circmessage">
377                         <h4>Notes:</h4>
378             <p><span class="circ-hlt"><!-- TMPL_VAR name="notesmsg" --></span></p>
379                         </div>
380     <!-- /If notes --><!-- /TMPL_IF -->
381      <!-- /If flagged --><!-- /TMPL_IF -->
382 </div>
383
384 <div class="yui-g"><div id="patronlists" class="toptabs">
385
386 <ul>
387 <li>    <!--TMPL_IF NAME="issuecount"-->
388             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts"><!-- TMPL_VAR NAME="issuecount"--> Checkout(s)</a>
389     <!-- TMPL_ELSE -->
390             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts">0 Checkouts</a>
391     <!-- /TMPL_IF --></li>
392 <li><!-- TMPL_IF NAME="countreserv"-->
393             <a href="/cgi-bin/koha/circ/circulation.pl#reserves"><!--TMPL_VAR NAME="countreserv"--> Holds(s)</a>
394     <!-- TMPL_ELSE -->
395             <a href="/cgi-bin/koha/circ/circulation.pl#reserves">0 Holds</a>
396     <!-- /TMPL_IF --></li>
397
398 </ul>
399
400 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
401 <div id="checkouts">
402 <!--TMPL_IF NAME="issuecount"-->
403     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
404     <input type="hidden" value="circ" name="destination" />
405     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
406     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
407     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
408         <table id="issuest">
409     <thead><tr>
410         <th>Due date</th>
411         <th>Title</th>
412         <th>Item Type</th>
413         <th>Call no</th>
414         <th>Barcode</th>
415         <th>Renew?</th>
416                 <th>Check In?</th>
417     </tr>
418 <!-- TMPL_IF NAME="todayissues" --></thead>
419         <tbody>
420
421     <!-- TMPL_LOOP NAME="todayissues" -->
422     <!-- TMPL_IF NAME="__odd__" -->
423     <tr>
424     <!-- TMPL_ELSE -->
425     <tr class="highlight">
426     <!-- /TMPL_IF -->
427         <td><!-- TMPL_VAR NAME="dd" --></td>
428         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR NAME="title" escape="html" --></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 --></td>
429         <td>
430             <!-- TMPL_VAR NAME="itemtype" -->
431            <!-- TMPL_UNLESS NAME="noItemTypeImages" --> <!-- TMPL_IF NAME="itemtype_image" -->
432             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
433             <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
434         </td>
435         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
436         <td><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>
437         <td>
438         <!-- TMPL_IF NAME="can_renew" -->
439         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
440         <!-- TMPL_IF NAME="od" -->
441             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
442           <!-- TMPL_ELSE -->
443             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
444           <!-- /TMPL_IF -->
445         <!-- TMPL_ELSE -->
446             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
447                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
448                <!-- TMPL_IF NAME="od" -->
449                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
450                 <!-- TMPL_ELSE -->
451                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
452                 <!-- /TMPL_IF -->
453                 </span>
454                 <span class="renewals-disabled">
455             <!-- /TMPL_IF -->
456                <!-- TMPL_IF NAME="renew_error_on_reserve" -->
457                        On Hold
458                 <!-- /TMPL_IF -->
459                 <!-- TMPL_IF NAME="renew_error_too_many" -->
460                        Too Many Renewals
461                 <!-- /TMPL_IF -->
462             <!-- TMPL_IF NAME="can_confirm" -->
463                 </span>
464             <!-- /TMPL_IF -->
465         <!-- /TMPL_IF -->
466         <!-- TMPL_ELSE -->
467             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
468                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
469                 <!-- TMPL_IF NAME="od" -->
470                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
471                 <!-- TMPL_ELSE -->
472                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
473                 <!-- /TMPL_IF -->
474                 </span>
475                 <span class="renewals-disabled">
476             <!-- /TMPL_IF -->
477                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
478                         On Hold
479                 <!-- /TMPL_IF -->
480                 <!-- TMPL_IF NAME="renew_error_too_many" -->
481                         Too Many Renewals
482                 <!-- /TMPL_IF -->
483             <!-- TMPL_IF NAME="can_confirm" -->
484                 </span>
485             <!-- /TMPL_IF -->
486         <!-- /TMPL_IF -->
487         </td>
488                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
489                 <!-- TMPL_IF NAME="renew_failed" -->
490                 <td>Renewal Failed</td>
491                 <!-- /TMPL_IF -->
492     </tr>
493     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
494     <!-- /if todayissues --><!-- /TMPL_IF --> 
495 <!-- TMPL_IF NAME="previssues" -->
496 <!-- TMPL_IF NAME="todayissues" --><tr><th colspan="7"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
497 <tr><th class="{sorter: false}" colspan="7"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
498         <tbody>
499 <!-- /TMPL_IF -->
500     <!-- TMPL_LOOP NAME="previssues" -->
501     <!-- TMPL_IF NAME="__odd__" -->
502         <tr>
503     <!-- TMPL_ELSE -->
504         <tr class="highlight">
505     <!-- /TMPL_IF -->
506         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
507         <!-- TMPL_VAR NAME="dd" -->
508         </td>
509         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR NAME="title" escape="html" --></a><br /><!-- TMPL_IF NAME="author" --><!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="itemnotes" -->- <!-- TMPL_VAR name="itemnotes" --><!-- /TMPL_IF --></td>
510         <td>
511             <!-- TMPL_VAR NAME="itemtype" -->
512             <!-- TMPL_IF NAME="itemtype_image" -->
513             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
514             <!-- /TMPL_IF -->
515         </td>
516         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
517         <td><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>
518         <td>
519         <!-- TMPL_IF NAME="can_renew" -->
520         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
521         <!-- TMPL_IF NAME="od" -->
522             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
523           <!-- TMPL_ELSE -->
524             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
525           <!-- /TMPL_IF -->
526         <!-- TMPL_ELSE -->
527             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
528                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
529                 <!-- TMPL_IF NAME="od" -->
530                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
531                 <!-- TMPL_ELSE -->
532                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
533                 <!-- /TMPL_IF -->
534                 </span>
535                 <span class="renewals-disabled">
536             <!-- /TMPL_IF -->
537                <!-- TMPL_IF NAME="renew_error_on_reserve" -->
538                        On Hold
539                 <!-- /TMPL_IF -->
540                 <!-- TMPL_IF NAME="renew_error_too_many" -->
541                        Too Many Renewals
542                 <!-- /TMPL_IF -->
543             <!-- TMPL_IF NAME="can_confirm" -->
544                 </span>
545             <!-- /TMPL_IF -->
546         <!-- /TMPL_IF -->
547         <!-- TMPL_ELSE -->
548             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
549                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
550                 <!-- TMPL_IF NAME="od" -->
551                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
552                 <!-- TMPL_ELSE -->
553                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
554                 <!-- /TMPL_IF -->
555                 </span>
556                 <span class="renewals-disabled">
557             <!-- /TMPL_IF -->
558                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
559                         On Hold
560                 <!-- /TMPL_IF -->
561                 <!-- TMPL_IF NAME="renew_error_too_many" -->
562                         Too Many Renewals
563                 <!-- /TMPL_IF -->
564             <!-- TMPL_IF NAME="can_confirm" -->
565                 </span>
566             <!-- /TMPL_IF -->
567         <!-- /TMPL_IF -->
568         </td>
569                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
570                 <!-- TMPL_IF NAME="renew_failed" -->
571                 <td>Renewal Failed</td>
572                 <!-- /TMPL_IF -->
573
574     </tr>
575     <!-- /loop previssues --><!-- /TMPL_LOOP -->
576 <!--/if previssues --><!-- /TMPL_IF -->
577         </tbody>
578     </table>
579     <!--TMPL_IF NAME="issuecount"-->
580     <fieldset class="action">
581     <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
582         <label for="override_limit">Override Renewal Limit:</label>
583         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
584     <!-- /TMPL_IF -->
585     <input type="submit" name="renew_checked" value="Renew Checked Items" />
586     <input type="submit" name="renew_all" value="Renew All" />
587     </fieldset>
588         <!-- /TMPL_IF -->
589 </form>
590 <!-- TMPL_ELSE -->
591 <p>Patron has nothing checked out.</p>
592 <!-- /TMPL_IF -->
593 </div>
594
595
596 <div id="reserves">
597 <!-- TMPL_IF NAME="reservloop" -->
598     <table id="holdst">
599         <thead><tr>
600             <th>Hold date</th>
601             <th>Title</th>
602             <th>Item Type</th>
603             <th>Call Number</th>
604                         <th>Barcode</th>
605             <th>Priority</th>
606         </tr></thead>
607                 <tbody>
608         <!-- TMPL_LOOP NAME="reservloop" -->
609         <tr class="<!-- TMPL_VAR NAME="color" -->">
610                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
611                     <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></td>
612                                         <td><!-- TMPL_VAR NAME="itemtype" --></td>
613                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
614                                         <td><em><!-- TMPL_IF name="barcodereserv" -->Item <!-- TMPL_VAR NAME="barcodereserv" -->
615                         <!-- /TMPL_IF --><!-- TMPL_IF name="waiting" --> <strong>waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
616                         <!-- /TMPL_IF -->
617                         <!-- TMPL_IF name="transfered" --> <strong>in transit</strong> from
618                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" -->
619                         <!-- /TMPL_IF -->
620                         <!-- TMPL_IF name="nottransfered" --> hasn't been transfered yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
621                         <!-- /TMPL_IF --></em></td>
622                     <td>
623                         <!-- TMPL_IF NAME="waitingposition" -->
624                         Hold priority
625                         <b> <!-- TMPL_VAR NAME="waitingposition" --> </b><!-- /TMPL_IF -->
626                     </td>
627             </tr>
628         <!-- /TMPL_LOOP --></tbody>
629     </table>
630         <!-- TMPL_ELSE -->
631         <p>Patron has no pending holds.</p>
632 <!-- /TMPL_IF -->
633 </div> <!-- reservesloop -->
634
635 <!-- /TMPL_IF --> <!-- borrowernumber -->
636 </div></div>
637 <!--/TMPL_IF -->
638
639
640
641 </div>
642 </div>
643 <!-- TMPL_UNLESS NAME="CGIselectborrower" --><!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b">
644 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
645 </div><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
646 </div>
647 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->