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