2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Circulation
4 [% IF borrowernumber %]
5 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% INCLUDE 'calendar.inc' %]
10 [% IF ( UseTablesortForCirc ) %]<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>[% END %]
11 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
12 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
13 <script type="text/javascript">
15 [% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %]
16 [% IF ( UseTablesortForCirc ) %]$.tablesorter.addParser({
18 is: function(s) {return false; },
19 format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
22 [% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
23 $(document).ready(function() {
25 $('#patronlists').tabs();
26 [% IF ( UseTablesortForCirc ) %]$.tablesorter.defaults.widgets = ['zebra'];
27 $("#issuest").tablesorter({[% IF ( dateformat_metric ) %]
28 dateFormat: 'uk',[% END %]
29 headers: { 1: { sorter: 'articles' },6: { sorter: false },7:{sorter:false},8:{sorter:false},9:{sorter:false}}
31 $("#relissuest").tablesorter({[% IF ( dateformat_metric ) %]
32 dateFormat: 'uk',[% END %]
33 headers: { 1: { sorter: 'articles' },6: { sorter: false },7:{sorter:false},8:{sorter:false},9:{sorter:false}}
36 //FIXME: Sorting does not work when there are previous checkouts only
37 // (It works fine when there are only checkouts of the day, or both previous and today checkouts)
38 $("#issuest").bind("sortEnd",function() {
39 $("#previous").parents("tr").remove(); // 'previous checkouts' header chokes table sorter
41 $("#relissuest").bind("sortEnd",function() {
42 $("#relprevious").parents("tr").remove(); // 'previous checkouts' header chokes table sorter
44 $("#holdst").tablesorter({[% IF ( dateformat_metric ) %]
45 dateFormat: 'uk',[% END %]
47 headers: { 1: { sorter: 'articles' },5: { sorter: false }}
49 [% IF ( AllowRenewalLimitOverride ) %]
50 $( '#override_limit' ).click( function () {
52 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
54 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
56 } ).attr( 'checked', false );
57 [% END %][% IF ( CircAutoPrintQuickSlip ) %]
58 // listen submit to trigger qslip on empty checkout
59 $('#mainform').bind('submit',function() {
60 if ($('#barcode').val() == '') {
61 return printx_window('qslip'); }
65 var allcheckboxes = $(".checkboxed");
66 $("#renew_all").click(function(){
67 $(allcheckboxes).checkCheckboxes(":input[name*=items]");
68 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]");
70 $("#CheckAllitems").click(function(){
71 $(allcheckboxes).checkCheckboxes(":input[name*=items]");
72 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
74 $("#CheckNoitems").click(function(){
75 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
77 $("#CheckAllreturns").click(function(){
78 $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]");
79 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
81 $("#CheckNoreturns" ).click(function(){
82 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
85 $("#CheckAllexports").click(function(){
86 $(".checkboxed").checkCheckboxes(":input[name*=biblionumbers]");
87 $(".checkboxed").unCheckCheckboxes(":input[name*=items]");
90 $("#CheckNoexports").click(function(){
91 $(".checkboxed").unCheckCheckboxes(":input[name*=biblionumbers]");
95 $("#relrenew_all").click(function(){
96 $(allcheckboxes).checkCheckboxes(":input[name*=items]");
97 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]");
99 $("#relCheckAllitems").click(function(){
100 $(allcheckboxes).checkCheckboxes(":input[name*=items]");
101 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
103 $("#relCheckNoitems").click(function(){
104 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
106 $("#relCheckAllreturns").click(function(){
107 $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]");
108 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
110 $("#relCheckNoreturns").click(function(){
111 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
114 [% IF ( CAN_user_circulate_override_renewals ) %]
115 [% IF ( AllowRenewalLimitOverride ) %]
116 $( '#override_limit' ).click( function () {
117 if ( this.checked ) {
118 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
120 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
122 } ).attr( 'checked', false );
125 // Clicking the table cell checks the checkbox inside it
126 $("td").click(function(e){
127 if(e.target.tagName.toLowerCase() == 'td'){
128 $(this).find("input:checkbox:visible").each( function() {
129 if($(this).attr("checked")){
130 $(this).removeAttr("checked");
132 $(this).attr("checked","checked");
133 // radioCheckBox($(this));
138 // prevent adjacent checkboxes from being checked simultaneously
139 function radioCheckBox(box){
140 box.parents("td").siblings().find("input:checkbox:visible").each(function(){
141 if($(this).attr("checked")){
142 $(this).removeAttr("checked");
147 $("#messages ul").after("<a href=\"#\" id=\"addmessage\">"+_("Add a new message")+"</a>");
148 $("#borrower_messages .cancel").click(function(){
149 $("#add_message_form").hide();
150 $("#addmessage").show();
152 $("#addmessage").click(function (){
154 $("#add_message_form").show();
157 $("input.radio").click(function(){
158 radioCheckBox($(this));
160 $("#exportmenuc").empty();
163 $("#newduedate").datepicker({ minDate: 1 }); // require that renewal date is after today
164 $("#duedatespec").datetimepicker({
165 onSelect: function(dateText, inst) { $("#barcode").focus(); },
172 function initExportButton() {
174 { text: _("ISO2709 with items"), onclick: {fn: function(){export_submit("iso2709_995")}} },
175 { text: _("ISO2709 without items"), onclick: {fn: function(){export_submit("iso2709")}} },
176 { text: _("CSV"), onclick: {fn: function(){export_submit("csv")}} },
178 new YAHOO.widget.Button({
180 label: _("Export checkouts"),
181 name: "exportmenubutton",
183 container: "exportmenuc"
187 function export_submit(format) {
188 if ($("input:checkbox[name='biblionumbers'][checked]").length < 1){
189 alert(_("You must select a checkout to export"));
193 $("input:checkbox[name='biblionumbers']").each( function(){
194 var input_item = $(this).siblings("input:checkbox");
195 if ( $(this).is(":checked") ) {
196 $(input_item).attr("checked", "checked");
198 $(input_item).attr("checked", "");
202 if (format == 'iso2709_995') {
204 $("#dont_export_item").val(0);
205 } else if (format == 'iso2709') {
206 $("#dont_export_item").val(1);
208 [% UNLESS ( export_with_csv_profile ) %]
209 alert(_("You must define a csv profile for export (in tools>CSV export profiles) and fill the ExportWithCsvProfile system preference"));
213 document.issues.action="/cgi-bin/koha/tools/export.pl";
214 document.getElementById("export_format").value = format;
215 document.issues.submit();
217 /* Reset form action to its initial value */
218 document.issues.action="/cgi-bin/koha/reserve/renewscript.pl";
222 function validate1(date) {
223 var today = new Date();
224 if ( date < today ) {
233 <body id="circ_circulation" class="circ">
235 [% INCLUDE 'header.inc' %]
236 [% INCLUDE 'circ-search.inc' %]
238 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
239 [% IF ( borrowernumber ) %]
240 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
242 <strong>Checkouts</strong>
245 [% IF ( CGIselectborrower ) %]
246 <div id="doc" class="yui-t7">
252 <div id="doc3" class="yui-t2">
259 [% IF ( borrowernumber ) %]
260 [% INCLUDE 'circ-toolbar.inc' %]
263 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
264 <div style="display: none;" id="add_message_form">
265 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
266 <fieldset id="borrower_messages" class="brief">
267 <legend>Leave a message</legend>
270 <label for="message_type">Add a message for:</label>
271 <select name="message_type" id="message_type">
272 <option value="L">Other librarians</option>
273 <option value="B">[% firstname %]</option>
276 [% IF ( canned_bor_notes_loop ) %]
278 <label for="type">Predefined notes: </label>
279 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
280 <option value="">Select note</option>
281 [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
282 <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
288 <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
291 <fieldset class="action">
292 <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
295 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
296 <input type="hidden" name="branchcode" value="[% branch %]" />
301 [% IF ( dateexpiry ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
303 [% IF additional_materials %]
304 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
305 [% additional_materials %]
309 [% IF ( alert.ITEM_LOST ) %]
310 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
313 [% IF ( NEEDSCONFIRMATION ) %]
316 <div id="circ_needsconfirmation" class="dialog alert">
317 <h3>Please confirm checkout</h3>
320 [%IF ( AGE_RESTRICTION ) %]
321 <li>Age restriction [% AGE_RESTRICTION %]. Check out anyway?</li>
325 <li>The patron has a debt of [% DEBT %]</li>
328 [% IF ( RENEW_ISSUE ) %]
329 <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?</li>
332 [% IF ( RESERVE_WAITING ) %]
333 <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>
336 [% IF ( RESERVED ) %]
337 <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>
340 [% IF ( ISSUED_TO_ANOTHER ) %]
341 <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>
344 [% IF ( TOO_MANY ) %]
345 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
348 [% IF ( BORRNOTSAMEBRANCH ) %]
349 <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
352 [% IF ( PATRON_CANT ) %]
353 <li>This patron can't check out this item per library circulation policy</li>
356 [% IF ( NOT_FOR_LOAN_FORCING ) %]
357 <li>Item is normally not for loan. Check out anyway?</li>
360 [% IF ( USERBLOCKEDOVERDUE ) %]
361 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). Check out anyway?</li>
364 [% IF ( ITEM_LOST ) %]
365 <li>This item has been lost with a status of "[% ITEM_LOST %]". Check out anyway?</li>
369 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
374 <script language="JavaScript" type="text/javascript">
375 $(document).ready(function() {
376 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
380 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
382 [% IF ( RESERVED ) %]
384 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
385 <label for="cancelreserve">Cancel hold</label>
389 [% IF ( RESERVE_WAITING ) %]
391 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
392 <label for="cancelreserve">Cancel hold</label>
396 <input type="hidden" name="barcode" value="[% barcode %]" />
397 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
398 <input type="hidden" name="issueconfirmed" value="1" />
399 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
400 [% IF ( INVALID_DATE ) %]
402 <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" />
403 <label for="duedatespec">Due date</label>
406 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
408 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
409 <input type="hidden" name="branch" value="[% branch %]" />
410 [% IF ( RENEW_ISSUE ) %]
411 <input type="submit" class="approve" value="Yes, Renew (Y)" accesskey="y" />
413 <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
417 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
418 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
419 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
420 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
421 [% IF ( RENEW_ISSUE ) %]
422 <input type="submit" class="deny" value="No, Don't Renew (N)" accesskey="n" />
424 <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
429 [% END %] <!-- NEEDSCONFIRMATION -->
431 [% IF ( IMPOSSIBLE ) %]
434 <audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
438 <div id="circ_impossible" class="dialog alert">
439 <!-- RESULT OF ISSUING REQUEST -->
442 <li>Local use recorded</li>
445 [% IF ( INVALID_DATE ) %]
446 <li>The due date "[% INVALID_DATE %]" is invalid</li>
449 [% IF ( UNKNOWN_BARCODE ) %]
450 <li>The barcode was not found [% barcode %]</li>
451 [% IF ( fast_cataloging ) %]
452 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
453 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode %]&borrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Fast cataloging</a>
458 [% IF ( NOT_FOR_LOAN ) %]
459 <li>Item not for loan</li>
462 [% IF ( WTHDRAWN ) %]
463 <li>Item has been withdrawn</li>
466 [% IF ( RESTRICTED ) %]
467 <li>Item is restricted</li>
471 <li>Patron's address is in doubt</li>
474 [% IF ( CARD_LOST ) %]
475 <li>Patron's card is lost</li>
478 [% IF ( DEBARRED ) %]
479 <li>Patron is restricted</li>
482 [% IF ( NO_MORE_RENEWALS ) %]
483 <li>No more renewals possible</li>
486 [%IF ( AGE_RESTRICTION ) %]
487 <li>Age restriction [% AGE_RESTRICTION %].</li>
491 <li>Patron's card is expired</li>
494 [% IF ( ITEMNOTSAMEBRANCH ) %]
495 <li>This item belongs to [% itemhomebranch %] and cannot be issued from this location.</li>
498 [% IF ( USERBLOCKEDREMAINING ) %]
499 <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li>
502 [% IF ( USERBLOCKEDOVERDUE ) %]
503 <li>Checkouts are BLOCKED because patron has overdue items</li>
510 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
512 [% END %] <!-- /impossible -->
515 <p>Item checked out</p>
519 [% INCLUDE 'patron-toolbar.inc' %]
521 No patron matched <span class="ex">[% message %]</span>
526 [% IF ( CGIselectborrower ) %]
527 [% INCLUDE 'patron-toolbar.inc' %]
529 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
530 <fieldset id="circ_circulation_selectborrower" class="brief">
531 <legend>Patron selection</legend>
533 <input type="hidden" name="branch" value="[% branch %]" />
534 <input type="hidden" name="printer" value="[% printer %]" />
535 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
536 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
539 <label for="borrowernumber">Select a patron: </label>
540 [% CGIselectborrower %]
543 <p><input type="submit" value="Select" /></p>
546 [% ELSE %] <!-- CGIselectborrower -->
548 <!-- BARCODE ENTRY -->
550 [% IF ( borrowernumber ) %]
552 [% UNLESS ( noissues ) %]
554 <div class="yui-u first">
561 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
562 <fieldset id="circ_circulation_issue">
563 [% IF ( DisplayClearScreenButton ) %]
564 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
567 <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
569 <div class="hint">Enter item barcode:</div>
571 [% IF ( NEEDSCONFIRMATION ) %]
572 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
574 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
576 <input type="submit" value="Check Out" />
578 [% IF ( SpecifyDueDate ) %]<div class="date-select">
579 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
580 [% IF ( duedatespec ) %]<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" />[% ELSE %]<input type="text" size="13" id="duedatespec" name="duedatespec" value="" />
582 <label for="stickyduedate"> Remember for session:</label>
583 [% IF ( stickyduedate ) %]
584 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
586 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
588 <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;" />
590 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
591 <input type="hidden" name="branch" value="[% branch %]" />
592 <input type="hidden" name="printer" value="[% printer %]" />
593 <input type="hidden" name="print" value="maybe" />
594 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
596 <input type="hidden" name="charges" value="yes" />
597 <input type="hidden" name="oldamount" value="[% amountold %]" />
600 </form></div>[% END %]<!-- /unless noissues -->
602 [% IF ( noissues ) %]<div>[% ELSE %]<div class="yui-u">[% END %]
605 [% IF ( noissues ) %]
606 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
607 <div id="circmessages" class="circmessage warning">
609 <div id="circmessages" class="circmessage attention">
612 <h3>[% IF ( noissues ) %]
614 [% ELSE %]Attention:[% END %]</h3>
617 [% IF ( warndeparture ) %]
618 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
619 Patron's card expires on [% expiry %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% borrowernumber %]&categorycode=[% categorycode %]">Edit Details</a>
624 [% IF ( returnbeforeexpiry ) %]
625 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
626 expiry date is before the date due, the date due will be set to the expiry date
631 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
632 [% IF ( expiry ) %]Patron's card expired on [% expiry %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% borrowernumber %]&categorycode=[% categorycode %]">Edit Details</a>
638 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
642 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
645 [% IF ( userdebarred ) %]
647 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted [% IF (userdebarreddate ) %] until [% userdebarreddate %] [% END %] [% IF (debarredcomment ) %] with the comment "[% debarredcomment %]"[% END %]
648 <form class="inline compact" action="/cgi-bin/koha/members/setstatus.pl" method="post">
649 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
650 <input type="hidden" name="destination" value="circ" />
651 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
652 <input type="submit" value="Lift restriction" />
656 [% 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>
661 <span class="circ-hlt">Fees & Charges:</span> Patron has <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Outstanding fees & charges[% IF ( chargesamount ) %] of [% chargesamount %][% END %]</a>.
662 [% IF ( charges_is_blocker ) %]
663 Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
665 Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Payment</a></li>
670 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
679 [% IF ( WaitingReserveLoop ) %]
680 <div id="holdswaiting" class="circmessage">
681 <h4>Holds waiting:</h4>
682 [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
684 <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 %] Hold placed on [% WaitingReserveLoo.reservedate %].
685 [% IF ( WaitingReserveLoo.waitingat ) %]
686 <br />[% IF ( WaitingReserveLoo.waitinghere ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]Waiting at [% WaitingReserveLoo.waitingat %]</strong>
692 <!-- /If WaitingReserveLoop -->[% END %]
694 <div id="circnotes" class="circmessage">
696 <p><span class="circ-hlt">[% notesmsg %]</span></p>
700 <!-- /If notes -->[% END %]
702 <div id="messages" class="circmessage">
705 [% FOREACH lib_messages_loo IN lib_messages_loop %]
707 <span class="circ-hlt">
708 [% lib_messages_loo.message_date_formatted %]
709 [% lib_messages_loo.branchcode %]
710 <i>"[% lib_messages_loo.message %]"</i>
712 [% IF ( lib_messages_loo.can_delete ) %]
713 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
715 [% IF ( all_messages_del ) %]
716 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
721 [% FOREACH bor_messages_loo IN bor_messages_loop %]
722 <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 %]&borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
723 [% ELSIF ( all_messages_del ) %]
724 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
731 <!-- /If flagged -->[% END %]
738 <div class="yui-g"><div id="patronlists" class="toptabs">
741 <li> [% IF ( issuecount ) %]
742 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
744 <a href="#checkouts">0 Checkouts</a>
746 [% IF ( displayrelissues ) %]
747 <li><a href="#relissues">Relatives' checkouts</a></li>
749 <li>[% IF ( countreserv ) %]
750 <a href="#reserves">[% countreserv %] Hold(s)</a>
752 <a href="#reserves">0 Holds</a>
757 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
759 [% IF ( issuecount ) %]
760 <form name="issues" action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
761 <input type="hidden" value="circ" name="destination" />
762 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
763 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
764 <input type="hidden" name="branch" value="[% branch %]" />
767 <th scope="col">Due date</th>
768 <th scope="col">Title</th>
769 <th scope="col">Item type</th>
770 <th scope="col">Checked out on</th>
771 <th scope="col">Checked out from</th>
772 <th scope="col">Call no</th>
773 <th scope="col">Charge</th>
774 <th scope="col">Price</th>
775 <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
776 <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
777 [% IF export_remove_fields OR export_with_csv_profile %]
778 <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th>
781 [% IF ( todayissues ) %]</thead>
782 [% INCLUDE 'checkouts-table-footer.inc' %]
785 [% FOREACH todayissue IN todayissues %]
786 [% IF ( loop.odd ) %]
789 <tr class="highlight">
791 [% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
794 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% todayissue.biblionumber %]&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 %]&itemnumber=[% todayissue.itemnumber %]#item[% todayissue.itemnumber %]">[% todayissue.barcode %]</a></td>
795 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %]<img src="[% todayissue.itemtype_image %]" alt="" />[% END %][% END %][% todayissue.itemtype %]</td>
796 <td>[% todayissue.checkoutdate %]</td>
797 [% IF ( todayissue.multiple_borrowers ) %]<td>[% todayissue.firstname %] [% todayissue.surname %]</td>[% END %]
798 <td>[% todayissue.issuingbranchname %]</td>
799 <td>[% todayissue.itemcallnumber %]</td>
800 <td>[% todayissue.charge %]</td>
801 <td>[% todayissue.replacementprice %]</td>
802 [% IF ( todayissue.renew_failed ) %]
803 <td class="problem">Renewal failed</td>
805 <td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span>
806 [% IF ( todayissue.can_renew ) %]
807 <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
808 [% IF ( todayissue.od ) %]
809 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
811 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
814 [% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
815 <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
816 [% IF ( todayissue.od ) %]
817 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
819 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
822 <span class="renewals-disabled">
824 [% IF ( todayissue.renew_error_on_reserve ) %]
825 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
827 [% IF ( todayissue.renew_error_too_many ) %]
830 [% IF ( todayissue.can_confirm ) %]
836 [% IF ( todayissue.return_failed ) %]
837 <td class="problem">Checkin failed</td>
839 [% IF ( todayissue.renew_error_on_reserve ) %]
840 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
841 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
844 <td><input type="checkbox" class="radio" name="barcodes[]" value="[% todayissue.barcode %]" />
845 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
849 [% IF export_remove_fields OR export_with_csv_profile %]
850 <td style="text-align:center;">
851 <input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" />
852 <input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" />
856 [% END %] <!-- /loop todayissues -->
857 <!-- /if todayissues -->[% END %]
858 [% IF ( previssues ) %]
859 [% IF ( todayissues ) %]<tr><th colspan="11"><a name="previous" id="previous"></a>Previous checkouts</th></tr>[% ELSE %]
860 <tr><th class="{sorter: false}" colspan="11"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
861 [% INCLUDE 'checkouts-table-footer.inc' %]
864 [% FOREACH previssue IN previssues %]
865 [% IF ( loop.odd ) %]
868 <tr class="highlight">
870 [% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
873 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% previssue.biblionumber %]&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 %]&itemnumber=[% previssue.itemnumber %]#item[% previssue.itemnumber %]">[% previssue.barcode %]</a></td>
875 [% previssue.itemtype %]
877 <td>[% previssue.displaydate %]</td>
878 [% IF ( previssue.multiple_borrowers ) %]<td>[% previssue.firstname %] [% previssue.surname %]</td>[% END %]
879 <td>[% previssue.issuingbranchname %]</td>
880 <td>[% previssue.itemcallnumber %]</td>
881 <td>[% previssue.charge %]</td>
882 <td>[% previssue.replacementprice %]</td>
883 [% IF ( previssue.renew_failed ) %]
884 <td class="problem">Renewal failed</td>
886 <td><span style="padding: 0 1em;">[% IF ( previssue.renewals ) %][% previssue.renewals %][% ELSE %]0[% END %]</span>
887 [% IF ( previssue.can_renew ) %]
888 <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
889 [% IF ( previssue.od ) %]
890 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
892 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
895 [% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
896 <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
897 [% IF ( previssue.od ) %]
898 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
900 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
903 <span class="renewals-disabled">
905 [% IF ( previssue.renew_error_on_reserve ) %]
906 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
908 [% IF ( previssue.renew_error_too_many ) %]
911 [% IF ( previssue.can_confirm ) %]
917 [% IF ( previssue.return_failed ) %]
918 <td class="problem">Check-in failed</td>
920 [% IF ( previssue.renew_error_on_reserve ) %]
921 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
922 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
925 <td><input type="checkbox" class="radio" name="barcodes[]" value="[% previssue.barcode %]" />
926 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
930 [% IF export_remove_fields OR export_with_csv_profile %]
931 <td style="text-align:center;">
932 <input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" />
933 <input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" />
937 <!-- /loop previssues -->[% END %]
938 <!--/if previssues -->[% END %]
941 [% IF ( issuecount ) %]
942 <fieldset class="action">
943 [% IF ( CAN_user_circulate_override_renewals ) %]
944 [% IF ( AllowRenewalLimitOverride ) %]
945 <label for="override_limit">Override renewal limit:</label>
946 <input type="checkbox" name="override_limit" id="override_limit" value="1" />
949 <input type="submit" name="renew_checked" value="Renew or Return checked items" />
950 <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
951 [% IF export_remove_fields OR export_with_csv_profile %]
953 Don't export fields : <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" />
954 <span id="exportmenuc">Export</span>
955 <input type="hidden" name="op" value="export" />
956 <input type="hidden" id="export_format" name="format" value="iso2709" />
957 <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
958 <input type="hidden" id="record_type" name="record_type" value="bibs" />
964 <p>Patron has nothing checked out.</p>
970 [% IF ( displayrelissues ) %]
972 <table id="relissuest">
975 <th scope="col">Due date</th>
976 <th scope="col">Title</th>
977 <th scope="col">Item type</th>
978 <th scope="col">Checked out on</th>
979 <th scope="col">Checked out from</th>
980 <th scope="col">Call no</th>
981 <th scope="col">Charge</th>
982 <th scope="col">Price</th>
983 <th scope="col">Patron</th>
986 [% IF ( relissues ) %] <tbody>
988 [% FOREACH relissue IN relissues %]
989 [% IF ( loop.odd ) %]
992 <tr class="highlight">
994 [% IF ( relissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
995 [% relissue.dd %]</td>
996 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relissue.biblionumber %]&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 %]&itemnumber=[% relissue.itemnumber %]#item[% relissue.itemnumber %]">[% relissue.barcode %]</a></td>
997 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %]<img src="[% relissue.itemtype_image %]" alt="" />[% END %][% END %][% relissue.itemtype %]</td>
998 <td>[% relissue.displaydate %]</td>
999 <td>[% relissue.issuingbranchname %]</td>
1000 <td>[% relissue.itemcallnumber %]</td>
1001 <td>[% relissue.charge %]</td>
1002 <td>[% relissue.replacementprice %]</td><td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissue.borrowernumber %]">[% relissue.firstname %] [% relissue.surname %] ([% relissue.cardnumber %])</a></td>
1004 [% END %] <!-- /loop relissues -->
1005 <!-- /if relissues -->[% END %]
1006 [% IF ( relprevissues ) %]
1007 <tr><th class="{sorter: false}" colspan="11"><a name="relprevious" id="relprevious"></a>Previous checkouts</th></tr>
1008 [% FOREACH relprevissue IN relprevissues %]
1009 [% IF ( loop.odd ) %]
1012 <tr class="highlight">
1014 [% IF ( relprevissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
1015 [% relprevissue.dd %]
1017 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relprevissue.biblionumber %]&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 %]&itemnumber=[% relprevissue.itemnumber %]#item[% relprevissue.itemnumber %]">[% relprevissue.barcode %]</a></td>
1018 <td>[% UNLESS noItemTypeImages %][% IF relprevissue.itemtype_image %]<img src="[% relprevissue.itemtype_image %]" alt="" />[% END %][% END %][% relprevissue.itemtype %]</td>
1019 <td>[% relprevissue.displaydate %]</td>
1020 <td>[% relprevissue.issuingbranchname %]</td>
1021 <td>[% relprevissue.itemcallnumber %]</td>
1022 [% IF ( relprevissue.multiple_borrowers ) %]<td>[% relprevissue.firstname %] [% relprevissue.surname %]</td>[% END %]
1023 <td>[% relprevissue.charge %]</td>
1024 <td>[% relprevissue.replacementprice %]</td>
1025 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relprevissue.borrowernumber %]">[% relprevissue.firstname %] [% relprevissue.surname %] ([% relprevissue.cardnumber %])</a></td>
1028 <!-- /loop relprevissue -->[% END %]
1029 <!--/if relprevissues -->[% END %]
1034 [% END %]<!-- end displayrelissues -->
1038 [% IF ( reservloop ) %]
1039 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
1040 <input type="hidden" name="from" value="circ" />
1045 <th>Call number</th>
1052 [% FOREACH reservloo IN reservloop %]
1053 <tr class="[% reservloo.color %]">
1054 <td>[% reservloo.reservedate %]</td>
1055 <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>
1056 <td>[% reservloo.itemcallnumber %]</td>
1057 <td><em>[% IF ( reservloo.barcodereserv ) %]Item [% reservloo.barcodereserv %]
1058 [% END %][% IF ( reservloo.waiting ) %] <strong>waiting at [% reservloo.waitingat %]</strong>
1060 [% IF ( reservloo.transfered ) %] <strong>in transit</strong> from
1061 [% reservloo.frombranch %] since [% reservloo.datesent %]
1063 [% IF ( reservloo.nottransfered ) %] hasn't been transferred yet from [% reservloo.nottransferedby %]</i>
1066 [% IF ( reservloo.waitingposition ) %]<b> [% reservloo.waitingposition %] </b>[% END %]
1068 <td><select name="rank-request">
1069 <option value="n">No</option>
1070 <option value="del">Yes</option>
1072 <input type="hidden" name="biblionumber" value="[% reservloo.biblionumber %]" />
1073 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1074 <input type="hidden" name="reservenumber" value="[% reservloo.reservenumber %]" />
1076 <td>[% IF ( reservloo.suspend ) %]Suspended [% IF ( reservloo.suspend_until ) %] until [% reservloo.suspend_until | $KohaDates %][% END %][% END %]</td>
1080 <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel marked holds" /></fieldset>
1083 [% IF SuspendHoldsIntranet %]
1084 <fieldset class="action">
1085 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1086 <input type="hidden" name="from" value="circ" />
1087 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1088 <input type="submit" value="Suspend all holds" />
1090 [% IF AutoResumeSuspendedHolds %]
1091 <label for="suspend_until">until</label>
1092 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
1093 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
1098 <fieldset class="action">
1099 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1100 <input type="hidden" name="from" value="circ" />
1101 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1102 <input type="hidden" name="suspend" value="0" />
1103 <input type="submit" value="Resume all suspended holds" />
1106 [% END # IF SuspendHoldsIntranet %]
1109 <p>Patron has nothing on hold.</p>
1111 </div> <!-- reservesloop -->
1113 [% END %] <!-- borrowernumber -->
1121 [% UNLESS ( CGIselectborrower ) %][% IF ( borrowernumber ) %]<div class="yui-b">
1122 [% INCLUDE 'circ-menu.inc' %]
1123 </div>[% END %][% END %]
1125 [% INCLUDE 'intranet-bottom.inc' %]