Bug 2842: ->regexp('syspref') failed for users of iso dateformat.
[koha_ffzg] / 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 &quot;<!-- TMPL_VAR NAME="INVALID_DATE" -->&quot; is invalid</li>
159         <!-- /TMPL_IF -->
160
161         <!-- TMPL_IF NAME="UNKNOWN_BARCODE" -->
162             <li>The barcode was not found</li>
163         <!-- /TMPL_IF -->
164
165         <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
166             <li>Item not for loan</li>
167         <!-- /TMPL_IF -->
168
169         <!-- TMPL_IF NAME="WTHDRAWN" -->
170             <li>Item has been withdrawn</li>
171         <!-- /TMPL_IF -->
172
173         <!-- TMPL_IF NAME="RESTRICTED" -->
174             <li>Item is restricted</li>
175         <!-- /TMPL_IF -->
176
177         <!-- TMPL_IF NAME="GNA" -->
178             <li>Patron's address is in doubt</li>
179         <!-- /TMPL_IF -->
180
181         <!-- TMPL_IF NAME="CARD_LOST" -->
182             <li>Patron's card is lost</li>
183         <!-- /TMPL_IF -->
184
185         <!-- TMPL_IF NAME="DEBARRED" -->
186             <li>Patron is restricted</li>
187         <!-- /TMPL_IF -->
188
189         <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
190             <li>No more renewals possible</li>
191         <!-- /TMPL_IF -->
192
193         <!-- TMPL_IF NAME="EXPIRED" -->
194             <li>Patron's card is expired</li>
195         <!-- /TMPL_IF -->
196
197         <!-- TMPL_IF NAME="NOTSAMEBRANCH" -->
198             <li>This item belongs to <!-- TMPL_VAR NAME="itemhomebranch" --> and cannot be issued from this location.</li>
199         <!-- /TMPL_IF -->
200         </ul>
201
202     <!-- TMPL_IF NAME="memberofinstution" -->
203     <p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
204     <!-- /TMPL_IF -->
205
206 </div></div>
207     <!--/TMPL_IF --> <!-- /impossible -->
208
209 <!-- TMPL_IF NAME="issued" -->
210 <p>Item Checked out</p>
211 <!-- /TMPL_IF -->
212
213 <!-- TMPL_IF NAME="message" -->
214 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
215 <h4>
216 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
217 </h4>
218 <!-- /TMPL_IF -->
219
220
221 <!-- TMPL_IF NAME="CGIselectborrower" -->
222 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
223
224 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
225 <fieldset id="circ_circulation_selectborrower" class="brief">
226     <legend>Patron selection</legend>
227
228     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
229     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
230
231 <ol>    <li>
232     <label for="borrowernumber">Select a patron: </label>
233     <!-- TMPL_VAR name="CGIselectborrower" -->
234     </li>
235 </ol>
236 <p><input type="submit" value="Select" /></p>
237 </fieldset>
238 </form>
239 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
240
241 <!-- BARCODE ENTRY -->
242
243 <!-- TMPL_IF NAME="borrowernumber" -->
244 <div class="yui-g">
245 <!-- TMPL_UNLESS NAME="noissues" -->
246 <!-- TMPL_IF NAME="flagged" -->
247 <div class="yui-u first">
248 <!-- TMPL_ELSE -->
249 <div><!-- /TMPL_IF --><form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
250 <fieldset id="circ_circulation_issue">
251     <label for="barcode">Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->) </label>
252         <div class="hint">Enter item barcode:</div>
253
254         <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> <input type="submit" value="Check Out" />
255
256     <!-- TMPL_IF NAME="SpecifyDueDate" --><div class="date-select">
257         <div class="hint">Specify Due Date:</div>
258                 <!-- 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="" />
259 <!-- /TMPL_IF -->
260                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar"  border="0" id="CalendarDueDate" style="cursor: pointer;" />
261              <script language="JavaScript" type="text/javascript">
262                          //<![CDATA[
263                    function validate1(date) {
264                          var today = new Date();
265                          if ( date < today ) {
266                              return true;
267                           } else {
268                              return false;
269                           }
270                      };
271                      function refocus(calendar) {
272                         document.getElementById('barcode').focus();
273                         calendar.hide();
274                      };
275                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
276                      Calendar.setup(
277                           {
278                              inputField : "duedatespec",
279                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
280                              button : "CalendarDueDate",
281                              disableFunc : validate1,
282                              dateStatusFunc : validate1,
283                              onClose : refocus
284                            }
285                         );
286                                 //]]>
287                  </script>
288
289           <label for="stickyduedate"> Remember for Session:</label>
290 <!-- TMPL_IF NAME="stickyduedate" -->
291 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
292 <!-- TMPL_ELSE -->
293 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
294 <!-- /TMPL_IF -->
295           <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;" />
296 </div><!-- /TMPL_IF -->
297           <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
298           <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
299           <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
300           <input type="hidden" name="print" value="maybe" />
301           <input type="hidden" name="debt_confirmed" value="<!-- TMPL_VAR NAME="debt_confirmed" -->" />
302                 <!-- TMPL_IF NAME="CHARGES" -->
303                         <input type="hidden" name="charges" value="yes" />
304                         <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
305                 <!-- /TMPL_IF -->
306 </fieldset>
307 </form></div><!-- /TMPL_UNLESS --><!-- /unless noissues -->
308
309 <!-- TMPL_IF NAME="noissues" --><div><!-- TMPL_ELSE --><div class="yui-u"><!-- /TMPL_IF -->
310
311     <!-- TMPL_IF NAME="flagged" -->
312                 <!-- TMPL_IF NAME="noissues" -->
313                  <h4>Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h4>
314         <div id="circmessages" class="circmessage warning">
315                 <!-- TMPL_ELSE -->
316         <div id="circmessages" class="circmessage attention">
317                 <!-- /TMPL_IF -->
318
319                 <h3><!-- TMPL_IF NAME="noissues" -->Cannot Check Out!<!-- TMPL_ELSE -->Attention:<!-- /TMPL_IF --></h3>
320                 <ul>
321
322                         <!-- TMPL_IF NAME = "warndeparture" -->
323                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
324                         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>
325
326                         </li>
327                         <!-- /TMPL_IF -->
328
329                         <!-- TMPL_IF NAME="returnbeforeexpiry" -->
330                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
331                          expiry date is before the date due, the date due will be set to the expiry date
332                          </li>
333                         <!-- /TMPL_IF -->
334
335                         <!-- TMPL_IF NAME = "expired" -->
336                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
337                         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>
338
339                         </li>
340                         <!-- /TMPL_IF -->
341
342             <!-- TMPL_IF NAME="gna" -->
343                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
344                         <!-- /TMPL_IF -->
345
346             <!-- TMPL_IF NAME="lost" -->
347                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
348                         <!-- /TMPL_IF -->
349
350             <!-- TMPL_IF NAME="dbarred" --><li class="blocker">
351                <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>
352 </li><!-- /TMPL_IF -->
353
354                 <!-- 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>
355             <!-- /TMPL_IF -->
356
357                 <!-- TMPL_IF NAME="charges" -->
358                 <!-- TMPL_IF NAME="charges_is_blocker" -->
359                                 <li class="blocker">
360                 <!-- TMPL_ELSE -->
361                                 <li>
362                 <!-- /TMPL_IF -->
363             <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>.
364                 <!-- TMPL_IF NAME="charges_is_blocker" -->
365                     Checkouts are blocked because fine balance is over the limit.
366                 <!-- /TMPL_IF -->
367             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li>
368                         <!-- /TMPL_IF -->
369
370                 <!-- TMPL_IF NAME="credits" -->
371                         <li><span class="circ-hlt">Credits:</span> Patron has a credit</li>
372                         <!-- /TMPL_IF -->
373
374
375
376                         </ul>
377         </div>
378
379                         <!-- TMPL_IF NAME="WaitingReserveLoop" -->
380                         <div id="holdswaiting" class="circmessage">
381                     <h4>Holds waiting:</h4>
382                                 <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
383                                     <ul> 
384                                         <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"-->.
385                                     <!-- TMPL_IF NAME="waitingat" -->
386                                         <br /><!-- TMPL_IF NAME="waitinghere" --><strong class="waitinghere"><!-- TMPL_ELSE --><strong><!-- /TMPL_IF -->Waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
387                                     <!-- /TMPL_IF -->
388                                         </li>
389                                     </ul>
390                             <!-- /TMPL_LOOP -->
391                         </div>
392                         <!-- /If WaitingReserveLoop --><!-- /TMPL_IF -->
393         <!-- TMPL_IF name="notes" -->
394                         <div id="circnotes" class="circmessage">
395                         <h4>Notes:</h4>
396             <p><span class="circ-hlt"><!-- TMPL_VAR name="notesmsg" --></span></p>
397                         </div>
398     <!-- /If notes --><!-- /TMPL_IF -->
399      <!-- /If flagged --><!-- /TMPL_IF -->
400
401
402 </div>
403 </div>
404
405 <div class="yui-g"><div id="patronlists" class="toptabs">
406
407 <ul>
408 <li>    <!--TMPL_IF NAME="issuecount"-->
409             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts"><!-- TMPL_VAR NAME="issuecount"--> Checkout(s)</a>
410     <!-- TMPL_ELSE -->
411             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts">0 Checkouts</a>
412     <!-- /TMPL_IF --></li>
413 <li><!-- TMPL_IF NAME="countreserv"-->
414             <a href="/cgi-bin/koha/circ/circulation.pl#reserves"><!--TMPL_VAR NAME="countreserv"--> Holds(s)</a>
415     <!-- TMPL_ELSE -->
416             <a href="/cgi-bin/koha/circ/circulation.pl#reserves">0 Holds</a>
417     <!-- /TMPL_IF --></li>
418
419 </ul>
420
421 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
422 <div id="checkouts">
423 <!--TMPL_IF NAME="issuecount"-->
424     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
425     <input type="hidden" value="circ" name="destination" />
426     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
427     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
428     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
429         <table id="issuest">
430     <thead><tr>
431         <th>Due date</th>
432         <th>Title</th>
433         <th>Item Type</th>
434         <th>Call no</th>
435         <th>Barcode</th>
436         <th>Renewals</th>
437         <th>Renew?</th>
438         <th>Check In?</th>
439     </tr>
440 <!-- TMPL_IF NAME="todayissues" --></thead>
441         <tbody>
442
443     <!-- TMPL_LOOP NAME="todayissues" -->
444     <!-- TMPL_IF NAME="__odd__" -->
445     <tr>
446     <!-- TMPL_ELSE -->
447     <tr class="highlight">
448     <!-- /TMPL_IF -->
449         <td><!-- TMPL_VAR NAME="dd" --></td>
450         <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>
451         <td>
452             <!-- TMPL_VAR NAME="itemtype" -->
453            <!-- TMPL_UNLESS NAME="noItemTypeImages" --> <!-- TMPL_IF NAME="itemtype_image" -->
454             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
455             <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
456         </td>
457         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
458         <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>
459         <td><!-- TMPL_VAR NAME="renewals" --></td>
460         <td>
461         <!-- TMPL_IF NAME="can_renew" -->
462         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
463         <!-- TMPL_IF NAME="od" -->
464             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
465         <!-- TMPL_ELSE -->
466             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
467         <!-- /TMPL_IF -->
468         <!-- TMPL_ELSE -->
469             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
470                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
471                 <!-- TMPL_IF NAME="od" -->
472                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
473                 <!-- TMPL_ELSE -->
474                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
475                 <!-- /TMPL_IF -->
476                 </span>
477                 <span class="renewals-disabled">
478             <!-- /TMPL_IF -->
479                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
480                         On Hold
481                 <!-- /TMPL_IF -->
482                 <!-- TMPL_IF NAME="renew_error_too_many" -->
483                         Too Many Renewals
484                 <!-- /TMPL_IF -->
485             <!-- TMPL_IF NAME="can_confirm" -->
486                 </span>
487             <!-- /TMPL_IF -->
488         <!-- /TMPL_IF -->
489         </td>
490                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
491                 <!-- TMPL_IF NAME="renew_failed" -->
492                 <td>Renewal Failed</td>
493                 <!-- /TMPL_IF -->
494     </tr>
495     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
496     <!-- /if todayissues --><!-- /TMPL_IF --> 
497 <!-- TMPL_IF NAME="previssues" -->
498 <!-- TMPL_IF NAME="todayissues" --><tr><th colspan="8"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
499 <tr><th class="{sorter: false}" colspan="8"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
500         <tbody>
501 <!-- /TMPL_IF -->
502     <!-- TMPL_LOOP NAME="previssues" -->
503     <!-- TMPL_IF NAME="__odd__" -->
504         <tr>
505     <!-- TMPL_ELSE -->
506         <tr class="highlight">
507     <!-- /TMPL_IF -->
508         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
509         <!-- TMPL_VAR NAME="dd" -->
510         </td>
511         <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>
512         <td>
513             <!-- TMPL_VAR NAME="itemtype" -->
514             <!-- TMPL_IF NAME="itemtype_image" -->
515             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
516             <!-- /TMPL_IF -->
517         </td>
518         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
519         <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>
520         <td><!-- TMPL_VAR NAME="renewals" --></td>
521         <td>
522         <!-- TMPL_IF NAME="can_renew" -->
523         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
524         <!-- TMPL_IF NAME="od" -->
525             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
526         <!-- TMPL_ELSE -->
527             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
528         <!-- /TMPL_IF -->
529         <!-- TMPL_ELSE -->
530             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
531                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
532                 <!-- TMPL_IF NAME="od" -->
533                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
534                 <!-- TMPL_ELSE -->
535                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
536                 <!-- /TMPL_IF -->
537                 </span>
538                 <span class="renewals-disabled">
539             <!-- /TMPL_IF -->
540                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
541                         On Hold
542                 <!-- /TMPL_IF -->
543                 <!-- TMPL_IF NAME="renew_error_too_many" -->
544                         Too Many Renewals
545                 <!-- /TMPL_IF -->
546             <!-- TMPL_IF NAME="can_confirm" -->
547                 </span>
548             <!-- /TMPL_IF -->
549         <!-- /TMPL_IF -->
550         </td>
551                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
552                 <!-- TMPL_IF NAME="renew_failed" -->
553                 <td>Renewal Failed</td>
554                 <!-- /TMPL_IF -->
555
556     </tr>
557     <!-- /loop previssues --><!-- /TMPL_LOOP -->
558 <!--/if previssues --><!-- /TMPL_IF -->
559       </tbody>
560     </table>
561     <!--TMPL_IF NAME="issuecount"-->
562     <fieldset class="action">
563     <!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
564         <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
565         <label for="override_limit">Override Renewal Limit:</label>
566         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
567         <!-- /TMPL_IF -->
568     <!-- /TMPL_IF -->
569     <input type="submit" name="renew_checked" value="Renew Checked Items" />
570     <input type="submit" name="renew_all" value="Renew All" />
571     </fieldset>
572     <!-- /TMPL_IF -->
573 </form>
574 <!-- TMPL_ELSE -->
575 <p>Patron has nothing checked out.</p>
576 <!-- /TMPL_IF -->
577 </div>
578
579
580 <div id="reserves">
581 <!-- TMPL_IF NAME="reservloop" -->
582     <table id="holdst">
583         <thead><tr>
584             <th>Hold date</th>
585             <th>Title</th>
586             <th>Item Type</th>
587             <th>Call Number</th>
588                         <th>Barcode</th>
589             <th>Priority</th>
590         </tr></thead>
591                 <tbody>
592         <!-- TMPL_LOOP NAME="reservloop" -->
593         <tr class="<!-- TMPL_VAR NAME="color" -->">
594                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
595                     <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>
596                                         <td><!-- TMPL_VAR NAME="itemtype" --></td>
597                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
598                                         <td><em><!-- TMPL_IF name="barcodereserv" -->Item <!-- TMPL_VAR NAME="barcodereserv" -->
599                         <!-- /TMPL_IF --><!-- TMPL_IF name="waiting" --> <strong>waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
600                         <!-- /TMPL_IF -->
601                         <!-- TMPL_IF name="transfered" --> <strong>in transit</strong> from
602                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" -->
603                         <!-- /TMPL_IF -->
604                         <!-- TMPL_IF name="nottransfered" --> hasn't been transfered yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
605                         <!-- /TMPL_IF --></em></td>
606                     <td>
607                         <!-- TMPL_IF NAME="waitingposition" -->
608                         Hold priority
609                         <b> <!-- TMPL_VAR NAME="waitingposition" --> </b><!-- /TMPL_IF -->
610                     </td>
611             </tr>
612         <!-- /TMPL_LOOP --></tbody>
613     </table>
614         <!-- TMPL_ELSE -->
615         <p>Patron has no pending holds.</p>
616 <!-- /TMPL_IF -->
617 </div> <!-- reservesloop -->
618
619 <!-- /TMPL_IF --> <!-- borrowernumber -->
620 </div></div>
621 <!--/TMPL_IF -->
622
623
624
625 </div>
626 </div>
627 <!-- TMPL_UNLESS NAME="CGIselectborrower" --><!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b">
628 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
629 </div><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
630 </div>
631 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->