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