3 [% IF ( export_remove_fields OR export_with_csv_profile ) %]
4 [% SET exports_enabled = 1 %]
6 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 [% SET destination = "circ" %]
9 <title>Koha › Circulation
10 [% IF borrowernumber %]
11 › Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
14 [% INCLUDE 'doc-head-close.inc' %]
15 [% INCLUDE 'calendar.inc' %]
16 [% IF ( UseTablesortForCirc ) %]<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
17 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
18 [% INCLUDE 'datatables-strings.inc' %]
19 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>[% END %]
20 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
21 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script>
22 <script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script>
23 <script type="text/javascript">
25 var MSG_ADD_MESSAGE = _("Add a new message");
26 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
27 [% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %]
28 [% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %]
29 [% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
30 $(document).ready(function() {
31 $('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{
32 // Correct table sizing for tables hidden in tabs
33 // http://www.datatables.net/examples/api/tabs_and_scrolling.html
34 "show": function(event, ui) {
35 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
36 if ( oTable.length > 0 ) {
37 oTable.fnAdjustColumnSizing();
41 [% IF ( UseTablesortForCirc ) %]
42 $("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, {
46 { "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false }
49 { "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,null,null[% IF ( exports_enabled ) %],null[% END %]
54 $("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
58 { "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,{ "sType": "html" }
63 $("#issuest").on("sort",function() {
64 $("#previous").hide(); // Don't want to see "previous checkouts" header sorted with other rows
66 $("#relissuest").on("sort",function() {
67 $("#relprevious").hide(); // Don't want to see "previous checkouts" header sorted with other rows
70 [% IF ( AllowRenewalLimitOverride ) %]
71 $( '#override_limit' ).click( function () {
73 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
75 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
77 } ).attr( 'checked', false );
78 [% END %][% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
79 // listen submit to trigger qslip on empty checkout
80 $('#mainform').bind('submit',function() {
81 if ($('#barcode').val() == '') {
82 return printx_window( '[% CircAutoPrintQuickSlip %]' ); }
85 [% IF ( CAN_user_circulate_override_renewals ) %]
86 [% IF ( AllowRenewalLimitOverride ) %]
87 $( '#override_limit' ).click( function () {
89 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
91 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
93 } ).attr( 'checked', false );
100 <body id="circ_circulation" class="circ">
102 [% INCLUDE 'header.inc' %]
103 [% INCLUDE 'circ-search.inc' %]
105 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
106 [% IF ( borrowernumber ) %]
107 <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
109 <strong>Checkouts</strong>
112 [% IF ( CGIselectborrower ) %]
113 <div id="doc" class="yui-t7">
119 <div id="doc3" class="yui-t2">
126 [% IF ( borrowernumber ) %]
127 [% INCLUDE 'members-toolbar.inc' %]
130 <!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
131 <div style="display: none;" id="add_message_form">
132 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
133 <fieldset id="borrower_messages" class="brief">
134 <legend>Leave a message</legend>
137 <label for="message_type">Add a message for:</label>
138 <select name="message_type" id="message_type">
139 <option value="L">Other librarians</option>
140 <option value="B">[% firstname %]</option>
143 [% IF ( canned_bor_notes_loop ) %]
145 <label for="type">Predefined notes: </label>
146 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
147 <option value="">Select note</option>
148 [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
149 <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
155 <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
158 <fieldset class="action">
159 <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
162 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
163 <input type="hidden" name="branchcode" value="[% branch %]" />
168 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry %]</div>[% END %]
170 [% IF additional_materials %]
171 <div id="materials" class="dialog message">Note about the accompanying materials: <br />
172 [% additional_materials %]
176 [% IF ( alert.ITEM_LOST ) %]
177 <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
180 [% IF ( alert.OTHER_CHARGES ) %]
181 <div class="dialog message">The patron has unpaid charges for reserves, rentals etc of [% alert.OTHER_CHARGES %]</div>
184 [% IF ( NEEDSCONFIRMATION ) %]
187 <div id="circ_needsconfirmation" class="dialog alert">
188 [% IF CAN_user_circulate_force_checkout %]
189 <h3>Please confirm checkout</h3>
191 <h3>Cannot check out</h3>
195 [%IF ( AGE_RESTRICTION ) %]
196 <li>Age restriction [% AGE_RESTRICTION %].
197 [% IF CAN_user_circulate_force_checkout %]
204 <li>The patron has a debt of [% DEBT %]</li>
207 [% IF ( RENEW_ISSUE ) %]
208 <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?</li>
211 [% IF ( RESERVE_WAITING ) %]
212 <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>
215 [% IF ( RESERVED ) %]
216 <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>
219 [% IF ( ISSUED_TO_ANOTHER ) %]
220 <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 %]).
221 [% IF CAN_user_circulate_force_checkout %]
222 Check in and check out?
227 [% IF ( TOO_MANY ) %]
228 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
231 [% IF ( BORRNOTSAMEBRANCH ) %]
232 <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
235 [% IF ( PATRON_CANT ) %]
236 <li>This patron can't check out this item per library circulation policy</li>
239 [% IF ( NOT_FOR_LOAN_FORCING ) %]
241 [% IF ( itemtype_notforloan ) %]
242 Item type is normally not for loan.
243 [% ELSIF ( item_notforloan ) %]
244 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
245 Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
247 [% IF CAN_user_circulate_force_checkout %]
253 [% IF ( USERBLOCKEDOVERDUE ) %]
254 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
255 [% IF CAN_user_circulate_force_checkout %]
261 [% IF ( ITEM_LOST ) %]
262 <li>This item has been lost with a status of "[% ITEM_LOST %]".
263 [% IF CAN_user_circulate_force_checkout %]
270 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
275 <script language="JavaScript" type="text/javascript">
276 $(document).ready(function() {
277 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
282 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
283 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
285 [% IF ( RESERVED ) %]
287 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
288 <label for="cancelreserve">Cancel hold</label>
292 [% IF ( RESERVE_WAITING ) %]
294 <label for="cancelreserve">Cancel hold</label>
295 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
296 <label for="revertreserve">Revert waiting status</label>
297 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
301 <input type="hidden" name="barcode" value="[% barcode |html %]" />
302 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
303 <input type="hidden" name="issueconfirmed" value="1" />
304 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
305 [% IF ( INVALID_DATE ) %]
307 <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
308 <label for="duedatespec">Due date</label>
311 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
313 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
314 <input type="hidden" name="branch" value="[% branch %]" />
315 [% IF ( RENEW_ISSUE ) %]
316 <input type="submit" class="approve" value="Yes, Renew (Y)" accesskey="y" />
318 <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
322 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
323 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
324 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
325 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
326 [% IF ( RENEW_ISSUE ) %]
327 <input type="submit" class="deny" value="No, Don't Renew (N)" accesskey="n" />
329 <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
335 [% END %] <!-- NEEDSCONFIRMATION -->
337 [% IF ( IMPOSSIBLE ) %]
340 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
344 <div id="circ_impossible" class="dialog alert">
345 <!-- RESULT OF ISSUING REQUEST -->
348 <li>Local use recorded</li>
351 [% IF ( INVALID_DATE ) %]
352 <li>The due date "[% INVALID_DATE %]" is invalid</li>
355 [% IF ( UNKNOWN_BARCODE ) %]
356 <li>The barcode was not found [% barcode |html %]
357 [% IF ( fast_cataloging ) %]
358 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
359 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Fast cataloging</a>
363 [% IF ( FALLBACK ) %]
365 <br />The following items were found by searching:
366 [% FOREACH book IN options %]
368 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
369 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
370 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
371 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
372 <input type="hidden" name="branch" value="[% branch %]" />
373 <input type="hidden" name="barcode" value="[% book.barcode %]" />
374 <input type="submit" name="x" value="Check out [% book.barcode %]: [% book.title %]" />
378 <br />No items were found by searching.
385 [% IF ( NOT_FOR_LOAN ) %]
387 [% IF ( itemtype_notforloan ) %]
388 Item type not for loan.
389 [% ELSIF ( item_notforloan ) %]
390 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
391 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
396 [% IF ( WTHDRAWN ) %]
397 <li>Item has been withdrawn</li>
400 [% IF ( RESTRICTED ) %]
401 <li>Item is restricted</li>
405 <li>Patron's address is in doubt</li>
408 [% IF ( CARD_LOST ) %]
409 <li>Patron's card is lost</li>
412 [% IF ( DEBARRED ) %]
413 <li>Patron is restricted</li>
416 [% IF ( NO_MORE_RENEWALS ) %]
417 <li>No more renewals possible</li>
420 [%IF ( AGE_RESTRICTION ) %]
421 <li>Age restriction [% AGE_RESTRICTION %].</li>
425 <li>Patron's card is expired</li>
428 [% IF ( TOO_MANY ) %]
429 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
432 [% IF ( ITEMNOTSAMEBRANCH ) %]
433 <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
436 [% IF ( USERBLOCKEDREMAINING ) %]
437 <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li>
440 [% IF ( USERBLOCKEDOVERDUE ) %]
441 <li>Checkouts are BLOCKED because patron has overdue items</li>
448 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
450 [% END %] <!-- /impossible -->
453 <p>Item checked out</p>
457 [% INCLUDE 'patron-toolbar.inc' %]
459 No patron matched <span class="ex">[% message %]</span>
464 [% IF ( CGIselectborrower ) %]
465 [% INCLUDE 'patron-toolbar.inc' %]
467 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
468 <fieldset id="circ_circulation_selectborrower" class="brief">
469 <legend>Patron selection</legend>
471 <input type="hidden" name="branch" value="[% branch %]" />
472 <input type="hidden" name="printer" value="[% printer %]" />
473 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
474 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
477 <label for="borrowernumber">Select a patron: </label>
478 [% CGIselectborrower %]
481 <p><input type="submit" value="Select" /></p>
484 [% ELSE %] <!-- CGIselectborrower -->
486 <!-- BARCODE ENTRY -->
488 [% IF ( borrowernumber ) %]
490 [% UNLESS ( noissues ) %]
492 <div class="yui-u first">
499 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
500 <fieldset id="circ_circulation_issue">
501 [% IF ( DisplayClearScreenButton ) %]
502 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
505 <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
507 <div class="hint">Enter item barcode:</div>
509 [% IF NEEDSCONFIRMATION %]
510 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
512 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
514 <input type="submit" value="Check Out" />
516 [% IF ( SpecifyDueDate ) %]<div class="date-select">
517 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
518 [% 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" />
520 <label for="stickyduedate"> Remember for session:</label>
521 [% IF ( stickyduedate ) %]
522 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
524 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
526 <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;" />
528 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
529 <input type="hidden" name="branch" value="[% branch %]" />
530 <input type="hidden" name="printer" value="[% printer %]" />
531 <input type="hidden" name="print" value="maybe" />
532 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
534 <input type="hidden" name="charges" value="yes" />
535 <input type="hidden" name="oldamount" value="[% amountold %]" />
538 </form></div>[% END %]<!-- /unless noissues -->
540 [% IF ( noissues ) %]<div>[% ELSE %]<div class="yui-u">[% END %]
543 [% IF ( noissues ) %]
544 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
545 <div id="circmessages" class="circmessage warning">
547 <div id="circmessages" class="circmessage attention">
550 <h3>[% IF ( noissues ) %]
552 [% ELSE %]Attention:[% END %]</h3>
555 [% IF ( warndeparture ) %]
556 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
557 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>
562 [% IF ( returnbeforeexpiry ) %]
563 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
564 expiry date is before the date due, the date due will be set to the expiry date
569 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
570 [% 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>
576 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
580 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
583 [% IF ( userdebarred ) %]
585 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
587 [% IF ( userdebarreddate ) %]
588 until [% userdebarreddate %]
591 [% IF ( debarredcomment ) %]
592 with the explanation: <br/><i>[% debarredcomment | html_line_break %]</i>
596 <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="icon-ban-circle"></i> View restrictions</a>
600 [% 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>
605 <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>.
606 [% IF ( charges_is_blocker ) %]
607 Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
609 <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a></li>
614 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
623 [% IF ( WaitingReserveLoop ) %]
624 <div id="holdswaiting" class="circmessage">
625 <h4>Holds waiting:</h4>
626 [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
628 <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 %].
629 [% IF ( WaitingReserveLoo.waitingat ) %]
630 <br />[% IF ( WaitingReserveLoo.waitinghere ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]Waiting at [% WaitingReserveLoo.waitingat %]</strong>
636 <!-- /If WaitingReserveLoop -->[% END %]
638 <div id="circnotes" class="circmessage">
640 <p><span class="circ-hlt">[% notesmsg %]</span></p>
644 <!-- /If notes -->[% END %]
646 <div id="messages" class="circmessage">
649 [% FOREACH lib_messages_loo IN lib_messages_loop %]
651 <span class="circ-hlt">
652 [% lib_messages_loo.message_date_formatted %]
653 [% lib_messages_loo.branchcode %]
654 <i>"[% lib_messages_loo.message %]"</i>
656 [% IF ( lib_messages_loo.can_delete ) %]
657 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
659 [% IF ( all_messages_del ) %]
660 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
665 [% FOREACH bor_messages_loo IN bor_messages_loop %]
666 <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>
667 [% ELSIF ( all_messages_del ) %]
668 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
675 <!-- /If flagged -->[% END %]
682 <div class="yui-g"><div id="patronlists" class="toptabs">
685 <li> [% IF ( issuecount ) %]
686 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
688 <a href="#checkouts">0 Checkouts</a>
690 [% IF ( displayrelissues ) %]
691 <li><a href="#relissues">Relatives' checkouts</a></li>
693 <li>[% IF ( countreserv ) %]
694 <a href="#reserves">[% countreserv %] Hold(s)</a>
696 <a href="#reserves">0 Holds</a>
698 <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
702 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
704 [% IF ( issuecount ) %]
705 <form name="issues" action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
706 <input type="hidden" value="circ" name="destination" />
707 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
708 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
709 <input type="hidden" name="branch" value="[% branch %]" />
712 <th scope="col">Due date</th>
713 <th scope="col">Title</th>
714 <th scope="col">Item type</th>
715 <th scope="col">Checked out on</th>
716 <th scope="col">Checked out from</th>
717 <th scope="col">Call no</th>
718 <th scope="col">Charge</th>
719 <th scope="col">Price</th>
720 <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
721 <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
722 [% IF ( exports_enabled ) %]
723 <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th>
726 [% IF ( todayissues ) %]
727 [% INCLUDE 'checkouts-table-footer.inc' %]
730 [% FOREACH todayissue IN todayissues %]
731 [% IF ( loop.odd ) %]
734 <tr class="highlight">
736 [% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
737 <span title="[% todayissue.dd_sort %]">[% todayissue.dd %]</span>
739 [% IF ( todayissue.itemlost ) %]
740 <span class="lost">[% AuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %]</span>
742 [% IF ( todayissue.damaged ) %]
743 <span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', todayissue.damaged ) %]</span>
746 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% todayissue.biblionumber %]&type=intra"><strong>[% todayissue.title |html %][% FOREACH subtitl IN todayissue.subtitle %] [% subtitl.subfield %][% END %]</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>
747 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %]<img src="[% todayissue.itemtype_image %]" alt="" />[% END %][% END %][% todayissue.itemtype %]</td>
748 <td><span title="[% todayissue.displaydate_sort %]">[% todayissue.checkoutdate %]</span></td>
749 [% IF ( todayissue.multiple_borrowers ) %]<td>[% todayissue.firstname %] [% todayissue.surname %]</td>[% END %]
750 <td>[% todayissue.issuingbranchname %]</td>
751 <td>[% todayissue.itemcallnumber %]</td>
752 <td>[% todayissue.charge %]</td>
753 <td>[% todayissue.replacementprice %]</td>
754 [% IF ( todayissue.renew_failed ) %]
755 <td class="problem">Renewal failed</td>
757 <td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span>
758 [% IF ( todayissue.can_renew ) %]
759 <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
760 [% IF ( todayissue.od ) %]
761 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
763 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
766 [% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
767 <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
768 [% IF ( todayissue.od ) %]
769 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
771 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
774 <span class="renewals-disabled">
776 [% IF ( todayissue.renew_error_on_reserve ) %]
777 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
779 [% IF ( todayissue.renew_error_too_many ) %]
782 [% IF ( todayissue.can_confirm ) %]
788 [% IF ( todayissue.return_failed ) %]
789 <td class="problem">Checkin failed</td>
791 [% IF ( todayissue.renew_error_on_reserve ) %]
792 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
793 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
796 <td><input type="checkbox" class="radio" name="barcodes[]" value="[% todayissue.barcode %]" />
797 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
801 [% IF ( exports_enabled ) %]
802 <td style="text-align:center;">
803 <input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" />
804 <input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" />
808 [% END %] <!-- /loop todayissues -->
809 <!-- /if todayissues -->[% END %]
811 [% IF ( previssues ) %]
812 [% UNLESS ( todayissues ) %]
813 [% INCLUDE 'checkouts-table-footer.inc' %]
816 [% IF ( UseTablesortForCirc ) %]<tr id="previous"><th><span title="">Previous checkouts</span></th><th></th><th></th><th><span title=""></span></th><th></th><th></th><th></th><th></th><th></th><th></th>[% IF ( exports_enabled ) %]<th></th>[% END %]</tr>[% ELSE %]<tr id="previous">[% IF ( exports_enabled ) %]<th colspan="11">[% ELSE %]<th colspan="10">[% END %]Previous checkouts</th></tr>[% END %]
817 [% FOREACH previssue IN previssues %]
818 [% IF ( loop.odd ) %]
821 <tr class="highlight">
823 [% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
824 <span title="[% previssue.dd_sort %]">[% previssue.dd %]</span>
826 [% IF ( previssue.itemlost ) %]
827 <span class="lost">[% AuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %]</span>
829 [% IF ( previssue.damaged ) %]
830 <span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', previssue.damaged ) %]</span>
833 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% previssue.biblionumber %]&type=intra"><strong>[% previssue.title |html %][% FOREACH subtitl IN previssue.subtitle %] [% subtitl.subfield %][% END %]</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>
835 [% previssue.itemtype %]
837 <td><span title="[% previssue.displaydate_sort %]">[% previssue.displaydate %]</span></td>
838 [% IF ( previssue.multiple_borrowers ) %]<td>[% previssue.firstname %] [% previssue.surname %]</td>[% END %]
839 <td>[% previssue.issuingbranchname %]</td>
840 <td>[% previssue.itemcallnumber %]</td>
841 <td>[% previssue.charge %]</td>
842 <td>[% previssue.replacementprice %]</td>
843 [% IF ( previssue.renew_failed ) %]
844 <td class="problem">Renewal failed</td>
846 <td><span style="padding: 0 1em;">[% IF ( previssue.renewals ) %][% previssue.renewals %][% ELSE %]0[% END %]</span>
847 [% IF ( previssue.can_renew ) %]
848 <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
849 [% IF ( previssue.od ) %]
850 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
852 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
855 [% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
856 <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
857 [% IF ( previssue.od ) %]
858 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
860 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
863 <span class="renewals-disabled">
865 [% IF ( previssue.renew_error_on_reserve ) %]
866 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
868 [% IF ( previssue.renew_error_too_many ) %]
871 [% IF ( previssue.can_confirm ) %]
877 [% IF ( previssue.return_failed ) %]
878 <td class="problem">Check-in failed</td>
880 [% IF ( previssue.renew_error_on_reserve ) %]
881 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
882 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
885 <td><input type="checkbox" class="radio" name="barcodes[]" value="[% previssue.barcode %]" />
886 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
890 [% IF ( exports_enabled ) %]
891 <td style="text-align:center;">
892 <input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" />
893 <input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" />
897 <!-- /loop previssues -->[% END %]
898 <!--/if previssues -->[% END %]
901 [% IF ( issuecount ) %]
902 <fieldset class="action">
903 [% IF ( CAN_user_circulate_override_renewals ) %]
904 [% IF ( AllowRenewalLimitOverride ) %]
905 <label for="override_limit">Override renewal limit:</label>
906 <input type="checkbox" name="override_limit" id="override_limit" value="1" />
909 <input type="submit" name="renew_checked" value="Renew or Return checked items" />
910 <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
912 [% IF ( exports_enabled ) %]
914 <label for="export_formats"><b>Export checkouts using format:</b></label>
915 <select name="export_formats" id="export_formats">
916 <option value="iso2709_995">ISO2709 with items</option>
917 <option value="iso2709">ISO2709 without items</option>
918 [% IF ( export_with_csv_profile ) %]
919 <option value="csv">CSV</option>
923 <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" />
924 <input type="hidden" name="op" value="export" />
925 <input type="hidden" id="export_format" name="format" value="iso2709" />
926 <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
927 <input type="hidden" id="record_type" name="record_type" value="bibs" />
928 <input type="button" id="export_submit" value="Export" />
934 <p>Patron has nothing checked out.</p>
940 [% IF ( displayrelissues ) %]
942 <table id="relissuest">
945 <th scope="col">Due date</th>
946 <th scope="col">Title</th>
947 <th scope="col">Item type</th>
948 <th scope="col">Checked out on</th>
949 <th scope="col">Checked out from</th>
950 <th scope="col">Call no</th>
951 <th scope="col">Charge</th>
952 <th scope="col">Price</th>
953 <th scope="col">Patron</th>
956 [% IF ( relissues ) %] <tbody>
958 [% FOREACH relissue IN relissues %]
959 [% IF ( loop.odd ) %]
962 <tr class="highlight">
964 [% IF ( relissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
965 <span title="[% relissue.dd_sort %]">[% relissue.dd %]</span></td>
967 [% IF ( relissue.itemlost ) %]
968 <span class="lost">[% AuthorisedValues.GetByCode( 'LOST', relissue.itemlost ) %]</span>
970 [% IF ( relissue.damaged ) %]
971 <span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', relissue.damaged ) %]</span>
974 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relissue.biblionumber %]&type=intra"><strong>[% relissue.title |html %][% FOREACH subtitl IN relissue.subtitle %] [% subtitl.subfield %][% END %]</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>
975 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %]<img src="[% relissue.itemtype_image %]" alt="" />[% END %][% END %][% relissue.itemtype %]</td>
976 <td><span title="[% relissue.displaydate_sort %]">[% relissue.displaydate %]</span></td>
977 <td>[% relissue.issuingbranchname %]</td>
978 <td>[% relissue.itemcallnumber %]</td>
979 <td>[% relissue.charge %]</td>
980 <td>[% relissue.replacementprice %]</td><td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissue.borrowernumber %]">[% relissue.firstname %] [% relissue.surname %] ([% relissue.cardnumber %])</a></td>
982 [% END %] <!-- /loop relissues -->
983 <!-- /if relissues -->[% END %]
984 [% IF ( relprevissues ) %]
985 [% IF ( UseTablesortForCirc ) %]<tr id="relprevious"><th><span title="">Previous checkouts</span></th><th></th><th></th><th><span title=""></span></th><th></th><th></th><th></th><th></th><th></th></tr>[% ELSE %]<tr id="relprevious"><th colspan="9">Previous checkouts</th></tr>[% END %]
986 [% FOREACH relprevissue IN relprevissues %]
987 [% IF ( loop.odd ) %]
990 <tr class="highlight">
992 [% IF ( relprevissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
993 <span title="[% relprevissue.dd_sort %]">[% relprevissue.dd %]</span>
995 <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relprevissue.biblionumber %]&type=intra"><strong>[% relprevissue.title |html %][% FOREACH subtitl IN relprevissue.subtitle %] [% subtitl.subfield %][% END %]</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>
996 <td>[% UNLESS noItemTypeImages %][% IF relprevissue.itemtype_image %]<img src="[% relprevissue.itemtype_image %]" alt="" />[% END %][% END %][% relprevissue.itemtype %]</td>
997 <td><span title="[% relprevissue.displaydate_sort %]">[% relprevissue.displaydate %]</span></td>
998 <td>[% relprevissue.issuingbranchname %]</td>
999 <td>[% relprevissue.itemcallnumber %]</td>
1000 [% IF ( relprevissue.multiple_borrowers ) %]<td>[% relprevissue.firstname %] [% relprevissue.surname %]</td>[% END %]
1001 <td>[% relprevissue.charge %]</td>
1002 <td>[% relprevissue.replacementprice %]</td>
1003 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relprevissue.borrowernumber %]">[% relprevissue.firstname %] [% relprevissue.surname %] ([% relprevissue.cardnumber %])</a></td>
1006 <!-- /loop relprevissue -->[% END %]
1007 <!--/if relprevissues -->[% END %]
1012 [% END %]<!-- end displayrelissues -->
1014 [% INCLUDE borrower_debarments.inc %]
1017 [% IF ( reservloop ) %]
1018 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
1019 <input type="hidden" name="from" value="circ" />
1024 <th>Call number</th>
1032 [% FOREACH reservloo IN reservloop %]
1033 <tr class="[% reservloo.color %]">
1034 <td>[% reservloo.reservedate %]</td>
1035 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reservloo.biblionumber %]"><strong>[% reservloo.title |html %][% FOREACH subtitl IN reservloo.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( reservloo.author ) %], by [% reservloo.author %][% END %]</td>
1036 <td>[% reservloo.itemcallnumber %]</td>
1037 <td><em>[% IF ( reservloo.barcodereserv ) %]Item [% reservloo.barcodereserv %]
1038 [% END %][% IF ( reservloo.waiting ) %] <strong>waiting at [% reservloo.waitingat %]</strong>
1040 [% IF ( reservloo.transfered ) %] <strong>in transit</strong> from
1041 [% reservloo.frombranch %] since [% reservloo.datesent %]
1043 [% IF ( reservloo.nottransfered ) %] hasn't been transferred yet from [% reservloo.nottransferedby %]</i>
1045 <td>[% reservloo.expirationdate | $KohaDates %]</td>
1047 [% IF ( reservloo.waitingposition ) %]<b> [% reservloo.waitingposition %] </b>[% END %]
1049 <td><select name="rank-request">
1050 <option value="n">No</option>
1051 <option value="del">Yes</option>
1053 <input type="hidden" name="biblionumber" value="[% reservloo.biblionumber %]" />
1054 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1055 <input type="hidden" name="reserve_id" value="[% reservloo.reserve_id %]" />
1057 <td>[% IF ( reservloo.suspend ) %]Suspended [% IF ( reservloo.suspend_until ) %] until [% reservloo.suspend_until | $KohaDates %][% END %][% END %]</td>
1061 <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel marked holds" /></fieldset>
1064 [% IF SuspendHoldsIntranet %]
1065 <fieldset class="action">
1066 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1067 <input type="hidden" name="from" value="circ" />
1068 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1069 <input type="submit" value="Suspend all holds" />
1071 [% IF AutoResumeSuspendedHolds %]
1072 <label for="suspend_until">until</label>
1073 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
1074 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
1079 <fieldset class="action">
1080 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1081 <input type="hidden" name="from" value="circ" />
1082 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1083 <input type="hidden" name="suspend" value="0" />
1084 <input type="submit" value="Resume all suspended holds" />
1087 [% END # IF SuspendHoldsIntranet %]
1090 <p>Patron has nothing on hold.</p>
1092 </div> <!-- reservesloop -->
1094 [% END %] <!-- borrowernumber -->
1102 [% UNLESS ( CGIselectborrower ) %][% IF ( borrowernumber ) %]<div class="yui-b">
1103 [% INCLUDE 'circ-menu.inc' %]
1104 </div>[% END %][% END %]
1106 [% INCLUDE 'intranet-bottom.inc' %]