1 [% USE KohaBranchName %]
3 [% IF ( export_remove_fields OR export_with_csv_profile ) %]
4 [% SET exports_enabled = 1 %]
6 [% USE KohaAuthorisedValues %]
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 ) %]
79 // listen submit to trigger qslip on empty checkout
80 $('#mainform').bind('submit',function() {
81 if ($('#barcode').val() == '') {
82 return printx_window('qslip'); }
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 <h3>Please confirm checkout</h3>
191 [%IF ( AGE_RESTRICTION ) %]
192 <li>Age restriction [% AGE_RESTRICTION %]. Check out anyway?</li>
196 <li>The patron has a debt of [% DEBT %]</li>
199 [% IF ( RENEW_ISSUE ) %]
200 <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron. Renew?</li>
203 [% IF ( RESERVE_WAITING ) %]
204 <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>
207 [% IF ( RESERVED ) %]
208 <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>
211 [% IF ( ISSUED_TO_ANOTHER ) %]
212 <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>
215 [% IF ( TOO_MANY ) %]
216 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
219 [% IF ( BORRNOTSAMEBRANCH ) %]
220 <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
223 [% IF ( PATRON_CANT ) %]
224 <li>This patron can't check out this item per library circulation policy</li>
227 [% IF ( NOT_FOR_LOAN_FORCING ) %]
229 [% IF ( itemtype_notforloan ) %]
230 Item type is normally not for loan.
231 [% ELSIF ( item_notforloan ) %]
232 [% item_notforloan_lib = KohaAuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
233 Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
239 [% IF ( USERBLOCKEDOVERDUE ) %]
240 <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). Check out anyway?</li>
243 [% IF ( ITEM_LOST ) %]
244 <li>This item has been lost with a status of "[% ITEM_LOST %]". Check out anyway?</li>
248 <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
253 <script language="JavaScript" type="text/javascript">
254 $(document).ready(function() {
255 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
259 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
261 [% IF ( RESERVED ) %]
263 <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
264 <label for="cancelreserve">Cancel hold</label>
268 [% IF ( RESERVE_WAITING ) %]
270 <label for="cancelreserve">Cancel hold</label>
271 <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
272 <label for="revertreserve">Revert waiting status</label>
273 <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
277 <input type="hidden" name="barcode" value="[% barcode |html %]" />
278 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
279 <input type="hidden" name="issueconfirmed" value="1" />
280 [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
281 [% IF ( INVALID_DATE ) %]
283 <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
284 <label for="duedatespec">Due date</label>
287 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
289 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
290 <input type="hidden" name="branch" value="[% branch %]" />
291 [% IF ( RENEW_ISSUE ) %]
292 <input type="submit" class="approve" value="Yes, Renew (Y)" accesskey="y" />
294 <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
298 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
299 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
300 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
301 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
302 [% IF ( RENEW_ISSUE ) %]
303 <input type="submit" class="deny" value="No, Don't Renew (N)" accesskey="n" />
305 <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
310 [% END %] <!-- NEEDSCONFIRMATION -->
312 [% IF ( IMPOSSIBLE ) %]
315 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
319 <div id="circ_impossible" class="dialog alert">
320 <!-- RESULT OF ISSUING REQUEST -->
323 <li>Local use recorded</li>
326 [% IF ( INVALID_DATE ) %]
327 <li>The due date "[% INVALID_DATE %]" is invalid</li>
330 [% IF ( UNKNOWN_BARCODE ) %]
331 <li>The barcode was not found [% barcode |html %]
332 [% IF ( fast_cataloging ) %]
333 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
334 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% borrowernumber %]&branch=[% branch %]&duedatespec=[% duedatespec %]&stickyduedate=[% stickyduedate %]">Fast cataloging</a>
338 [% IF ( FALLBACK ) %]
340 <br />The following items were found by searching:
341 [% FOREACH book IN options %]
343 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
344 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
345 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
346 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
347 <input type="hidden" name="branch" value="[% branch %]" />
348 <input type="hidden" name="barcode" value="[% book.barcode %]" />
349 <input type="submit" name="x" value="Check out [% book.barcode %]: [% book.title %]" />
353 <br />No items were found by searching.
360 [% IF ( NOT_FOR_LOAN ) %]
362 [% IF ( itemtype_notforloan ) %]
363 Item type not for loan.
364 [% ELSIF ( item_notforloan ) %]
365 [% item_notforloan_lib = KohaAuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
366 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
371 [% IF ( WTHDRAWN ) %]
372 <li>Item has been withdrawn</li>
375 [% IF ( RESTRICTED ) %]
376 <li>Item is restricted</li>
380 <li>Patron's address is in doubt</li>
383 [% IF ( CARD_LOST ) %]
384 <li>Patron's card is lost</li>
387 [% IF ( DEBARRED ) %]
388 <li>Patron is restricted</li>
391 [% IF ( NO_MORE_RENEWALS ) %]
392 <li>No more renewals possible</li>
395 [%IF ( AGE_RESTRICTION ) %]
396 <li>Age restriction [% AGE_RESTRICTION %].</li>
400 <li>Patron's card is expired</li>
403 [% IF ( TOO_MANY ) %]
404 <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
407 [% IF ( ITEMNOTSAMEBRANCH ) %]
408 <li>This item belongs to [% itemhomebranch | $KohaBranchName %] and cannot be checked out from this location.</li>
411 [% IF ( USERBLOCKEDREMAINING ) %]
412 <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li>
415 [% IF ( USERBLOCKEDOVERDUE ) %]
416 <li>Checkouts are BLOCKED because patron has overdue items</li>
423 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
425 [% END %] <!-- /impossible -->
428 <p>Item checked out</p>
432 [% INCLUDE 'patron-toolbar.inc' %]
434 No patron matched <span class="ex">[% message %]</span>
439 [% IF ( CGIselectborrower ) %]
440 [% INCLUDE 'patron-toolbar.inc' %]
442 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
443 <fieldset id="circ_circulation_selectborrower" class="brief">
444 <legend>Patron selection</legend>
446 <input type="hidden" name="branch" value="[% branch %]" />
447 <input type="hidden" name="printer" value="[% printer %]" />
448 <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
449 <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
452 <label for="borrowernumber">Select a patron: </label>
453 [% CGIselectborrower %]
456 <p><input type="submit" value="Select" /></p>
459 [% ELSE %] <!-- CGIselectborrower -->
461 <!-- BARCODE ENTRY -->
463 [% IF ( borrowernumber ) %]
465 [% UNLESS ( noissues ) %]
467 <div class="yui-u first">
474 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
475 <fieldset id="circ_circulation_issue">
476 [% IF ( DisplayClearScreenButton ) %]
477 <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
480 <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
482 <div class="hint">Enter item barcode:</div>
484 [% IF ( NEEDSCONFIRMATION ) %]
485 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
487 <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
489 <input type="submit" value="Check Out" />
491 [% IF ( SpecifyDueDate ) %]<div class="date-select">
492 <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
493 [% 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" />
495 <label for="stickyduedate"> Remember for session:</label>
496 [% IF ( stickyduedate ) %]
497 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
499 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
501 <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;" />
503 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
504 <input type="hidden" name="branch" value="[% branch %]" />
505 <input type="hidden" name="printer" value="[% printer %]" />
506 <input type="hidden" name="print" value="maybe" />
507 <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
509 <input type="hidden" name="charges" value="yes" />
510 <input type="hidden" name="oldamount" value="[% amountold %]" />
513 </form></div>[% END %]<!-- /unless noissues -->
515 [% IF ( noissues ) %]<div>[% ELSE %]<div class="yui-u">[% END %]
518 [% IF ( noissues ) %]
519 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
520 <div id="circmessages" class="circmessage warning">
522 <div id="circmessages" class="circmessage attention">
525 <h3>[% IF ( noissues ) %]
527 [% ELSE %]Attention:[% END %]</h3>
530 [% IF ( warndeparture ) %]
531 <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
532 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>
537 [% IF ( returnbeforeexpiry ) %]
538 <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
539 expiry date is before the date due, the date due will be set to the expiry date
544 <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
545 [% 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>
551 <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
555 <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
558 [% IF ( userdebarred ) %]
560 <span class="circ-hlt"> Restricted:</span> Patron's account is restricted [% IF (userdebarreddate ) %] until [% userdebarreddate %] [% END %] [% IF (debarredcomment ) %] with the comment "[% debarredcomment %]"[% END %]
561 <form class="inline compact" action="/cgi-bin/koha/members/setstatus.pl" method="post">
562 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
563 <input type="hidden" name="destination" value="circ" />
564 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
565 <input type="submit" value="Lift restriction" />
569 [% 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>
574 <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>.
575 [% IF ( charges_is_blocker ) %]
576 Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
578 Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Payment</a></li>
583 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
592 [% IF ( WaitingReserveLoop ) %]
593 <div id="holdswaiting" class="circmessage">
594 <h4>Holds waiting:</h4>
595 [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
597 <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 %].
598 [% IF ( WaitingReserveLoo.waitingat ) %]
599 <br />[% IF ( WaitingReserveLoo.waitinghere ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]Waiting at [% WaitingReserveLoo.waitingat %]</strong>
605 <!-- /If WaitingReserveLoop -->[% END %]
607 <div id="circnotes" class="circmessage">
609 <p><span class="circ-hlt">[% notesmsg %]</span></p>
613 <!-- /If notes -->[% END %]
615 <div id="messages" class="circmessage">
618 [% FOREACH lib_messages_loo IN lib_messages_loop %]
620 <span class="circ-hlt">
621 [% lib_messages_loo.message_date_formatted %]
622 [% lib_messages_loo.branchcode %]
623 <i>"[% lib_messages_loo.message %]"</i>
625 [% IF ( lib_messages_loo.can_delete ) %]
626 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
628 [% IF ( all_messages_del ) %]
629 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
634 [% FOREACH bor_messages_loo IN bor_messages_loop %]
635 <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>
636 [% ELSIF ( all_messages_del ) %]
637 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
644 <!-- /If flagged -->[% END %]
651 <div class="yui-g"><div id="patronlists" class="toptabs">
654 <li> [% IF ( issuecount ) %]
655 <a href="#checkouts">[% issuecount %] Checkout(s)</a>
657 <a href="#checkouts">0 Checkouts</a>
659 [% IF ( displayrelissues ) %]
660 <li><a href="#relissues">Relatives' checkouts</a></li>
662 <li>[% IF ( countreserv ) %]
663 <a href="#reserves">[% countreserv %] Hold(s)</a>
665 <a href="#reserves">0 Holds</a>
670 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
672 [% IF ( issuecount ) %]
673 <form name="issues" action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
674 <input type="hidden" value="circ" name="destination" />
675 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
676 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
677 <input type="hidden" name="branch" value="[% branch %]" />
680 <th scope="col">Due date</th>
681 <th scope="col">Title</th>
682 <th scope="col">Item type</th>
683 <th scope="col">Checked out on</th>
684 <th scope="col">Checked out from</th>
685 <th scope="col">Call no</th>
686 <th scope="col">Charge</th>
687 <th scope="col">Price</th>
688 <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
689 <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
690 [% IF ( exports_enabled ) %]
691 <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th>
694 [% IF ( todayissues ) %]
695 [% INCLUDE 'checkouts-table-footer.inc' %]
698 [% FOREACH todayissue IN todayissues %]
699 [% IF ( loop.odd ) %]
702 <tr class="highlight">
704 [% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
705 <span title="[% todayissue.dd_sort %]">[% todayissue.dd %]</span>
707 [% IF ( todayissue.itemlost ) %]
708 <span class="lost">[% KohaAuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %]</span>
710 [% IF ( todayissue.damaged ) %]
711 <span class="dmg">[% KohaAuthorisedValues.GetByCode( 'DAMAGED', todayissue.damaged ) %]</span>
714 <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>
715 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %]<img src="[% todayissue.itemtype_image %]" alt="" />[% END %][% END %][% todayissue.itemtype %]</td>
716 <td><span title="[% todayissue.displaydate_sort %]">[% todayissue.checkoutdate %]</span></td>
717 [% IF ( todayissue.multiple_borrowers ) %]<td>[% todayissue.firstname %] [% todayissue.surname %]</td>[% END %]
718 <td>[% todayissue.issuingbranchname %]</td>
719 <td>[% todayissue.itemcallnumber %]</td>
720 <td>[% todayissue.charge %]</td>
721 <td>[% todayissue.replacementprice %]</td>
722 [% IF ( todayissue.renew_failed ) %]
723 <td class="problem">Renewal failed</td>
725 <td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span>
726 [% IF ( todayissue.can_renew ) %]
727 <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
728 [% IF ( todayissue.od ) %]
729 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
731 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
734 [% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
735 <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
736 [% IF ( todayissue.od ) %]
737 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
739 <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
742 <span class="renewals-disabled">
744 [% IF ( todayissue.renew_error_on_reserve ) %]
745 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
747 [% IF ( todayissue.renew_error_too_many ) %]
750 [% IF ( todayissue.can_confirm ) %]
756 [% IF ( todayissue.return_failed ) %]
757 <td class="problem">Checkin failed</td>
759 [% IF ( todayissue.renew_error_on_reserve ) %]
760 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
761 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
764 <td><input type="checkbox" class="radio" name="barcodes[]" value="[% todayissue.barcode %]" />
765 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
769 [% IF ( exports_enabled ) %]
770 <td style="text-align:center;">
771 <input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" />
772 <input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" />
776 [% END %] <!-- /loop todayissues -->
777 <!-- /if todayissues -->[% END %]
779 [% IF ( previssues ) %]
780 [% UNLESS ( todayissues ) %]
781 [% INCLUDE 'checkouts-table-footer.inc' %]
784 [% 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 %]
785 [% FOREACH previssue IN previssues %]
786 [% IF ( loop.odd ) %]
789 <tr class="highlight">
791 [% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
792 <span title="[% previssue.dd_sort %]">[% previssue.dd %]</span>
794 [% IF ( previssue.itemlost ) %]
795 <span class="lost">[% KohaAuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %]</span>
797 [% IF ( previssue.damaged ) %]
798 <span class="dmg">[% KohaAuthorisedValues.GetByCode( 'DAMAGED', previssue.damaged ) %]</span>
801 <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>
803 [% previssue.itemtype %]
805 <td><span title="[% previssue.displaydate_sort %]">[% previssue.displaydate %]</span></td>
806 [% IF ( previssue.multiple_borrowers ) %]<td>[% previssue.firstname %] [% previssue.surname %]</td>[% END %]
807 <td>[% previssue.issuingbranchname %]</td>
808 <td>[% previssue.itemcallnumber %]</td>
809 <td>[% previssue.charge %]</td>
810 <td>[% previssue.replacementprice %]</td>
811 [% IF ( previssue.renew_failed ) %]
812 <td class="problem">Renewal failed</td>
814 <td><span style="padding: 0 1em;">[% IF ( previssue.renewals ) %][% previssue.renewals %][% ELSE %]0[% END %]</span>
815 [% IF ( previssue.can_renew ) %]
816 <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
817 [% IF ( previssue.od ) %]
818 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
820 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
823 [% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
824 <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
825 [% IF ( previssue.od ) %]
826 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
828 <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
831 <span class="renewals-disabled">
833 [% IF ( previssue.renew_error_on_reserve ) %]
834 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
836 [% IF ( previssue.renew_error_too_many ) %]
839 [% IF ( previssue.can_confirm ) %]
845 [% IF ( previssue.return_failed ) %]
846 <td class="problem">Check-in failed</td>
848 [% IF ( previssue.renew_error_on_reserve ) %]
849 <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
850 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
853 <td><input type="checkbox" class="radio" name="barcodes[]" value="[% previssue.barcode %]" />
854 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
858 [% IF ( exports_enabled ) %]
859 <td style="text-align:center;">
860 <input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" />
861 <input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" />
865 <!-- /loop previssues -->[% END %]
866 <!--/if previssues -->[% END %]
869 [% IF ( issuecount ) %]
870 <fieldset class="action">
871 [% IF ( CAN_user_circulate_override_renewals ) %]
872 [% IF ( AllowRenewalLimitOverride ) %]
873 <label for="override_limit">Override renewal limit:</label>
874 <input type="checkbox" name="override_limit" id="override_limit" value="1" />
877 <input type="submit" name="renew_checked" value="Renew or Return checked items" />
878 <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
880 [% IF ( exports_enabled ) %]
882 <label for="export_formats"><b>Export checkouts using format:</b></label>
883 <select name="export_formats" id="export_formats">
884 <option value="iso2709_995">ISO2709 with items</option>
885 <option value="iso2709">ISO2709 without items</option>
886 [% IF ( export_with_csv_profile ) %]
887 <option value="csv">CSV</option>
891 <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" />
892 <input type="hidden" name="op" value="export" />
893 <input type="hidden" id="export_format" name="format" value="iso2709" />
894 <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
895 <input type="hidden" id="record_type" name="record_type" value="bibs" />
896 <input type="button" id="export_submit" value="Export" />
902 <p>Patron has nothing checked out.</p>
908 [% IF ( displayrelissues ) %]
910 <table id="relissuest">
913 <th scope="col">Due date</th>
914 <th scope="col">Title</th>
915 <th scope="col">Item type</th>
916 <th scope="col">Checked out on</th>
917 <th scope="col">Checked out from</th>
918 <th scope="col">Call no</th>
919 <th scope="col">Charge</th>
920 <th scope="col">Price</th>
921 <th scope="col">Patron</th>
924 [% IF ( relissues ) %] <tbody>
926 [% FOREACH relissue IN relissues %]
927 [% IF ( loop.odd ) %]
930 <tr class="highlight">
932 [% IF ( relissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
933 <span title="[% relissue.dd_sort %]">[% relissue.dd %]</span></td>
935 [% IF ( relissue.itemlost ) %]
936 <span class="lost">[% KohaAuthorisedValues.GetByCode( 'LOST', relissue.itemlost ) %]</span>
938 [% IF ( relissue.damaged ) %]
939 <span class="dmg">[% KohaAuthorisedValues.GetByCode( 'DAMAGED', relissue.damaged ) %]</span>
942 <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>
943 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %]<img src="[% relissue.itemtype_image %]" alt="" />[% END %][% END %][% relissue.itemtype %]</td>
944 <td><span title="[% relissue.displaydate_sort %]">[% relissue.displaydate %]</span></td>
945 <td>[% relissue.issuingbranchname %]</td>
946 <td>[% relissue.itemcallnumber %]</td>
947 <td>[% relissue.charge %]</td>
948 <td>[% relissue.replacementprice %]</td><td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissue.borrowernumber %]">[% relissue.firstname %] [% relissue.surname %] ([% relissue.cardnumber %])</a></td>
950 [% END %] <!-- /loop relissues -->
951 <!-- /if relissues -->[% END %]
952 [% IF ( relprevissues ) %]
953 [% 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 %]
954 [% FOREACH relprevissue IN relprevissues %]
955 [% IF ( loop.odd ) %]
958 <tr class="highlight">
960 [% IF ( relprevissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
961 <span title="[% relprevissue.dd_sort %]">[% relprevissue.dd %]</span>
963 <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>
964 <td>[% UNLESS noItemTypeImages %][% IF relprevissue.itemtype_image %]<img src="[% relprevissue.itemtype_image %]" alt="" />[% END %][% END %][% relprevissue.itemtype %]</td>
965 <td><span title="[% relprevissue.displaydate_sort %]">[% relprevissue.displaydate %]</span></td>
966 <td>[% relprevissue.issuingbranchname %]</td>
967 <td>[% relprevissue.itemcallnumber %]</td>
968 [% IF ( relprevissue.multiple_borrowers ) %]<td>[% relprevissue.firstname %] [% relprevissue.surname %]</td>[% END %]
969 <td>[% relprevissue.charge %]</td>
970 <td>[% relprevissue.replacementprice %]</td>
971 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relprevissue.borrowernumber %]">[% relprevissue.firstname %] [% relprevissue.surname %] ([% relprevissue.cardnumber %])</a></td>
974 <!-- /loop relprevissue -->[% END %]
975 <!--/if relprevissues -->[% END %]
980 [% END %]<!-- end displayrelissues -->
984 [% IF ( reservloop ) %]
985 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
986 <input type="hidden" name="from" value="circ" />
999 [% FOREACH reservloo IN reservloop %]
1000 <tr class="[% reservloo.color %]">
1001 <td>[% reservloo.reservedate %]</td>
1002 <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>
1003 <td>[% reservloo.itemcallnumber %]</td>
1004 <td><em>[% IF ( reservloo.barcodereserv ) %]Item [% reservloo.barcodereserv %]
1005 [% END %][% IF ( reservloo.waiting ) %] <strong>waiting at [% reservloo.waitingat %]</strong>
1007 [% IF ( reservloo.transfered ) %] <strong>in transit</strong> from
1008 [% reservloo.frombranch %] since [% reservloo.datesent %]
1010 [% IF ( reservloo.nottransfered ) %] hasn't been transferred yet from [% reservloo.nottransferedby %]</i>
1012 <td>[% reservloo.expirationdate | $KohaDates %]</td>
1014 [% IF ( reservloo.waitingposition ) %]<b> [% reservloo.waitingposition %] </b>[% END %]
1016 <td><select name="rank-request">
1017 <option value="n">No</option>
1018 <option value="del">Yes</option>
1020 <input type="hidden" name="biblionumber" value="[% reservloo.biblionumber %]" />
1021 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1022 <input type="hidden" name="reserve_id" value="[% reservloo.reserve_id %]" />
1024 <td>[% IF ( reservloo.suspend ) %]Suspended [% IF ( reservloo.suspend_until ) %] until [% reservloo.suspend_until | $KohaDates %][% END %][% END %]</td>
1028 <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel marked holds" /></fieldset>
1031 [% IF SuspendHoldsIntranet %]
1032 <fieldset class="action">
1033 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1034 <input type="hidden" name="from" value="circ" />
1035 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1036 <input type="submit" value="Suspend all holds" />
1038 [% IF AutoResumeSuspendedHolds %]
1039 <label for="suspend_until">until</label>
1040 <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
1041 <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
1046 <fieldset class="action">
1047 <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1048 <input type="hidden" name="from" value="circ" />
1049 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1050 <input type="hidden" name="suspend" value="0" />
1051 <input type="submit" value="Resume all suspended holds" />
1054 [% END # IF SuspendHoldsIntranet %]
1057 <p>Patron has nothing on hold.</p>
1059 </div> <!-- reservesloop -->
1061 [% END %] <!-- borrowernumber -->
1069 [% UNLESS ( CGIselectborrower ) %][% IF ( borrowernumber ) %]<div class="yui-b">
1070 [% INCLUDE 'circ-menu.inc' %]
1071 </div>[% END %][% END %]
1073 [% INCLUDE 'intranet-bottom.inc' %]