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