Bug 9623 - Replace YUI button on authority types administration page with Bootstrap
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / circulation.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 [% SET destination = "circ" %]
4 <title>Koha &rsaquo; Circulation
5 [% IF borrowernumber %]
6   &rsaquo; Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
7 [% END %]
8 </title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% INCLUDE 'calendar.inc' %]
11 [% IF ( UseTablesortForCirc ) %]<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>[% END %]
12 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
13 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
14 <script type="text/javascript">
15 //<![CDATA[
16 [% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %]
17 [% IF ( UseTablesortForCirc ) %]$.tablesorter.addParser({
18     id: 'articles',
19     is: function(s) {return false;  },
20     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
21     type: 'text'
22 });[% END %]
23 [% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
24          $(document).ready(function() {
25
26         $('#patronlists').tabs();
27                 [% IF ( UseTablesortForCirc ) %]$.tablesorter.defaults.widgets = ['zebra'];
28                 $("#issuest").tablesorter({[% IF ( dateformat_metric ) %]
29                 dateFormat: 'uk',[% END %]
30                 headers: { 1: { sorter: 'articles' },6: { sorter: false },7:{sorter:false},8:{sorter:false},9:{sorter:false}}
31                 });
32                 $("#relissuest").tablesorter({[% IF ( dateformat_metric ) %]
33                 dateFormat: 'uk',[% END %]
34                 headers: { 1: { sorter: 'articles' },6: { sorter: false },7:{sorter:false},8:{sorter:false},9:{sorter:false}}
35                 });
36
37                 //FIXME: Sorting does not work when there are previous checkouts only
38                 // (It works fine when there are only checkouts of the day, or both previous and today checkouts)
39                 $("#issuest").bind("sortEnd",function() {
40                 $("#previous").parents("tr").remove();  // 'previous checkouts' header chokes table sorter
41             });
42                 $("#relissuest").bind("sortEnd",function() {
43                     $("#relprevious").parents("tr").remove();  // 'previous checkouts' header chokes table sorter
44                 });
45                 $("#holdst").tablesorter({[% IF ( dateformat_metric ) %]
46                 dateFormat: 'uk',[% END %]
47                         sortList: [[0,0]],
48                         headers: { 1: { sorter: 'articles' },5: { sorter: false }}
49                 });[% END %]
50         [% IF ( AllowRenewalLimitOverride ) %]
51         $( '#override_limit' ).click( function () {
52             if ( this.checked ) {
53                 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
54             } else {
55                 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
56             }
57         } ).attr( 'checked', false );
58         [% END %][% IF ( CircAutoPrintQuickSlip ) %]
59         // listen submit to trigger qslip on empty checkout
60         $('#mainform').bind('submit',function() {
61           if ($('#barcode').val() == '') {
62             return printx_window('qslip'); }
63         });[% END %]
64
65
66 var allcheckboxes = $(".checkboxed");
67         $("#renew_all").click(function(){
68                 $(allcheckboxes).checkCheckboxes(":input[name*=items]"); 
69                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]");
70         });
71         $("#CheckAllitems").click(function(){
72                 $(allcheckboxes).checkCheckboxes(":input[name*=items]");
73                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
74         });
75     $("#CheckNoitems").click(function(){
76                 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
77         });
78         $("#CheckAllreturns").click(function(){
79                 $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]");
80                 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
81         });
82     $("#CheckNoreturns" ).click(function(){
83                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
84         });
85
86     $("#CheckAllexports").click(function(){
87         $(".checkboxed").checkCheckboxes(":input[name*=biblionumbers]");
88         $(".checkboxed").unCheckCheckboxes(":input[name*=items]");
89         return false;
90     });
91     $("#CheckNoexports").click(function(){
92         $(".checkboxed").unCheckCheckboxes(":input[name*=biblionumbers]");
93         return false;
94     });
95
96     $("#relrenew_all").click(function(){
97         $(allcheckboxes).checkCheckboxes(":input[name*=items]");
98         $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]");
99     });
100     $("#relCheckAllitems").click(function(){
101         $(allcheckboxes).checkCheckboxes(":input[name*=items]");
102         $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
103     });
104     $("#relCheckNoitems").click(function(){
105         $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
106     });
107     $("#relCheckAllreturns").click(function(){
108         $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]");
109         $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
110     });
111     $("#relCheckNoreturns").click(function(){
112         $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
113     });
114
115     [% IF ( CAN_user_circulate_override_renewals ) %]
116     [% IF ( AllowRenewalLimitOverride ) %]
117     $( '#override_limit' ).click( function () {
118         if ( this.checked ) {
119            $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
120         } else {
121            $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
122         }
123     } ).attr( 'checked', false );
124     [% END %]
125     [% END %]
126     // Clicking the table cell checks the checkbox inside it
127         $("td").click(function(e){
128                 if(e.target.tagName.toLowerCase() == 'td'){
129            $(this).find("input:checkbox:visible").each( function() {
130                 if($(this).attr("checked")){
131                     $(this).removeAttr("checked");
132                 } else {
133                     $(this).attr("checked","checked");
134                     radioCheckBox($(this));
135                 }
136            });
137         }
138         });
139     // prevent adjacent checkboxes from being checked simultaneously
140     function radioCheckBox(box){
141             box.parents("td").siblings().find("input:checkbox:visible").each(function(){
142                 if($(this).attr("checked")){
143                     $(this).removeAttr("checked");
144                 }
145              });
146      }
147
148         $("#messages ul").after("<a href=\"#\" id=\"addmessage\">"+_("Add a new message")+"</a>");
149         $("#borrower_messages .cancel").click(function(){
150                 $("#add_message_form").hide();
151         $("#addmessage").show();
152         });
153         $("#addmessage").click(function (){
154         $(this).hide();
155                 $("#add_message_form").show();
156          });
157
158     $("input.radio").click(function(){
159         radioCheckBox($(this));
160     });
161
162     $("#newduedate").datetimepicker({
163         minDate: 1, // require that renewal date is after today
164         hour: 23,
165         minute: 59
166     });
167     $("#duedatespec").datetimepicker({
168         onClose: function(dateText, inst) { $("#barcode").focus(); },
169         hour: 23,
170         minute: 59
171     });
172     $("#export_submit").click(function(){
173         var export_format = $("#export_formats").val();
174         export_checkouts(export_format);
175         return false;
176     })
177  });
178
179 function export_checkouts(format) {
180     if ($("input:checkbox[name='biblionumbers'][checked]").length < 1){
181         alert(_("You must select a checkout to export"));
182         return;
183     }
184
185     $("input:checkbox[name='biblionumbers']").each( function(){
186         var input_item = $(this).siblings("input:checkbox");
187         if ( $(this).is(":checked") ) {
188             $(input_item).attr("checked", "checked");
189         } else {
190             $(input_item).attr("checked", "");
191         }
192     } );
193
194     if (format == 'iso2709_995') {
195         format = 'iso2709';
196         $("#dont_export_item").val(0);
197     } else if (format == 'iso2709') {
198         $("#dont_export_item").val(1);
199     } else {
200         [% UNLESS ( export_with_csv_profile ) %]
201             alert(_("You must define a csv profile for export (in tools>CSV export profiles) and fill the ExportWithCsvProfile system preference"));
202             return false;
203         [% END %]
204     }
205     document.issues.action="/cgi-bin/koha/tools/export.pl";
206     document.getElementById("export_format").value = format;
207     document.issues.submit();
208
209     /* Reset form action to its initial value */
210     document.issues.action="/cgi-bin/koha/reserve/renewscript.pl";
211
212 };
213
214 function validate1(date) {
215     var today = new Date();
216     if ( date < today ) {
217         return true;
218      } else {
219         return false;
220      }
221 };
222 //]]>
223 </script>
224 </head>
225 <body id="circ_circulation" class="circ">
226
227 [% INCLUDE 'header.inc' %]
228 [% INCLUDE 'circ-search.inc' %]
229
230 <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;
231 [% IF ( borrowernumber ) %]
232     <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> &rsaquo; [% INCLUDE 'patron-title.inc' %]
233 [% ELSE %]
234     <strong>Checkouts</strong>
235 [% END %]
236 </div>
237 [% IF ( CGIselectborrower ) %]
238 <div id="doc" class="yui-t7">
239
240    <div id="bd">
241         <div id="yui-main">
242         <div class="yui-g">
243 [% ELSE %]
244 <div id="doc3" class="yui-t2">
245
246    <div id="bd">
247         <div id="yui-main">
248         <div class="yui-b">
249 [% END %]
250
251 [% IF ( borrowernumber ) %]
252 [% INCLUDE 'members-toolbar.inc' %]
253 [% END %]
254
255 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
256 <div style="display: none;" id="add_message_form">
257 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
258 <fieldset id="borrower_messages" class="brief">
259 <legend>Leave a message</legend>
260         <ol>
261     <li>
262             <label for="message_type">Add a message for:</label>
263           <select name="message_type" id="message_type">
264             <option value="L">Other librarians</option>
265             <option value="B">[% firstname %]</option>
266         </select>
267     </li>
268     [% IF ( canned_bor_notes_loop ) %]
269         <li>
270                 <label for="type">Predefined notes: </label>
271                 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
272                     <option value="">Select note</option>
273                     [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
274                     <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
275                     [% END %]
276                 </select>
277         </li>
278     [% END %]
279     <li>
280         <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
281     </li>
282         </ol>
283     <fieldset class="action">
284         <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
285     </fieldset>
286
287         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
288         <input type="hidden" name="branchcode" value="[% branch %]" />
289 </fieldset>
290 </form>
291 </div>
292
293 [% IF ( dateexpiry ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
294
295 [% IF additional_materials %]
296     <div id="materials" class="dialog message">Note about the accompanying materials: <br />
297     [% additional_materials %]
298     </div>
299 [% END %]
300
301 [% IF ( alert.ITEM_LOST ) %]
302     <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
303 [% END %]
304
305 [% IF ( alert.OTHER_CHARGES ) %]
306     <div class="dialog message">The patron has unpaid charges for reserves, rentals etc of [% alert.OTHER_CHARGES %]</div>
307 [% END %]
308
309 [% IF ( NEEDSCONFIRMATION ) %]
310 <div class="yui-g">
311
312 <div id="circ_needsconfirmation" class="dialog alert">
313 <h3>Please confirm checkout</h3>
314
315 <ul>
316 [%IF ( AGE_RESTRICTION ) %]
317     <li>Age restriction [% AGE_RESTRICTION %]. Check out anyway?</li>
318 [% END %]
319
320 [% IF ( DEBT ) %]
321     <li>The patron has a debt of [% DEBT %]</li>
322 [% END %]
323
324 [% IF ( RENEW_ISSUE ) %]
325     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron.  Renew?</li>
326 [% END %]
327
328 [% IF ( RESERVE_WAITING ) %]
329     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber %]">[% resfirstname %] [% ressurname %]</a> ([% rescardnumber %]) at [% resbranchname %] since [% reswaitingdate %]</li>
330 [% END %]
331
332 [% IF ( RESERVED ) %]
333     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber %]">[% resfirstname %] [% ressurname %]</a> ([% rescardnumber %]) at [% resbranchname %] since [% resreservedate %]</li>
334 [% END %]
335
336 [% IF ( ISSUED_TO_ANOTHER ) %]
337     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issued_borrowernumber %]">[% issued_firstname %] [% issued_surname %]</a> ([% issued_cardnumber %]). Check in and check out?</li>
338 [% END %]
339
340 [% IF ( TOO_MANY ) %]
341     <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
342 [% END %]
343
344 [% IF ( BORRNOTSAMEBRANCH ) %]
345     <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
346 [% END %]
347
348 [% IF ( PATRON_CANT ) %]
349     <li>This patron can't check out this item per library circulation policy</li>
350 [% END %]
351
352 [% IF ( NOT_FOR_LOAN_FORCING ) %]
353     <li>Item is normally not for loan.  Check out anyway?</li>
354 [% END %]
355
356 [% IF ( USERBLOCKEDOVERDUE ) %]
357     <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).  Check out anyway?</li>
358 [% END %]
359
360 [% IF ( ITEM_LOST ) %]
361     <li>This item has been lost with a status of "[% ITEM_LOST %]". Check out anyway?</li>
362 [% END %]
363
364 [% IF  HIGHHOLDS %]
365         <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
366 [% END %]
367 </ul>
368
369 [% IF HIGHHOLDS %]
370         <script language="JavaScript" type="text/javascript">
371         $(document).ready(function() {
372                 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
373         });
374         </script>
375 [% END %]
376 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
377
378 [% IF ( RESERVED ) %]
379     <p>
380     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
381     <label for="cancelreserve">Cancel hold</label>
382     </p>
383 [% END %]
384
385 [% IF ( RESERVE_WAITING ) %]
386 <p>
387     <label for="cancelreserve">Cancel hold</label>
388     <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
389     <label for="revertreserve">Revert waiting status</label>
390     <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
391 </p>
392 [% END %]
393
394     <input type="hidden" name="barcode" value="[% barcode |html %]" />
395     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
396     <input type="hidden" name="issueconfirmed" value="1" />
397     [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
398     [% IF ( INVALID_DATE ) %]
399     <p>
400     <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
401     <label for="duedatespec">Due date</label>
402     </p>
403     [% ELSE %]
404     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
405     [% END %]
406     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
407     <input type="hidden" name="branch" value="[% branch %]" />
408     [% IF ( RENEW_ISSUE ) %]
409     <input type="submit" class="approve" value="Yes, Renew (Y)" accesskey="y" />
410     [% ELSE %]
411     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
412     [% END %]
413 </form>
414
415 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
416     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
417     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
418     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
419     [% IF ( RENEW_ISSUE ) %]
420     <input type="submit" class="deny" value="No, Don't Renew (N)" accesskey="n" />
421     [% ELSE %]
422     <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
423     [% END %]
424 </form>
425
426 </div></div>
427 [% END %] <!-- NEEDSCONFIRMATION -->
428
429         [% IF ( IMPOSSIBLE ) %]
430
431 [% IF ( soundon ) %]
432 <audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
433 [% END %]        
434
435 <div class="yui-g">
436 <div id="circ_impossible" class="dialog alert">
437 <!-- RESULT OF ISSUING REQUEST -->
438         <ul>
439         [% IF ( STATS ) %]
440             <li>Local use recorded</li>
441         [% END %]
442
443         [% IF ( INVALID_DATE ) %]
444             <li>The due date &quot;[% INVALID_DATE %]&quot; is invalid</li>
445         [% END %]
446
447         [% IF ( UNKNOWN_BARCODE ) %]
448             <li>The barcode was not found [% barcode |html %]</li>
449             [% IF ( fast_cataloging ) %]
450                 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
451             <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&amp;barcode=[% barcode |uri %]&amp;circborrowernumber=[% borrowernumber %]&amp;branch=[% branch %]&amp;duedatespec=[% duedatespec %]&amp;stickyduedate=[% stickyduedate %]">Fast cataloging</a>
452                 [% END %]
453             [% END %]
454         [% END %]
455
456         [% IF ( NOT_FOR_LOAN ) %]
457             <li>Item not for loan</li>
458         [% END %]
459
460         [% IF ( WTHDRAWN ) %]
461             <li>Item has been withdrawn</li>
462         [% END %]
463
464         [% IF ( RESTRICTED ) %]
465             <li>Item is restricted</li>
466         [% END %]
467
468         [% IF ( GNA ) %]
469             <li>Patron's address is in doubt</li>
470         [% END %]
471
472         [% IF ( CARD_LOST ) %]
473             <li>Patron's card is lost</li>
474         [% END %]
475
476         [% IF ( DEBARRED ) %]
477             <li>Patron is restricted</li>
478         [% END %]
479
480         [% IF ( NO_MORE_RENEWALS ) %]
481             <li>No more renewals possible</li>
482         [% END %]
483
484         [%IF ( AGE_RESTRICTION ) %]
485             <li>Age restriction [% AGE_RESTRICTION %].</li>
486         [% END %]
487
488         [% IF ( EXPIRED ) %]
489             <li>Patron's card is expired</li>
490         [% END %]
491
492         [% IF ( ITEMNOTSAMEBRANCH ) %]
493             <li>This item belongs to [% itemhomebranch %] and cannot be issued from this location.</li>
494         [% END %]
495
496         [% IF ( USERBLOCKEDREMAINING ) %]
497             <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li>
498         [% END %]
499         
500             [% IF ( USERBLOCKEDOVERDUE ) %]
501             <li>Checkouts are BLOCKED because patron has overdue items</li>
502         [% END %]
503         </ul>
504
505 </div></div>
506 [% ELSE %]
507 [% IF ( soundon ) %]
508 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
509 [% END %]
510     [% END %] <!-- /impossible -->
511
512 [% IF ( issued ) %]
513 <p>Item checked out</p>
514 [% END %]
515
516 [% IF ( message ) %]
517 [% INCLUDE 'patron-toolbar.inc' %]
518 <h4>
519 No patron matched <span class="ex">[% message %]</span>
520 </h4>
521 [% END %]
522
523
524 [% IF ( CGIselectborrower ) %]
525 [% INCLUDE 'patron-toolbar.inc' %]
526
527 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
528 <fieldset id="circ_circulation_selectborrower" class="brief">
529     <legend>Patron selection</legend>
530
531     <input type="hidden" name="branch" value="[% branch %]" />
532     <input type="hidden" name="printer" value="[% printer %]" />
533     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
534     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
535
536 <ol>    <li>
537     <label for="borrowernumber">Select a patron: </label>
538     [% CGIselectborrower %]
539     </li>
540 </ol>
541 <p><input type="submit" value="Select" /></p>
542 </fieldset>
543 </form>
544 [% ELSE %] <!-- CGIselectborrower -->
545
546 <!-- BARCODE ENTRY -->
547
548 [% IF ( borrowernumber ) %]
549 <div class="yui-g">
550 [% UNLESS ( noissues ) %]
551 [% IF ( flagged ) %]
552 <div class="yui-u first">
553 [% ELSE %]
554 <div>
555
556 [% END %]
557
558
559 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
560 <fieldset id="circ_circulation_issue">
561     [% IF ( DisplayClearScreenButton ) %]
562         <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
563     [% END %]
564
565     <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
566
567         <div class="hint">Enter item barcode:</div>
568
569     [% IF ( NEEDSCONFIRMATION ) %]
570             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
571     [% ELSE %]
572             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
573     [% END %]
574     <input type="submit" value="Check Out" />
575
576     [% IF ( SpecifyDueDate ) %]<div class="date-select">
577         <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
578         [% IF ( duedatespec ) %]<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />[% ELSE %]<input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
579 [% END %]
580           <label for="stickyduedate"> Remember for session:</label>
581 [% IF ( stickyduedate ) %]
582 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
583 [% ELSE %]
584 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
585 [% END %]
586           <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;" />
587 </div>[% END %]
588           <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
589           <input type="hidden" name="branch" value="[% branch %]" />
590           <input type="hidden" name="printer" value="[% printer %]" />
591           <input type="hidden" name="print" value="maybe" />
592           <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
593                 [% IF ( CHARGES ) %]
594                         <input type="hidden" name="charges" value="yes" />
595                         <input type="hidden" name="oldamount" value="[% amountold %]" />
596                 [% END %]
597 </fieldset>
598 </form></div>[% END %]<!-- /unless noissues -->
599
600 [% IF ( noissues ) %]<div>[% ELSE %]<div class="yui-u">[% END %]
601
602     [% IF ( flagged ) %]
603                 [% IF ( noissues ) %]
604                 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
605         <div id="circmessages" class="circmessage warning">
606                 [% ELSE %]
607         <div id="circmessages" class="circmessage attention">
608                 [% END %]
609
610                 <h3>[% IF ( noissues ) %]
611                         Cannot check out!
612                 [% ELSE %]Attention:[% END %]</h3>
613                 <ul>
614
615                         [% IF ( warndeparture ) %]
616                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
617                         Patron's card expires on [% expiry %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% 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=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
618
619                         </li>
620                         [% END %]
621
622                         [% IF ( returnbeforeexpiry ) %]
623                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
624                          expiry date is before the date due, the date due will be set to the expiry date
625                          </li>
626                         [% END %]
627
628                         [% IF ( expired ) %]
629                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
630                         [% IF ( expiry ) %]Patron's card expired on [% expiry %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% 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=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
631
632                         </li>
633                         [% END %]
634
635             [% IF ( gna ) %]
636                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
637                         [% END %]
638
639             [% IF ( lost ) %]
640                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
641                         [% END %]
642
643             [% IF ( userdebarred ) %]
644                <li class="blocker">
645                <span class="circ-hlt"> Restricted:</span> Patron's account is restricted [% IF (userdebarreddate ) %] until [% userdebarreddate %] [% END %] [% IF (debarredcomment ) %] with the comment "[% debarredcomment %]"[% END %]
646                <form class="inline compact" action="/cgi-bin/koha/members/setstatus.pl" method="post">
647                         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
648                         <input type="hidden" name="destination" value="circ" />
649                         <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
650                         <input type="submit" value="Lift restriction" />
651                </form>
652                         </li>[% END %]
653
654                 [% IF ( odues ) %]<li>[% IF ( nonreturns ) %]<span class="circ-hlt">Overdues:</span> Patron has <span class="circ-hlt">ITEMS OVERDUE</span>. See highlighted items <a href="#checkouts">below</a>[% END %]</li>
655             [% END %]
656
657                 [% IF ( charges ) %]
658                             <li>
659             <span class="circ-hlt">Fees &amp; Charges:</span> Patron has  <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Outstanding fees &amp; charges[% IF ( chargesamount ) %] of [% chargesamount %][% END %]</a>.
660                 [% IF ( charges_is_blocker ) %]
661                     Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
662                 [% END %]
663             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Payment</a></li>
664                         [% END %]
665
666                 [% IF ( credits ) %]
667                         <li>
668                 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
669             </li>
670                         [% END %]
671
672
673
674                         </ul>
675         </div>
676
677                         [% IF ( WaitingReserveLoop ) %]
678                         <div id="holdswaiting" class="circmessage">
679                     <h4>Holds waiting:</h4>
680                                 [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
681                                     <ul>
682                                         <li> <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% WaitingReserveLoo.biblionumber %]">[% WaitingReserveLoo.title |html %]</a> ([% WaitingReserveLoo.itemtype %]), [% IF ( WaitingReserveLoo.author ) %]by [% WaitingReserveLoo.author %][% END %] [% IF ( WaitingReserveLoo.itemcallnumber ) %][[% WaitingReserveLoo.itemcallnumber %]] [% END %]Hold placed on [% WaitingReserveLoo.reservedate %].
683                                     [% IF ( WaitingReserveLoo.waitingat ) %]
684                                         <br />[% IF ( WaitingReserveLoo.waitinghere ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]Waiting at [% WaitingReserveLoo.waitingat %]</strong>
685                                     [% END %]
686                                         </li>
687                                     </ul>
688                             [% END %]
689                         </div>
690                         <!-- /If WaitingReserveLoop -->[% END %]
691         [% IF ( notes ) %]
692                         <div id="circnotes" class="circmessage">
693                         <h4>Notes:</h4>
694             <p><span class="circ-hlt">[% notesmsg %]</span></p>
695                         </div>
696
697
698     <!-- /If notes -->[% END %]
699
700         <div id="messages" class="circmessage">
701                 <h4>Messages:</h4>
702                 <ul>
703                         [% FOREACH lib_messages_loo IN lib_messages_loop %]
704                                 <li>
705                                         <span class="circ-hlt">
706                                                 [% lib_messages_loo.message_date_formatted %]
707                                                 [% lib_messages_loo.branchcode %]
708                                                 <i>"[% lib_messages_loo.message %]"</i>
709                                         </span>
710                                         [% IF ( lib_messages_loo.can_delete ) %]
711                                                 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&amp;borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
712                                         [% ELSE %]
713                                                 [% IF ( all_messages_del ) %]
714                                                         <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&amp;borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
715                                                 [% END %]
716                                         [% END %]
717                                 </li>
718                         [% END %]
719                         [% FOREACH bor_messages_loo IN bor_messages_loop %]
720                                 <li><span class="">[% bor_messages_loo.message_date_formatted %] [% bor_messages_loo.branchcode %] <i>"[% bor_messages_loo.message %]"</i></span> [% IF ( bor_messages_loo.can_delete ) %]<a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&amp;borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
721                 [% ELSIF ( all_messages_del ) %]
722                     <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&amp;borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
723                 [% END %]</li>
724                         [% END %]
725
726                 </ul>
727         </div>  
728         
729      <!-- /If flagged -->[% END %]
730
731         
732
733 </div>
734 </div>
735
736 <div class="yui-g"><div id="patronlists" class="toptabs">
737
738 <ul>
739 <li>    [% IF ( issuecount ) %]
740             <a href="#checkouts">[% issuecount %] Checkout(s)</a>
741     [% ELSE %]
742             <a href="#checkouts">0 Checkouts</a>
743     [% END %]</li>
744 [% IF ( displayrelissues ) %]
745 <li><a href="#relissues">Relatives' checkouts</a></li>
746 [% END %]
747 <li>[% IF ( countreserv ) %]
748             <a href="#reserves">[% countreserv %] Hold(s)</a>
749     [% ELSE %]
750             <a href="#reserves">0 Holds</a>
751     [% END %]</li>
752
753 </ul>
754
755 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
756 <div id="checkouts">
757 [% IF ( issuecount ) %]
758     <form name="issues" action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
759     <input type="hidden" value="circ" name="destination" />
760     <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
761     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
762     <input type="hidden" name="branch" value="[% branch %]" />
763         <table id="issuest">
764     <thead><tr>
765         <th scope="col">Due date</th>
766         <th scope="col">Title</th>
767         <th scope="col">Item type</th>
768         <th scope="col">Checked out on</th>
769         <th scope="col">Checked out from</th>
770         <th scope="col">Call no</th>
771         <th scope="col">Charge</th>
772         <th scope="col">Price</th>
773         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
774         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
775         [% IF export_remove_fields OR export_with_csv_profile %]
776           <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th>
777         [% END %]
778     </tr>
779 [% IF ( todayissues ) %]</thead>
780 [% INCLUDE 'checkouts-table-footer.inc' %]
781         <tbody>
782
783     [% FOREACH todayissue IN todayissues %]
784     [% IF ( loop.odd ) %]
785     <tr>
786     [% ELSE %]
787     <tr class="highlight">
788     [% END %]
789         [% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
790         [% todayissue.dd %]
791         </td>
792         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% todayissue.biblionumber %]&amp;type=intra"><strong>[% todayissue.title |html %]</strong></a>[% IF ( todayissue.author ) %], by [% todayissue.author %][% END %][% IF ( todayissue.itemnotes ) %]- <span class="circ-hlt">[% todayissue.itemnotes %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% todayissue.biblionumber %]&amp;itemnumber=[% todayissue.itemnumber %]#item[% todayissue.itemnumber %]">[% todayissue.barcode %]</a></td>
793         <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %]<img src="[% todayissue.itemtype_image %]" alt="" />[% END %][% END %][% todayissue.itemtype %]</td>
794         <td>[% todayissue.checkoutdate %]</td>
795         [% IF ( todayissue.multiple_borrowers ) %]<td>[% todayissue.firstname %] [% todayissue.surname %]</td>[% END %]
796         <td>[% todayissue.issuingbranchname %]</td>
797         <td>[% todayissue.itemcallnumber %]</td>
798             <td>[% todayissue.charge %]</td>
799             <td>[% todayissue.replacementprice %]</td>
800       [% IF ( todayissue.renew_failed ) %]
801             <td class="problem">Renewal failed</td>
802       [% ELSE %]
803         <td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span>
804         [% IF ( todayissue.can_renew ) %]
805         <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
806         [% IF ( todayissue.od ) %]
807             <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
808         [% ELSE %]
809             <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
810         [% END %]
811         [% ELSE %]
812             [% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
813                 <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
814                 [% IF ( todayissue.od ) %]
815                     <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
816                 [% ELSE %]
817                     <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
818                 [% END %]
819                 </span>
820                 <span class="renewals-disabled">
821             [% END %]
822                 [% IF ( todayissue.renew_error_on_reserve ) %]
823             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
824                 [% END %]
825                 [% IF ( todayissue.renew_error_too_many ) %]
826             Not renewable
827                 [% END %]
828             [% IF ( todayissue.can_confirm ) %]
829                 </span>
830             [% END %]
831         [% END %]
832         </td>
833         [% END %]
834         [% IF ( todayissue.return_failed ) %]
835             <td class="problem">Checkin failed</td>
836         [% ELSE %]
837             [% IF ( todayissue.renew_error_on_reserve ) %]
838                <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
839                 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
840                 </td>
841             [% ELSE %]
842             <td><input type="checkbox" class="radio" name="barcodes[]"  value="[% todayissue.barcode %]" />
843                 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
844             </td>
845             [% END %]
846         [% END %]
847         [% IF export_remove_fields OR export_with_csv_profile %]
848           <td style="text-align:center;">
849             <input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" />
850             <input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" />
851           </td>
852         [% END %]
853     </tr>
854     [% END %] <!-- /loop todayissues -->
855     <!-- /if todayissues -->[% END %]
856 [% IF ( previssues ) %]
857 [% IF ( todayissues ) %]<tr><th colspan="11"><a name="previous" id="previous"></a>Previous checkouts</th></tr>[% ELSE %]
858 <tr><th class="{sorter: false}" colspan="11"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
859 [% INCLUDE 'checkouts-table-footer.inc' %]
860         <tbody>
861 [% END %]
862     [% FOREACH previssue IN previssues %]
863     [% IF ( loop.odd ) %]
864         <tr>
865     [% ELSE %]
866         <tr class="highlight">
867     [% END %]
868         [% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
869         [% previssue.dd %]
870         </td>
871         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% previssue.biblionumber %]&amp;type=intra"><strong>[% previssue.title |html %]</strong></a>[% IF ( previssue.author ) %], by [% previssue.author %][% END %] [% IF ( previssue.itemnotes ) %]- [% previssue.itemnotes %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% previssue.biblionumber %]&amp;itemnumber=[% previssue.itemnumber %]#item[% previssue.itemnumber %]">[% previssue.barcode %]</a></td>
872         <td>
873             [% previssue.itemtype %]
874         </td>
875         <td>[% previssue.displaydate %]</td>
876         [% IF ( previssue.multiple_borrowers ) %]<td>[% previssue.firstname %] [% previssue.surname %]</td>[% END %]
877         <td>[% previssue.issuingbranchname %]</td>
878         <td>[% previssue.itemcallnumber %]</td>
879         <td>[% previssue.charge %]</td>
880         <td>[% previssue.replacementprice %]</td>
881       [% IF ( previssue.renew_failed ) %]
882             <td class="problem">Renewal failed</td>
883       [% ELSE %]
884         <td><span style="padding: 0 1em;">[% IF ( previssue.renewals ) %][% previssue.renewals %][% ELSE %]0[% END %]</span>
885         [% IF ( previssue.can_renew ) %]
886         <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
887         [% IF ( previssue.od ) %]
888             <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
889         [% ELSE %]
890             <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
891         [% END %]
892         [% ELSE %]
893             [% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
894                 <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
895                 [% IF ( previssue.od ) %]
896                     <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
897                 [% ELSE %]
898                     <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
899                 [% END %]
900                 </span>
901                 <span class="renewals-disabled">
902             [% END %]
903                 [% IF ( previssue.renew_error_on_reserve ) %]
904             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
905                 [% END %]
906                 [% IF ( previssue.renew_error_too_many ) %]
907             Not renewable
908                 [% END %]
909             [% IF ( previssue.can_confirm ) %]
910                 </span>
911             [% END %]
912         [% END %]
913         </td>
914         [% END %]
915                   [% IF ( previssue.return_failed ) %]
916             <td class="problem">Check-in failed</td>
917         [% ELSE %]
918             [% IF ( previssue.renew_error_on_reserve ) %]
919                <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
920                 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
921                 </td>
922             [% ELSE %]
923             <td><input type="checkbox" class="radio" name="barcodes[]"  value="[% previssue.barcode %]" />
924                 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
925             </td>
926             [% END %]
927         [% END %]
928         [% IF export_remove_fields OR export_with_csv_profile %]
929           <td style="text-align:center;">
930             <input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" />
931             <input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" />
932           </td>
933         [% END %]
934     </tr>
935     <!-- /loop previssues -->[% END %]
936 <!--/if previssues -->[% END %]
937       </tbody>
938     </table>
939     [% IF ( issuecount ) %]
940     <fieldset class="action">
941         [% IF ( CAN_user_circulate_override_renewals ) %]
942         [% IF ( AllowRenewalLimitOverride ) %]
943         <label for="override_limit">Override renewal limit:</label>
944         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
945         [% END %]
946         [% END %]
947         <input type="submit" name="renew_checked" value="Renew or Return checked items" />
948         <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
949     </fieldset>
950         [% IF export_remove_fields OR export_with_csv_profile %]
951             <fieldset>
952             <label for="export_formats"><b>Export checkouts using format:</b></label>
953             <select name="export_formats" id="export_formats">
954                 <option value="iso2709_995">ISO2709 with items</option>
955                 <option value="iso2709">ISO2709 without items</option>
956                 <option value="csv">CSV</option>
957             </select>
958            <label for="export_remove_fields">Don't export fields:</label> <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" />
959             <input type="hidden" name="op" value="export" />
960             <input type="hidden" id="export_format" name="format" value="iso2709" />
961             <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
962             <input type="hidden" id="record_type" name="record_type" value="bibs" />
963             <input type="button" id="export_submit" value="Export" />
964             </fieldset>
965         [% END %]
966     [% END %]
967     </form>
968 [% ELSE %]
969 <p>Patron has nothing checked out.</p>
970 [% END %]
971
972 </div>
973
974
975 [% IF ( displayrelissues ) %]
976 <div id="relissues">
977     <table id="relissuest">
978     <thead>
979     <tr>
980         <th scope="col">Due date</th>
981         <th scope="col">Title</th>
982         <th scope="col">Item type</th>
983         <th scope="col">Checked out on</th>
984         <th scope="col">Checked out from</th>
985         <th scope="col">Call no</th>
986         <th scope="col">Charge</th>
987         <th scope="col">Price</th>
988         <th scope="col">Patron</th>
989     </tr>
990     </thead>
991 [% IF ( relissues ) %]  <tbody>
992
993     [% FOREACH relissue IN relissues %]
994     [% IF ( loop.odd ) %]
995     <tr>
996     [% ELSE %]
997     <tr class="highlight">
998     [% END %]
999         [% IF ( relissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
1000             [% relissue.dd %]</td>
1001         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relissue.biblionumber %]&amp;type=intra"><strong>[% relissue.title |html %]</strong></a>[% IF ( relissue.author ) %], by [% relissue.author %][% END %][% IF ( relissue.itemnotes ) %]- <span class="circ-hlt">[% relissue.itemnotes %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relissue.biblionumber %]&amp;itemnumber=[% relissue.itemnumber %]#item[% relissue.itemnumber %]">[% relissue.barcode %]</a></td>
1002         <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %]<img src="[% relissue.itemtype_image %]" alt="" />[% END %][% END %][% relissue.itemtype %]</td>
1003         <td>[% relissue.displaydate %]</td>
1004         <td>[% relissue.issuingbranchname %]</td>
1005         <td>[% relissue.itemcallnumber %]</td>
1006         <td>[% relissue.charge %]</td>
1007         <td>[% relissue.replacementprice %]</td><td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissue.borrowernumber %]">[% relissue.firstname %] [% relissue.surname %] ([% relissue.cardnumber %])</a></td>
1008      </tr>
1009     [% END %] <!-- /loop relissues -->
1010     <!-- /if relissues -->[% END %]
1011 [% IF ( relprevissues ) %]
1012 <tr><th class="{sorter: false}" colspan="11"><a name="relprevious" id="relprevious"></a>Previous checkouts</th></tr>
1013     [% FOREACH relprevissue IN relprevissues %]
1014     [% IF ( loop.odd ) %]
1015         <tr>
1016     [% ELSE %]
1017         <tr class="highlight">
1018     [% END %]
1019         [% IF ( relprevissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
1020         [% relprevissue.dd %]
1021         </td>
1022         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relprevissue.biblionumber %]&amp;type=intra"><strong>[% relprevissue.title |html %]</strong></a>[% IF ( relprevissue.author ) %], by [% relprevissue.author %][% END %] [% IF ( relprevissue.itemnotes ) %]- [% relprevissue.itemnotes %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relprevissue.biblionumber %]&amp;itemnumber=[% relprevissue.itemnumber %]#item[% relprevissue.itemnumber %]">[% relprevissue.barcode %]</a></td>
1023         <td>[% UNLESS noItemTypeImages %][% IF relprevissue.itemtype_image %]<img src="[% relprevissue.itemtype_image %]" alt="" />[% END %][% END %][% relprevissue.itemtype %]</td>
1024         <td>[% relprevissue.displaydate %]</td>
1025         <td>[% relprevissue.issuingbranchname %]</td>
1026         <td>[% relprevissue.itemcallnumber %]</td>
1027         [% IF ( relprevissue.multiple_borrowers ) %]<td>[% relprevissue.firstname %] [% relprevissue.surname %]</td>[% END %]
1028         <td>[% relprevissue.charge %]</td>
1029         <td>[% relprevissue.replacementprice %]</td>
1030         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relprevissue.borrowernumber %]">[% relprevissue.firstname %] [% relprevissue.surname %] ([% relprevissue.cardnumber %])</a></td>
1031
1032     </tr>
1033     <!-- /loop relprevissue -->[% END %]
1034 <!--/if relprevissues -->[% END %]
1035       </tbody>
1036     </table>
1037
1038 </div>
1039 [% END %]<!-- end displayrelissues -->
1040
1041
1042 <div id="reserves">
1043 [% IF ( reservloop ) %]
1044     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
1045         <input type="hidden" name="from" value="circ" />
1046     <table id="holdst">
1047         <thead><tr>
1048             <th>Hold date</th>
1049             <th>Title</th>
1050             <th>Call number</th>
1051             <th>Barcode</th>
1052             <th>Priority</th>
1053             <th>Delete?</th>
1054             <th>&nbsp;</th>
1055         </tr></thead>
1056                 <tbody>
1057         [% FOREACH reservloo IN reservloop %]
1058         <tr class="[% reservloo.color %]">
1059                     <td>[% reservloo.reservedate %]</td>
1060                     <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reservloo.biblionumber %]"><strong>[% reservloo.title |html %]</strong></a>[% IF ( reservloo.author ) %], by [% reservloo.author %][% END %]</td>
1061                     <td>[% reservloo.itemcallnumber %]</td>
1062                                         <td><em>[% IF ( reservloo.barcodereserv ) %]Item [% reservloo.barcodereserv %]
1063                         [% END %][% IF ( reservloo.waiting ) %] <strong>waiting at [% reservloo.waitingat %]</strong>
1064                         [% END %]
1065                         [% IF ( reservloo.transfered ) %] <strong>in transit</strong> from
1066                         [% reservloo.frombranch %] since [% reservloo.datesent %]
1067                         [% END %]
1068                         [% IF ( reservloo.nottransfered ) %] hasn't been transferred yet from [% reservloo.nottransferedby %]</i>
1069                         [% END %]</em></td>
1070                     <td>
1071                         [% IF ( reservloo.waitingposition ) %]<b> [% reservloo.waitingposition %] </b>[% END %]
1072                     </td>
1073                                 <td><select name="rank-request">
1074                     <option value="n">No</option>
1075                     <option value="del">Yes</option>
1076                 </select>
1077                 <input type="hidden" name="biblionumber" value="[% reservloo.biblionumber %]" />
1078                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1079                 <input type="hidden" name="reservenumber" value="[% reservloo.reservenumber %]" />
1080             </td>
1081             <td>[% IF ( reservloo.suspend ) %]Suspended [% IF ( reservloo.suspend_until ) %] until [% reservloo.suspend_until | $KohaDates %][% END %][% END %]</td>
1082             </tr>
1083         [% END %]</tbody>
1084     </table>
1085             <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel marked holds" /></fieldset>
1086     </form>
1087
1088     [% IF SuspendHoldsIntranet %]
1089     <fieldset class="action">
1090         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1091             <input type="hidden" name="from" value="circ" />
1092             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1093             <input type="submit" value="Suspend all holds" />
1094
1095             [% IF AutoResumeSuspendedHolds %]
1096             <label for="suspend_until">until</label>
1097             <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
1098             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
1099              [% END %]
1100         </form>
1101     </fieldset>
1102
1103     <fieldset class="action">
1104         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1105             <input type="hidden" name="from" value="circ" />
1106             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1107             <input type="hidden" name="suspend" value="0" />
1108             <input type="submit" value="Resume all suspended holds" />
1109         </form>
1110     </fieldset>
1111     [% END # IF SuspendHoldsIntranet %]
1112
1113 [% ELSE %]
1114         <p>Patron has nothing on hold.</p>
1115 [% END %]
1116 </div> <!-- reservesloop -->
1117
1118 [% END %] <!-- borrowernumber -->
1119 </div></div>
1120 [% END %]
1121
1122
1123
1124 </div>
1125 </div>
1126 [% UNLESS ( CGIselectborrower ) %][% IF ( borrowernumber ) %]<div class="yui-b">
1127 [% INCLUDE 'circ-menu.inc' %]
1128 </div>[% END %][% END %]
1129 </div>
1130 [% INCLUDE 'intranet-bottom.inc' %]