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