Another try at fixing Bug 2949.
[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' },4:{sorter:false},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
64 <!-- TMPL_IF NAME="CGIselectborrower" -->
65 <div id="doc" class="yui-t7">
66    
67    <div id="bd">
68         <div id="yui-main">
69         <div class="yui-g">
70 <!-- TMPL_ELSE -->
71 <div id="doc3" class="yui-t2">
72    
73    <div id="bd">
74 <!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b"><!-- TMPL_INCLUDE NAME="circ-menu.inc" --></div><!-- /TMPL_IF -->
75         <div id="yui-main">
76         <div class="yui-b">
77 <!-- /TMPL_IF -->
78
79 <!-- TMPL_IF NAME="borrowernumber" -->
80 <!-- TMPL_INCLUDE NAME="circ-toolbar.inc" -->
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
84 <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
85 <div class="yui-g">
86 <div id="circ_needsconfirmation" class="dialog alert">
87 <h3>Please Confirm Checkout</h3>
88 <ul>
89 <!-- TMPL_IF NAME="DEBT" --><li>The patron has a debt of $<!-- TMPL_VAR name="DEBT" --></li><!-- /TMPL_IF -->
90 <!-- TMPL_IF NAME="RENEW_ISSUE" --><li>Item is currently checked out to this patron.  Renew?</li><!-- /TMPL_IF -->
91 <!-- TMPL_IF NAME="RESERVE_WAITING" --><li>Item is consigned for <!-- TMPL_VAR NAME="RESERVE_WAITING" --></li><!-- /TMPL_IF -->
92 <!-- TMPL_IF NAME="RESERVED" --><li>Item is on reserve for <!-- TMPL_VAR NAME="RESERVED" --></li><!-- /TMPL_IF -->
93 <!-- 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 -->
94 <!-- TMPL_IF NAME="TOO_MANY" --><li>Too many checked out (already checked out / max : <!-- TMPL_VAR name="TOO_MANY" -->)</li><!-- /TMPL_IF -->
95 <!-- TMPL_IF NAME="OVERDUES" --><li><!--TMPL_VAR Name="OVERDUES"--> Overdues</li><!-- /TMPL_IF -->
96 <!-- TMPL_IF NAME="NOT_FOR_LOAN_CAN_FORCE" --><li>Item not for loan, are you sure you want to check it out ?</p><!-- /TMPL_IF -->
97 </ul>
98
99 <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
100 <!-- TMPL_IF NAME="RESERVED" -->    <p>
101     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
102     <label for="cancelreserve">Cancel Reserve</label>
103     </p><!-- /TMPL_IF -->
104 <!-- TMPL_IF NAME="RESERVE_WAITING" -->    <p>
105     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
106     <label for="cancelreserve">Cancel Reserve</label>
107     </p>
108 <!-- /TMPL_IF -->
109 <!-- TMPL_IF NAME="DEBT" --><input type="hidden" name="debt_confirmed" value="1" /><!-- /TMPL_IF -->
110     <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" />
111     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
112     <input type="hidden" name="issueconfirmed" value="1" />
113     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
114     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
115     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
116     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
117 </form>
118
119 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
120     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
121     <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
122 </form>
123 </div></div>
124 <!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
125 <!-- TMPL_IF NAME="IMPOSSIBLE" -->
126 <div class="yui-g first">
127 <div id="circ_impossible" class="dialog alert">
128 <!-- RESULT OF ISSUING REQUEST -->
129         <ul>
130         <!-- TMPL_IF NAME="STATS" --><li>Local Use Recorded</li><!-- /TMPL_IF -->
131         <!-- TMPL_IF NAME="INVALID_DATE" --><li>The due date &quot;<!-- TMPL_VAR NAME="INVALID_DATE" -->&quot; is invalid</li><!-- /TMPL_IF -->  
132         <!-- TMPL_IF NAME="UNKNOWN_BARCODE" --><li>The barcode was not found</li><!-- /TMPL_IF -->
133         <!-- TMPL_IF NAME="NOT_FOR_LOAN" --><li>Item not for loan</li><!-- /TMPL_IF -->
134         <!-- TMPL_IF NAME="WTHDRAWN" --><li>Item has been withdrawn</li><!-- /TMPL_IF -->
135         <!-- TMPL_IF NAME="RESTRICTED" --><li>Item is restricted</li><!-- /TMPL_IF -->
136         <!-- TMPL_IF NAME="GNA" --><li>Patron's address is in doubt</li><!-- /TMPL_IF -->
137         <!-- TMPL_IF NAME="CARD_LOST" --><li>Patron's card is lost</li><!-- /TMPL_IF -->
138         <!-- TMPL_IF NAME="DEBARRED" --><li>Patron is restricted</li><!-- /TMPL_IF -->
139         <!-- TMPL_IF NAME="NO_MORE_RENEWALS" --><li>No more renewals possible</li><!-- /TMPL_IF -->
140         <!-- TMPL_IF NAME="EXPIRED" --><li>Patron's card is expired</li><!-- /TMPL_IF -->
141         <!-- TMPL_IF NAME="NOTSAMEBRANCH" --><li>This item belongs to <!-- TMPL_VAR NAME="itemhomebranch" --> and cannot be issued from this location.</li><!-- /TMPL_IF --> 
142         </ul>
143
144     <!-- TMPL_IF NAME="memberofinstution" -->
145     <p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
146     <!-- /TMPL_IF -->
147
148 </div></div>
149     <!--/TMPL_IF --> <!-- /impossible -->
150
151 <!-- TMPL_IF NAME="issued" -->
152 <p>Item Checked out</p>
153 <!-- /TMPL_IF -->
154
155 <!-- TMPL_IF NAME="message" -->
156 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
157 <h4>
158 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
159 </h4>
160 <!-- /TMPL_IF -->
161
162 <!-- /TMPL_IF --><!--/borrowernumber-->
163
164 <!-- TMPL_IF NAME="CGIselectborrower" -->
165 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
166
167 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
168 <fieldset id="circ_circulation_selectborrower" class="brief">
169     <legend>Patron selection</legend>
170
171     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
172     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
173
174 <ol>    <li>
175     <label for="borrowernumber">Select a patron: </label>
176     <!-- TMPL_VAR name="CGIselectborrower" -->
177     </li>
178 </ol>
179 <p><input type="submit" value="Select" /></p>
180 </fieldset>
181 </form>
182 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
183
184 <!-- BARCODE ENTRY -->
185
186 <!-- TMPL_IF NAME="borrowernumber" -->
187 <div class="yui-g">
188 <!-- TMPL_UNLESS NAME="noissues" -->
189 <!-- TMPL_IF NAME="flagged" -->
190 <div class="yui-u first">
191 <!-- TMPL_ELSE -->
192 <div><!-- /TMPL_IF --><form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
193 <fieldset id="circ_circulation_issue">
194     <label for="barcode">Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->) </label>
195         <div class="hint">Enter item barcode:</div>
196         
197         <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> <input type="submit" value="Check Out" />
198         <div class="hint">Specify Due Date:</div>
199                 <!-- TMPL_IF NAME="stickyduedate" --><input type="text" size="10" id="duedatespec" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" /><!-- TMPL_ELSE --><input type="text" size="10" id="duedatespec" name="duedatespec" value="" />
200 <!-- /TMPL_IF -->
201                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar"  border="0" id="CalendarDueDate" style="cursor: pointer;" />
202              <script language="JavaScript" type="text/javascript">
203                          //<![CDATA[ 
204                    function validate1(date) {
205                          var today = new Date();
206                          if ( date < today ) {
207                              return true;
208                           } else {
209                              return false;
210                           }
211                      };
212                      function refocus(calendar) {
213                         document.getElementById('barcode').focus();
214                         calendar.hide();
215                      };
216                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
217                      Calendar.setup(
218                           {
219                              inputField : "duedatespec",
220                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
221                              button : "CalendarDueDate",
222                              disableFunc : validate1,
223                              dateStatusFunc : validate1,
224                              onClose : refocus
225                            }
226                         );
227                                 //]]>
228                  </script>
229
230           <label for="stickyduedate"> Remember for Session:</label>
231 <!-- TMPL_IF NAME="stickyduedate" -->
232 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
233 <!-- TMPL_ELSE -->
234 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
235 <!-- /TMPL_IF -->
236           <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;" />
237           <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
238           <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
239           <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
240           <input type="hidden" name="print" value="maybe" />
241           <input type="hidden" name="debt_confirmed" value="<!-- TMPL_VAR NAME="debt_confirmed" -->" />
242           <!-- TMPL_IF NAME="CHARGES" --><input type="hidden" name="charges" value="yes" />
243           <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
244           <!-- /TMPL_IF -->
245 </fieldset> 
246 </form></div><!-- /TMPL_UNLESS --><!-- /unless noissues -->
247
248     <!-- TMPL_IF NAME="flagged" -->
249     <div class="yui-u">
250                 <!-- TMPL_IF NAME="noissues" -->
251                  <h4>Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h4>
252         <div id="circmessages" class="circmessage warning">
253                 <!-- TMPL_ELSE -->
254         <div id="circmessages" class="circmessage attention">
255                 <!-- /TMPL_IF -->
256                 <h3><!-- TMPL_IF NAME="noissues" -->Cannot Check Out!<!-- TMPL_ELSE -->Attention:<!-- /TMPL_IF --></h3>
257                 <ul>
258                         <!-- TMPL_IF NAME = "warndeparture" -->
259                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
260                         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>
261             </li>
262                         <!-- /TMPL_IF -->
263                         <!-- TMPL_IF NAME="returnbeforeexpiry" -->
264                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
265                          expiry date is before the date due, the date due will be set to the expiry date
266                          </li>
267                         <!-- /TMPL_IF -->
268                         <!-- TMPL_IF NAME = "expired" -->
269                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
270                         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>
271                         </li>
272                         <!-- /TMPL_IF -->
273             <!-- TMPL_IF NAME="gna" -->
274                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
275                         <!-- /TMPL_IF -->
276             <!-- TMPL_IF NAME="lost" -->
277                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
278                         <!-- /TMPL_IF -->
279             <!-- TMPL_IF NAME="dbarred" --><li class="blocker">
280                <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>
281 </li><!-- /TMPL_IF -->
282             <!-- 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>
283             <!-- /TMPL_IF -->
284             <!-- TMPL_IF NAME="charges" --><!-- TMPL_IF NAME="charges_is_blocker" --><li class="blocker"><!-- TMPL_ELSE --><li><!-- /TMPL_IF -->
285             <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>.<!-- TMPL_IF NAME="charges_is_blocker" -->Checkouts are blocked because fine balance is over the limit.<!-- /TMPL_IF --> Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li><!-- /TMPL_IF -->
286                 <!-- TMPL_IF NAME="credits" --><li><span class="circ-hlt">Credits:</span> Patron has a credit</li><!-- /TMPL_IF -->
287                         </ul>
288         </div>
289                         <!-- TMPL_IF NAME="WaitingReserveLoop" -->      
290                         <div id="holdswaiting" class="circmessage">
291                     <h4>Holds waiting:</h4>
292                                 <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
293                                     <ul> 
294                                         <li> <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title"--></a> (<!-- TMPL_VAR NAME="itemtype"-->), <!-- TMPL_IF NAME="author" -->by <!-- TMPL_VAR NAME="author"--><!-- /TMPL_IF --> Hold placed on <!-- TMPL_VAR NAME="reservedate"-->.
295                                     <!-- TMPL_IF NAME="waitingat" -->
296                                         <br /><!-- TMPL_IF NAME="waitinghere" --><strong class="waitinghere"><!-- TMPL_ELSE --><strong><!-- /TMPL_IF -->Waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>  
297                                     <!-- /TMPL_IF -->
298                                         </li>
299                                     </ul>
300                             <!-- /TMPL_LOOP -->
301                         </div>
302                         <!-- /If WaitingReserveLoop --><!-- /TMPL_IF -->
303         <!-- TMPL_IF name="notes" -->
304                         <div id="circnotes" class="circmessage">
305                         <h4>Notes:</h4>
306             <p><span class="circ-hlt"><!-- TMPL_VAR name="notesmsg" --></span></p>
307                         </div>
308     <!-- /If notes --><!-- /TMPL_IF --> 
309     </div>
310      <!-- /If flagged --><!-- /TMPL_IF -->
311 </div>
312
313 <div class="yui-g"><div id="patronlists" class="toptabs">
314
315 <ul>
316 <li><!--TMPL_IF NAME="issuecount"--><a href="/cgi-bin/koha/circ/circulation.pl#checkouts"><!-- TMPL_VAR NAME="issuecount"--> Checkout(s)</a><!-- TMPL_ELSE --><a href="/cgi-bin/koha/circ/circulation.pl#checkouts">0 Checkouts</a><!-- /TMPL_IF --></li>
317 <li><!-- TMPL_IF NAME="countreserv"--><a href="/cgi-bin/koha/circ/circulation.pl#reserves"><!--TMPL_VAR NAME="countreserv"--> Holds(s)</a><!-- TMPL_ELSE --><a href="/cgi-bin/koha/circ/circulation.pl#reserves">0 Holds</a><!-- /TMPL_IF --></li>
318 </ul>
319
320 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
321 <div id="checkouts">
322 <!--TMPL_IF NAME="issuecount"-->
323     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
324     <input type="hidden" value="circ" name="destination" />
325     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
326     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
327     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />       
328         <table id="issuest">
329     <thead><tr>
330         <th>Due date</th>
331         <th>Title</th>
332         <th>Item Type</th>
333         <th>Call no</th>
334         <th>Barcode</th>
335         <th>Renew?</th>
336                 <th>Check In?</th>
337     </tr>
338 <!-- TMPL_IF NAME="todayissues" --></thead>
339         <tbody>
340
341     <!-- TMPL_LOOP NAME="todayissues" -->
342     <!-- TMPL_IF NAME="__odd__" -->
343     <tr>
344     <!-- TMPL_ELSE -->
345     <tr class="highlight">
346     <!-- /TMPL_IF -->
347         <td><!-- TMPL_VAR NAME="dd" --></td>
348         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR NAME="title" --></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>
349         <td>
350             <!-- TMPL_VAR NAME="itemtype" -->
351            <!-- TMPL_UNLESS NAME="noItemTypeImages" --> <!-- TMPL_IF NAME="itemtype_image" -->
352             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
353             <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
354         </td>
355         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
356         <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>
357         <td>
358         <!-- TMPL_IF NAME="can_renew" -->
359          <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
360           <!-- TMPL_IF NAME="od" -->
361             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
362           <!-- TMPL_ELSE -->
363             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
364           <!-- /TMPL_IF -->
365         <!-- TMPL_ELSE -->
366             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
367                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
368                <!-- TMPL_IF NAME="od" -->
369                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
370                 <!-- TMPL_ELSE -->
371                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
372                 <!-- /TMPL_IF -->
373                 </span>
374                 <span class="renewals-disabled">
375             <!-- /TMPL_IF -->
376                <!-- TMPL_IF NAME="renew_error_on_reserve" -->
377                        On Hold
378                 <!-- /TMPL_IF -->
379                 <!-- TMPL_IF NAME="renew_error_too_many" -->
380                        Too Many Renewals
381                 <!-- /TMPL_IF -->
382             <!-- TMPL_IF NAME="can_confirm" -->
383                 </span>
384             <!-- /TMPL_IF -->
385         <!-- /TMPL_IF -->
386         </td>
387                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
388                 <!-- TMPL_IF NAME="renew_failed" -->
389                 <td>Renewal Failed</td>
390                 <!-- /TMPL_IF -->
391     </tr>
392     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
393     <!-- /if todayissues --><!-- /TMPL_IF --> 
394 <!-- TMPL_IF NAME="previssues" -->
395 <!-- TMPL_IF NAME="todayissues" --><tr><th colspan="7"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
396 <tr><th class="{sorter: false}" colspan="7"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
397         <tbody>
398 <!-- /TMPL_IF -->
399     <!-- TMPL_LOOP NAME="previssues" -->
400     <!-- TMPL_IF NAME="__odd__" -->
401         <tr>
402     <!-- TMPL_ELSE -->
403         <tr class="highlight">
404     <!-- /TMPL_IF -->
405         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
406         <!-- TMPL_VAR NAME="dd" -->
407         </td>
408         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR NAME="title" --></a><br /><!-- TMPL_IF NAME="author" --><!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="itemnotes" -->- <!-- TMPL_VAR name="itemnotes" --><!-- /TMPL_IF --></td>
409         <td>
410             <!-- TMPL_VAR NAME="itemtype" -->
411             <!-- TMPL_IF NAME="itemtype_image" -->
412             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
413             <!-- /TMPL_IF -->
414         </td>
415         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
416         <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>
417         <td>
418         <!-- TMPL_IF NAME="can_renew" -->
419             <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
420           <!-- TMPL_IF NAME="od" -->
421             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
422           <!-- TMPL_ELSE -->
423             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
424           <!-- /TMPL_IF -->
425         <!-- TMPL_ELSE -->
426             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
427                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
428                 <!-- TMPL_IF NAME="od" -->
429                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
430                 <!-- TMPL_ELSE -->
431                     <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
432                 <!-- /TMPL_IF -->
433                 </span>
434                 <span class="renewals-disabled">
435             <!-- /TMPL_IF -->
436                <!-- TMPL_IF NAME="renew_error_on_reserve" -->
437                        On Hold
438                 <!-- /TMPL_IF -->
439                 <!-- TMPL_IF NAME="renew_error_too_many" -->
440                        Too Many Renewals
441                 <!-- /TMPL_IF -->
442             <!-- TMPL_IF NAME="can_confirm" -->
443                 </span>
444             <!-- /TMPL_IF -->
445         <!-- /TMPL_IF -->
446         </td>
447                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
448                 <!-- TMPL_IF NAME="renew_failed" -->
449                 <td>Renewal Failed</td>
450                 <!-- /TMPL_IF -->
451
452     </tr>
453     <!-- /loop previssues --><!-- /TMPL_LOOP --> 
454 <!--/if previssues --><!-- /TMPL_IF --> 
455         </tbody>
456     </table>
457         <!--TMPL_IF NAME="issuecount"-->
458     <fieldset class="action">
459     <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
460         <label for="override_limit">Override Renewal Limit:</label>
461         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
462     <!-- /TMPL_IF -->
463     <input type="submit" name="renew_checked" value="Renew Checked Items" />
464     <input type="submit" name="renew_all" value="Renew All" />
465     </fieldset>
466         <!-- /TMPL_IF -->
467 </form>
468 <!-- TMPL_ELSE -->
469 <p>Patron has nothing checked out.</p>
470 <!-- /TMPL_IF -->
471 </div>
472
473
474 <div id="reserves">
475 <!-- TMPL_IF NAME="reservloop" -->
476     <table id="holdst">
477         <thead><tr>
478             <th>Hold date</th>
479             <th>Title</th>
480             <th>Item Type</th>
481             <th>Call Number</th>
482                         <th>Barcode</th>
483             <th>Priority</th>
484         </tr></thead>
485                 <tbody>
486         <!-- TMPL_LOOP NAME="reservloop" -->
487         <tr class="<!-- TMPL_VAR NAME="color" -->">
488                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
489                     <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></td>
490                                         <td><!-- TMPL_VAR NAME="itemtype" --></td>
491                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
492                                         <td><em><!-- TMPL_IF name="barcodereserv" -->Item <!-- TMPL_VAR NAME="barcodereserv" -->
493                         <!-- /TMPL_IF --><!-- TMPL_IF name="waiting" --> <strong>waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
494                         <!-- /TMPL_IF -->
495                         <!-- TMPL_IF name="transfered" --> <strong>in transit</strong> from
496                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" -->
497                         <!-- /TMPL_IF -->
498                         <!-- TMPL_IF name="nottransfered" --> hasn't been transfered yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
499                         <!-- /TMPL_IF --></em></td>
500                     <td>                    
501                         <!-- TMPL_IF NAME="waitingposition" -->
502                         Hold priority
503                         <b> <!-- TMPL_VAR NAME="waitingposition" --> </b><!-- /TMPL_IF -->
504                     </td>
505             </tr>
506         <!-- /TMPL_LOOP --></tbody>
507     </table>
508         <!-- TMPL_ELSE -->
509         <p>Patron has no pending holds.</p>
510 <!-- /TMPL_IF -->
511 </div> <!-- reservesloop -->
512
513 <!-- /TMPL_IF --> <!-- borrowernumber -->
514 </div></div>
515 <!--/TMPL_IF -->
516
517
518
519 </div>
520 </div>
521 </div>
522 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->