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