Adding javascript to let user click table cell to check containing checkbox.
[koha-ffzg.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     <div class="date-select">
256         <div class="hint">Specify Due Date:</div><input type="text" size="10" id="duedatespec" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
257                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar"  border="0" id="CalendarDueDate" style="cursor: pointer;" />
258              <script language="JavaScript" type="text/javascript">
259                          //<![CDATA[
260                    function validate1(date) {
261                          var today = new Date();
262                          if ( date < today ) {
263                              return true;
264                           } else {
265                              return false;
266                           }
267                      };
268                      function refocus(calendar) {
269                         document.getElementById('barcode').focus();
270                         calendar.hide();
271                      };
272                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
273                      Calendar.setup(
274                           {
275                              inputField : "duedatespec",
276                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
277                              button : "CalendarDueDate",
278                              disableFunc : validate1,
279                              dateStatusFunc : validate1,
280                              onClose : refocus
281                            }
282                         );
283                                 //]]>
284                  </script>
285
286           <label for="stickyduedate"> Remember for Session:</label>
287 <!-- TMPL_IF NAME="stickyduedate" -->
288 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="1" />
289 <!-- TMPL_ELSE -->
290 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
291 <!-- /TMPL_IF -->
292           <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;" />
293           <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
294           <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
295           <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
296           <input type="hidden" name="print" value="maybe" />
297           <input type="hidden" name="debt_confirmed" value="<!-- TMPL_VAR NAME="debt_confirmed" -->" />
298                 <!-- TMPL_IF NAME="CHARGES" -->
299                         <input type="hidden" name="charges" value="yes" />
300                         <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
301                 <!-- /TMPL_IF -->
302 </div>
303 </fieldset>
304 </form></div><!-- /TMPL_UNLESS --><!-- /unless noissues -->
305
306 <!-- TMPL_IF NAME="noissues" --><div><!-- TMPL_ELSE --><div class="yui-u"><!-- /TMPL_IF -->
307
308     <!-- TMPL_IF NAME="flagged" -->
309                 <!-- TMPL_IF NAME="noissues" -->
310                  <h4>Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h4>
311         <div id="circmessages" class="circmessage warning">
312                 <!-- TMPL_ELSE -->
313         <div id="circmessages" class="circmessage attention">
314                 <!-- /TMPL_IF -->
315
316                 <h3><!-- TMPL_IF NAME="noissues" -->Cannot Check Out!<!-- TMPL_ELSE -->Attention:<!-- /TMPL_IF --></h3>
317                 <ul>
318
319                         <!-- TMPL_IF NAME = "warndeparture" -->
320                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
321                         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>
322
323                         </li>
324                         <!-- /TMPL_IF -->
325
326                         <!-- TMPL_IF NAME="returnbeforeexpiry" -->
327                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
328                          expiry date is before the date due, the date due will be set to the expiry date
329                          </li>
330                         <!-- /TMPL_IF -->
331
332                         <!-- TMPL_IF NAME = "expired" -->
333                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
334                         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>
335
336                         </li>
337                         <!-- /TMPL_IF -->
338
339             <!-- TMPL_IF NAME="gna" -->
340                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
341                         <!-- /TMPL_IF -->
342
343             <!-- TMPL_IF NAME="lost" -->
344                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
345                         <!-- /TMPL_IF -->
346
347             <!-- TMPL_IF NAME="dbarred" --><li class="blocker">
348                <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>
349 </li><!-- /TMPL_IF -->
350
351                 <!-- 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>
352             <!-- /TMPL_IF -->
353
354                 <!-- TMPL_IF NAME="charges" -->
355                 <!-- TMPL_IF NAME="charges_is_blocker" -->
356                                 <li class="blocker">
357                 <!-- TMPL_ELSE -->
358                                 <li>
359                 <!-- /TMPL_IF -->
360             <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>.
361                 <!-- TMPL_IF NAME="charges_is_blocker" -->
362                     Checkouts are blocked because fine balance is over the limit.
363                 <!-- /TMPL_IF -->
364             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li>
365                         <!-- /TMPL_IF -->
366
367                 <!-- TMPL_IF NAME="credits" -->
368                         <li><span class="circ-hlt">Credits:</span> Patron has a credit</li>
369                         <!-- /TMPL_IF -->
370
371
372
373                         </ul>
374         </div>
375
376                         <!-- TMPL_IF NAME="WaitingReserveLoop" -->
377                         <div id="holdswaiting" class="circmessage">
378                     <h4>Holds waiting:</h4>
379                                 <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
380                                     <ul> 
381                                         <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"-->.
382                                     <!-- TMPL_IF NAME="waitingat" -->
383                                         <br /><!-- TMPL_IF NAME="waitinghere" --><strong class="waitinghere"><!-- TMPL_ELSE --><strong><!-- /TMPL_IF -->Waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
384                                     <!-- /TMPL_IF -->
385                                         </li>
386                                     </ul>
387                             <!-- /TMPL_LOOP -->
388                         </div>
389                         <!-- /If WaitingReserveLoop --><!-- /TMPL_IF -->
390         <!-- TMPL_IF name="notes" -->
391                         <div id="circnotes" class="circmessage">
392                         <h4>Notes:</h4>
393             <p><span class="circ-hlt"><!-- TMPL_VAR name="notesmsg" --></span></p>
394                         </div>
395     <!-- /If notes --><!-- /TMPL_IF -->
396      <!-- /If flagged --><!-- /TMPL_IF -->
397
398
399 </div>
400 </div>
401
402 <div class="yui-g"><div id="patronlists" class="toptabs">
403
404 <ul>
405 <li>    <!--TMPL_IF NAME="issuecount"-->
406             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts"><!-- TMPL_VAR NAME="issuecount"--> Checkout(s)</a>
407     <!-- TMPL_ELSE -->
408             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts">0 Checkouts</a>
409     <!-- /TMPL_IF --></li>
410 <li><!-- TMPL_IF NAME="countreserv"-->
411             <a href="/cgi-bin/koha/circ/circulation.pl#reserves"><!--TMPL_VAR NAME="countreserv"--> Holds(s)</a>
412     <!-- TMPL_ELSE -->
413             <a href="/cgi-bin/koha/circ/circulation.pl#reserves">0 Holds</a>
414     <!-- /TMPL_IF --></li>
415
416 </ul>
417
418 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
419 <div id="checkouts">
420 <!--TMPL_IF NAME="issuecount"-->
421     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
422     <input type="hidden" value="circ" name="destination" />
423     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
424     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
425     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
426         <table id="issuest">
427     <thead><tr>
428         <th>Due date</th>
429         <th>Title</th>
430         <th>Item Type</th>
431         <th>Call no</th>
432         <th>Barcode</th>
433         <th>Renew?</th>
434                 <th>Check In?</th>
435     </tr>
436 <!-- TMPL_IF NAME="todayissues" --></thead>
437         <tbody>
438
439     <!-- TMPL_LOOP NAME="todayissues" -->
440     <!-- TMPL_IF NAME="__odd__" -->
441     <tr>
442     <!-- TMPL_ELSE -->
443     <tr class="highlight">
444     <!-- /TMPL_IF -->
445         <td><!-- TMPL_VAR NAME="dd" --></td>
446         <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>
447         <td>
448             <!-- TMPL_VAR NAME="itemtype" -->
449            <!-- TMPL_UNLESS NAME="noItemTypeImages" --> <!-- TMPL_IF NAME="itemtype_image" -->
450             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
451             <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
452         </td>
453         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
454         <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>
455         <td>
456         <!-- TMPL_IF NAME="can_renew" -->
457         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
458         <!-- TMPL_IF NAME="od" -->
459             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
460         <!-- TMPL_ELSE -->
461             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
462         <!-- /TMPL_IF -->
463         <!-- TMPL_ELSE -->
464             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
465                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
466                 <!-- TMPL_IF NAME="od" -->
467                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
468                 <!-- TMPL_ELSE -->
469                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
470                 <!-- /TMPL_IF -->
471                 </span>
472                 <span class="renewals-disabled">
473             <!-- /TMPL_IF -->
474                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
475                         On Hold
476                 <!-- /TMPL_IF -->
477                 <!-- TMPL_IF NAME="renew_error_too_many" -->
478                         Too Many Renewals
479                 <!-- /TMPL_IF -->
480             <!-- TMPL_IF NAME="can_confirm" -->
481                 </span>
482             <!-- /TMPL_IF -->
483         <!-- /TMPL_IF -->
484         </td>
485                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
486                 <!-- TMPL_IF NAME="renew_failed" -->
487                 <td>Renewal Failed</td>
488                 <!-- /TMPL_IF -->
489     </tr>
490     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
491     <!-- /if todayissues --><!-- /TMPL_IF --> 
492 <!-- TMPL_IF NAME="previssues" -->
493 <!-- TMPL_IF NAME="todayissues" --><tr><th colspan="7"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
494 <tr><th class="{sorter: false}" colspan="7"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
495         <tbody>
496 <!-- /TMPL_IF -->
497     <!-- TMPL_LOOP NAME="previssues" -->
498     <!-- TMPL_IF NAME="__odd__" -->
499         <tr>
500     <!-- TMPL_ELSE -->
501         <tr class="highlight">
502     <!-- /TMPL_IF -->
503         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
504         <!-- TMPL_VAR NAME="dd" -->
505         </td>
506         <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>
507         <td>
508             <!-- TMPL_VAR NAME="itemtype" -->
509             <!-- TMPL_IF NAME="itemtype_image" -->
510             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
511             <!-- /TMPL_IF -->
512         </td>
513         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
514         <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>
515         <td>
516         <!-- TMPL_IF NAME="can_renew" -->
517         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
518         <!-- TMPL_IF NAME="od" -->
519             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
520         <!-- TMPL_ELSE -->
521             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
522         <!-- /TMPL_IF -->
523         <!-- TMPL_ELSE -->
524             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
525                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
526                 <!-- TMPL_IF NAME="od" -->
527                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
528                 <!-- TMPL_ELSE -->
529                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
530                 <!-- /TMPL_IF -->
531                 </span>
532                 <span class="renewals-disabled">
533             <!-- /TMPL_IF -->
534                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
535                         On Hold
536                 <!-- /TMPL_IF -->
537                 <!-- TMPL_IF NAME="renew_error_too_many" -->
538                         Too Many Renewals
539                 <!-- /TMPL_IF -->
540             <!-- TMPL_IF NAME="can_confirm" -->
541                 </span>
542             <!-- /TMPL_IF -->
543         <!-- /TMPL_IF -->
544         </td>
545                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
546                 <!-- TMPL_IF NAME="renew_failed" -->
547                 <td>Renewal Failed</td>
548                 <!-- /TMPL_IF -->
549
550     </tr>
551     <!-- /loop previssues --><!-- /TMPL_LOOP -->
552 <!--/if previssues --><!-- /TMPL_IF -->
553         </tbody>
554     </table>
555     <!--TMPL_IF NAME="issuecount"-->
556     <fieldset class="action">
557     <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
558         <label for="override_limit">Override Renewal Limit:</label>
559         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
560     <!-- /TMPL_IF -->
561     <input type="submit" name="renew_checked" value="Renew Checked Items" />
562     <input type="submit" name="renew_all" value="Renew All" />
563     </fieldset>
564         <!-- /TMPL_IF -->
565 </form>
566 <!-- TMPL_ELSE -->
567 <p>Patron has nothing checked out.</p>
568 <!-- /TMPL_IF -->
569 </div>
570
571
572 <div id="reserves">
573 <!-- TMPL_IF NAME="reservloop" -->
574     <table id="holdst">
575         <thead><tr>
576             <th>Hold date</th>
577             <th>Title</th>
578             <th>Item Type</th>
579             <th>Call Number</th>
580                         <th>Barcode</th>
581             <th>Priority</th>
582         </tr></thead>
583                 <tbody>
584         <!-- TMPL_LOOP NAME="reservloop" -->
585         <tr class="<!-- TMPL_VAR NAME="color" -->">
586                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
587                     <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>
588                                         <td><!-- TMPL_VAR NAME="itemtype" --></td>
589                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
590                                         <td><em><!-- TMPL_IF name="barcodereserv" -->Item <!-- TMPL_VAR NAME="barcodereserv" -->
591                         <!-- /TMPL_IF --><!-- TMPL_IF name="waiting" --> <strong>waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
592                         <!-- /TMPL_IF -->
593                         <!-- TMPL_IF name="transfered" --> <strong>in transit</strong> from
594                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" -->
595                         <!-- /TMPL_IF -->
596                         <!-- TMPL_IF name="nottransfered" --> hasn't been transfered yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
597                         <!-- /TMPL_IF --></em></td>
598                     <td>
599                         <!-- TMPL_IF NAME="waitingposition" -->
600                         Hold priority
601                         <b> <!-- TMPL_VAR NAME="waitingposition" --> </b><!-- /TMPL_IF -->
602                     </td>
603             </tr>
604         <!-- /TMPL_LOOP --></tbody>
605     </table>
606         <!-- TMPL_ELSE -->
607         <p>Patron has no pending holds.</p>
608 <!-- /TMPL_IF -->
609 </div> <!-- reservesloop -->
610
611 <!-- /TMPL_IF --> <!-- borrowernumber -->
612 </div></div>
613 <!--/TMPL_IF -->
614
615
616
617 </div>
618 </div>
619 <!-- TMPL_UNLESS NAME="CGIselectborrower" --><!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b">
620 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
621 </div><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
622 </div>
623 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->