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