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