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