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