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