47321769c3e9ec5c720dc4d282489b645efa711f
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / circulation.tt
1 [% USE KohaBranchName %]
2 [% USE KohaDates %]
3 [% IF ( export_remove_fields OR export_with_csv_profile ) %]
4    [% SET exports_enabled = 1 %]
5 [% END %]
6 [% USE KohaAuthorisedValues %]
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 <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">
24 //<![CDATA[
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();
38                 }
39             }
40         }[% END %]);
41         [% IF ( UseTablesortForCirc ) %]
42         $("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, {
43             "sDom": 't',
44             "aaSorting": [],
45             "aoColumnDefs": [
46                 { "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false }
47             ],
48             "aoColumns": [
49                 { "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,null,null[% IF ( exports_enabled ) %],null[% END %]
50             ],
51             "bPaginate": false
52         }));
53
54         $("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
55             "sDom": 't',
56             "aaSorting": [],
57             "aoColumns": [
58                 { "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,{ "sType": "html" }
59             ],
60             "bPaginate": false
61         }));
62
63         $("#issuest").on("sort",function() {
64             $("#previous").hide();  // Don't want to see "previous checkouts" header sorted with other rows
65         });
66         $("#relissuest").on("sort",function() {
67             $("#relprevious").hide();  // Don't want to see "previous checkouts" header sorted with other rows
68         });
69         [% END %]
70         [% IF ( AllowRenewalLimitOverride ) %]
71         $( '#override_limit' ).click( function () {
72             if ( this.checked ) {
73                 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
74             } else {
75                 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
76             }
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'); }
83         });[% END %]
84
85     [% IF ( CAN_user_circulate_override_renewals ) %]
86     [% IF ( AllowRenewalLimitOverride ) %]
87     $( '#override_limit' ).click( function () {
88         if ( this.checked ) {
89            $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
90         } else {
91            $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
92         }
93     } ).attr( 'checked', false );
94     [% END %]
95     [% END %]
96  });
97 //]]>
98 </script>
99 </head>
100 <body id="circ_circulation" class="circ">
101
102 [% INCLUDE 'header.inc' %]
103 [% INCLUDE 'circ-search.inc' %]
104
105 <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;
106 [% IF ( borrowernumber ) %]
107     <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> &rsaquo; [% INCLUDE 'patron-title.inc' %]
108 [% ELSE %]
109     <strong>Checkouts</strong>
110 [% END %]
111 </div>
112 [% IF ( CGIselectborrower ) %]
113 <div id="doc" class="yui-t7">
114
115    <div id="bd">
116         <div id="yui-main">
117         <div class="yui-g">
118 [% ELSE %]
119 <div id="doc3" class="yui-t2">
120
121    <div id="bd">
122         <div id="yui-main">
123         <div class="yui-b">
124 [% END %]
125
126 [% IF ( borrowernumber ) %]
127 [% INCLUDE 'members-toolbar.inc' %]
128 [% END %]
129
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>
135         <ol>
136     <li>
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>
141         </select>
142     </li>
143     [% IF ( canned_bor_notes_loop ) %]
144         <li>
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>
150                     [% END %]
151                 </select>
152         </li>
153     [% END %]
154     <li>
155         <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
156     </li>
157         </ol>
158     <fieldset class="action">
159         <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
160     </fieldset>
161
162         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
163         <input type="hidden" name="branchcode" value="[% branch %]" />
164 </fieldset>
165 </form>
166 </div>
167
168 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry %]</div>[% END %]
169
170 [% IF additional_materials %]
171     <div id="materials" class="dialog message">Note about the accompanying materials: <br />
172     [% additional_materials %]
173     </div>
174 [% END %]
175
176 [% IF ( alert.ITEM_LOST ) %]
177     <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
178 [% END %]
179
180 [% IF ( alert.OTHER_CHARGES ) %]
181     <div class="dialog message">The patron has unpaid charges for reserves, rentals etc of [% alert.OTHER_CHARGES %]</div>
182 [% END %]
183
184 [% IF ( NEEDSCONFIRMATION ) %]
185 <div class="yui-g">
186
187 <div id="circ_needsconfirmation" class="dialog alert">
188 <h3>Please confirm checkout</h3>
189
190 <ul>
191 [%IF ( AGE_RESTRICTION ) %]
192     <li>Age restriction [% AGE_RESTRICTION %]. Check out anyway?</li>
193 [% END %]
194
195 [% IF ( DEBT ) %]
196     <li>The patron has a debt of [% DEBT %]</li>
197 [% END %]
198
199 [% IF ( RENEW_ISSUE ) %]
200     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron.  Renew?</li>
201 [% END %]
202
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>
205 [% END %]
206
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>
209 [% END %]
210
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>
213 [% END %]
214
215 [% IF ( TOO_MANY ) %]
216     <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
217 [% END %]
218
219 [% IF ( BORRNOTSAMEBRANCH ) %]
220     <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
221 [% END %]
222
223 [% IF ( PATRON_CANT ) %]
224     <li>This patron can't check out this item per library circulation policy</li>
225 [% END %]
226
227 [% IF ( NOT_FOR_LOAN_FORCING ) %]
228     <li>
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 %].
234     [% END %]
235         Check out anyway?
236     </li>
237 [% END %]
238
239 [% IF ( USERBLOCKEDOVERDUE ) %]
240     <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).  Check out anyway?</li>
241 [% END %]
242
243 [% IF ( ITEM_LOST ) %]
244     <li>This item has been lost with a status of "[% ITEM_LOST %]". Check out anyway?</li>
245 [% END %]
246
247 [% IF  HIGHHOLDS %]
248         <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
249 [% END %]
250 </ul>
251
252 [% IF HIGHHOLDS %]
253         <script language="JavaScript" type="text/javascript">
254         $(document).ready(function() {
255                 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
256         });
257         </script>
258 [% END %]
259 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
260
261 [% IF ( RESERVED ) %]
262     <p>
263     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
264     <label for="cancelreserve">Cancel hold</label>
265     </p>
266 [% END %]
267
268 [% IF ( RESERVE_WAITING ) %]
269 <p>
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"/>
274 </p>
275 [% END %]
276
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 ) %]
282     <p>
283     <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
284     <label for="duedatespec">Due date</label>
285     </p>
286     [% ELSE %]
287     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
288     [% END %]
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" />
293     [% ELSE %]
294     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
295     [% END %]
296 </form>
297
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" />
304     [% ELSE %]
305     <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
306     [% END %]
307 </form>
308
309 </div></div>
310 [% END %] <!-- NEEDSCONFIRMATION -->
311
312         [% IF ( IMPOSSIBLE ) %]
313
314 [% IF ( soundon ) %]
315 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
316 [% END %]        
317
318 <div class="yui-g">
319 <div id="circ_impossible" class="dialog alert">
320 <!-- RESULT OF ISSUING REQUEST -->
321         <ul>
322         [% IF ( STATS ) %]
323             <li>Local use recorded</li>
324         [% END %]
325
326         [% IF ( INVALID_DATE ) %]
327             <li>The due date &quot;[% INVALID_DATE %]&quot; is invalid</li>
328         [% END %]
329
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&amp;barcode=[% barcode |uri %]&amp;circborrowernumber=[% borrowernumber %]&amp;branch=[% branch %]&amp;duedatespec=[% duedatespec %]&amp;stickyduedate=[% stickyduedate %]">Fast cataloging</a>
335                 [% END %]
336             [% END %]
337
338         [% IF ( FALLBACK ) %]
339             [% IF options %]
340                 <br />The following items were found by searching:
341                 [% FOREACH book IN options %]
342                     <br />
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 %]" />
350                     </form>
351                 [% END %]
352             [% ELSE %]
353                 <br />No items were found by searching.
354             [% END %]
355         [% END %]
356
357      </li>
358         [% END %]
359
360         [% IF ( NOT_FOR_LOAN ) %]
361             <li>
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 %].
367             [% END %]
368             </li>
369         [% END %]
370
371         [% IF ( WTHDRAWN ) %]
372             <li>Item has been withdrawn</li>
373         [% END %]
374
375         [% IF ( RESTRICTED ) %]
376             <li>Item is restricted</li>
377         [% END %]
378
379         [% IF ( GNA ) %]
380             <li>Patron's address is in doubt</li>
381         [% END %]
382
383         [% IF ( CARD_LOST ) %]
384             <li>Patron's card is lost</li>
385         [% END %]
386
387         [% IF ( DEBARRED ) %]
388             <li>Patron is restricted</li>
389         [% END %]
390
391         [% IF ( NO_MORE_RENEWALS ) %]
392             <li>No more renewals possible</li>
393         [% END %]
394
395         [%IF ( AGE_RESTRICTION ) %]
396             <li>Age restriction [% AGE_RESTRICTION %].</li>
397         [% END %]
398
399         [% IF ( EXPIRED ) %]
400             <li>Patron's card is expired</li>
401         [% END %]
402
403         [% IF ( TOO_MANY ) %]
404             <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
405         [% END %]
406
407         [% IF ( ITEMNOTSAMEBRANCH ) %]
408             <li>This item belongs to [% itemhomebranch | $KohaBranchName %] and cannot be checked out from this location.</li>
409         [% END %]
410
411         [% IF ( USERBLOCKEDREMAINING ) %]
412             <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li>
413         [% END %]
414         
415             [% IF ( USERBLOCKEDOVERDUE ) %]
416             <li>Checkouts are BLOCKED because patron has overdue items</li>
417         [% END %]
418         </ul>
419
420 </div></div>
421 [% ELSE %]
422 [% IF ( soundon ) %]
423 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
424 [% END %]
425     [% END %] <!-- /impossible -->
426
427 [% IF ( issued ) %]
428 <p>Item checked out</p>
429 [% END %]
430
431 [% IF ( message ) %]
432 [% INCLUDE 'patron-toolbar.inc' %]
433 <h4>
434 No patron matched <span class="ex">[% message %]</span>
435 </h4>
436 [% END %]
437
438
439 [% IF ( CGIselectborrower ) %]
440 [% INCLUDE 'patron-toolbar.inc' %]
441
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>
445
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 %]" />
450
451 <ol>    <li>
452     <label for="borrowernumber">Select a patron: </label>
453     [% CGIselectborrower %]
454     </li>
455 </ol>
456 <p><input type="submit" value="Select" /></p>
457 </fieldset>
458 </form>
459 [% ELSE %] <!-- CGIselectborrower -->
460
461 <!-- BARCODE ENTRY -->
462
463 [% IF ( borrowernumber ) %]
464 <div class="yui-g">
465 [% UNLESS ( noissues ) %]
466 [% IF ( flagged ) %]
467 <div class="yui-u first">
468 [% ELSE %]
469 <div>
470
471 [% END %]
472
473
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>
478     [% END %]
479
480     <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
481
482         <div class="hint">Enter item barcode:</div>
483
484     [% IF ( NEEDSCONFIRMATION ) %]
485             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
486     [% ELSE %]
487             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
488     [% END %]
489     <input type="submit" value="Check Out" />
490
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" />
494 [% END %]
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" />
498 [% ELSE %]
499 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
500 [% END %]
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;" />
502 </div>[% END %]
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 %]" />
508                 [% IF ( CHARGES ) %]
509                         <input type="hidden" name="charges" value="yes" />
510                         <input type="hidden" name="oldamount" value="[% amountold %]" />
511                 [% END %]
512 </fieldset>
513 </form></div>[% END %]<!-- /unless noissues -->
514
515 [% IF ( noissues ) %]<div>[% ELSE %]<div class="yui-u">[% END %]
516
517     [% IF ( flagged ) %]
518                 [% IF ( noissues ) %]
519                 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
520         <div id="circmessages" class="circmessage warning">
521                 [% ELSE %]
522         <div id="circmessages" class="circmessage attention">
523                 [% END %]
524
525                 <h3>[% IF ( noissues ) %]
526                         Cannot check out!
527                 [% ELSE %]Attention:[% END %]</h3>
528                 <ul>
529
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 %]&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>
533
534                         </li>
535                         [% END %]
536
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
540                          </li>
541                         [% END %]
542
543                         [% IF ( expired ) %]
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 %]&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>
546
547                         </li>
548                         [% END %]
549
550             [% IF ( gna ) %]
551                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
552                         [% END %]
553
554             [% IF ( lost ) %]
555                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
556                         [% END %]
557
558             [% IF ( userdebarred ) %]
559                <li class="blocker">
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" />
566                </form>
567                         </li>[% END %]
568
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>
570             [% END %]
571
572                 [% IF ( charges ) %]
573                             <li>
574             <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>.
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>.
577                 [% END %]
578             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Payment</a></li>
579                         [% END %]
580
581                 [% IF ( credits ) %]
582                         <li>
583                 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
584             </li>
585                         [% END %]
586
587
588
589                         </ul>
590         </div>
591
592                         [% IF ( WaitingReserveLoop ) %]
593                         <div id="holdswaiting" class="circmessage">
594                     <h4>Holds waiting:</h4>
595                                 [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
596                                     <ul>
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>
600                                     [% END %]
601                                         </li>
602                                     </ul>
603                             [% END %]
604                         </div>
605                         <!-- /If WaitingReserveLoop -->[% END %]
606         [% IF ( notes ) %]
607                         <div id="circnotes" class="circmessage">
608                         <h4>Notes:</h4>
609             <p><span class="circ-hlt">[% notesmsg %]</span></p>
610                         </div>
611
612
613     <!-- /If notes -->[% END %]
614
615         <div id="messages" class="circmessage">
616                 <h4>Messages:</h4>
617                 <ul>
618                         [% FOREACH lib_messages_loo IN lib_messages_loop %]
619                                 <li>
620                                         <span class="circ-hlt">
621                                                 [% lib_messages_loo.message_date_formatted %]
622                                                 [% lib_messages_loo.branchcode %]
623                                                 <i>"[% lib_messages_loo.message %]"</i>
624                                         </span>
625                                         [% IF ( lib_messages_loo.can_delete ) %]
626                                                 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&amp;borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
627                                         [% ELSE %]
628                                                 [% IF ( all_messages_del ) %]
629                                                         <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&amp;borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
630                                                 [% END %]
631                                         [% END %]
632                                 </li>
633                         [% END %]
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 %]&amp;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 %]&amp;borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
638                 [% END %]</li>
639                         [% END %]
640
641                 </ul>
642         </div>  
643         
644      <!-- /If flagged -->[% END %]
645
646         
647
648 </div>
649 </div>
650
651 <div class="yui-g"><div id="patronlists" class="toptabs">
652
653 <ul>
654 <li>    [% IF ( issuecount ) %]
655             <a href="#checkouts">[% issuecount %] Checkout(s)</a>
656     [% ELSE %]
657             <a href="#checkouts">0 Checkouts</a>
658     [% END %]</li>
659 [% IF ( displayrelissues ) %]
660 <li><a href="#relissues">Relatives' checkouts</a></li>
661 [% END %]
662 <li>[% IF ( countreserv ) %]
663             <a href="#reserves">[% countreserv %] Hold(s)</a>
664     [% ELSE %]
665             <a href="#reserves">0 Holds</a>
666     [% END %]</li>
667
668 </ul>
669
670 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
671 <div id="checkouts">
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 %]" />
678         <table id="issuest">
679     <thead><tr>
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>
692         [% END %]
693     </tr></thead>
694 [% IF ( todayissues ) %]
695 [% INCLUDE 'checkouts-table-footer.inc' %]
696         <tbody>
697
698     [% FOREACH todayissue IN todayissues %]
699     [% IF ( loop.odd ) %]
700     <tr>
701     [% ELSE %]
702     <tr class="highlight">
703     [% END %]
704         [% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
705         <span title="[% todayissue.dd_sort %]">[% todayissue.dd %]</span>
706
707             [% IF ( todayissue.itemlost ) %]
708                 <span class="lost">[% KohaAuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %]</span>
709             [% END %]
710             [% IF ( todayissue.damaged ) %]
711                 <span class="dmg">[% KohaAuthorisedValues.GetByCode( 'DAMAGED', todayissue.damaged ) %]</span>
712             [% END %]
713         </td>
714         <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>
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>
724       [% ELSE %]
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" />
730         [% ELSE %]
731             <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
732         [% END %]
733         [% ELSE %]
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" />
738                 [% ELSE %]
739                     <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
740                 [% END %]
741                 </span>
742                 <span class="renewals-disabled">
743             [% END %]
744                 [% IF ( todayissue.renew_error_on_reserve ) %]
745             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
746                 [% END %]
747                 [% IF ( todayissue.renew_error_too_many ) %]
748             Not renewable
749                 [% END %]
750             [% IF ( todayissue.can_confirm ) %]
751                 </span>
752             [% END %]
753         [% END %]
754         </td>
755         [% END %]
756         [% IF ( todayissue.return_failed ) %]
757             <td class="problem">Checkin failed</td>
758         [% ELSE %]
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;" />
762                 </td>
763             [% ELSE %]
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;" />
766             </td>
767             [% END %]
768         [% END %]
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;" />
773           </td>
774         [% END %]
775     </tr>
776     [% END %] <!-- /loop todayissues -->
777     <!-- /if todayissues -->[% END %]
778
779 [% IF ( previssues ) %]
780     [% UNLESS ( todayissues ) %]
781     [% INCLUDE 'checkouts-table-footer.inc' %]
782         <tbody>
783     [% END %]
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 ) %]
787         <tr>
788     [% ELSE %]
789         <tr class="highlight">
790     [% END %]
791         [% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
792         <span title="[% previssue.dd_sort %]">[% previssue.dd %]</span>
793
794             [% IF ( previssue.itemlost ) %]
795                 <span class="lost">[% KohaAuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %]</span>
796             [% END %]
797             [% IF ( previssue.damaged ) %]
798                 <span class="dmg">[% KohaAuthorisedValues.GetByCode( 'DAMAGED', previssue.damaged ) %]</span>
799             [% END %]
800         </td>
801         <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>
802         <td>
803             [% previssue.itemtype %]
804         </td>
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>
813       [% ELSE %]
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" />
819         [% ELSE %]
820             <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
821         [% END %]
822         [% ELSE %]
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" />
827                 [% ELSE %]
828                     <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
829                 [% END %]
830                 </span>
831                 <span class="renewals-disabled">
832             [% END %]
833                 [% IF ( previssue.renew_error_on_reserve ) %]
834             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
835                 [% END %]
836                 [% IF ( previssue.renew_error_too_many ) %]
837             Not renewable
838                 [% END %]
839             [% IF ( previssue.can_confirm ) %]
840                 </span>
841             [% END %]
842         [% END %]
843         </td>
844         [% END %]
845                   [% IF ( previssue.return_failed ) %]
846             <td class="problem">Check-in failed</td>
847         [% ELSE %]
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;" />
851                 </td>
852             [% ELSE %]
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;" />
855             </td>
856             [% END %]
857         [% END %]
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;" />
862           </td>
863         [% END %]
864     </tr>
865     <!-- /loop previssues -->[% END %]
866 <!--/if previssues -->[% END %]
867       </tbody>
868     </table>
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" />
875         [% END %]
876         [% END %]
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" />
879     </fieldset>
880         [% IF ( exports_enabled ) %]
881             <fieldset>
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>
888                 [% END %]
889
890             </select>
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" />
897             </fieldset>
898         [% END %]
899     [% END %]
900     </form>
901 [% ELSE %]
902 <p>Patron has nothing checked out.</p>
903 [% END %]
904
905 </div>
906
907
908 [% IF ( displayrelissues ) %]
909 <div id="relissues">
910     <table id="relissuest">
911     <thead>
912     <tr>
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>
922     </tr>
923     </thead>
924 [% IF ( relissues ) %]  <tbody>
925
926     [% FOREACH relissue IN relissues %]
927     [% IF ( loop.odd ) %]
928     <tr>
929     [% ELSE %]
930     <tr class="highlight">
931     [% END %]
932         [% IF ( relissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
933             <span title="[% relissue.dd_sort %]">[% relissue.dd %]</span></td>
934
935             [% IF ( relissue.itemlost ) %]
936                 <span class="lost">[% KohaAuthorisedValues.GetByCode( 'LOST', relissue.itemlost ) %]</span>
937             [% END %]
938             [% IF ( relissue.damaged ) %]
939                 <span class="dmg">[% KohaAuthorisedValues.GetByCode( 'DAMAGED', relissue.damaged ) %]</span>
940             [% END %]
941         </td>
942         <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>
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>
949      </tr>
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 ) %]
956         <tr>
957     [% ELSE %]
958         <tr class="highlight">
959     [% END %]
960         [% IF ( relprevissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
961         <span title="[% relprevissue.dd_sort %]">[% relprevissue.dd %]</span>
962         </td>
963         <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>
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>
972
973     </tr>
974     <!-- /loop relprevissue -->[% END %]
975 <!--/if relprevissues -->[% END %]
976       </tbody>
977     </table>
978
979 </div>
980 [% END %]<!-- end displayrelissues -->
981
982
983 <div id="reserves">
984 [% IF ( reservloop ) %]
985     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
986         <input type="hidden" name="from" value="circ" />
987     <table id="holdst">
988         <thead><tr>
989             <th>Hold date</th>
990             <th>Title</th>
991             <th>Call number</th>
992             <th>Barcode</th>
993             <th>Expiration</th>
994             <th>Priority</th>
995             <th>Delete?</th>
996             <th>&nbsp;</th>
997         </tr></thead>
998                 <tbody>
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>
1006                         [% END %]
1007                         [% IF ( reservloo.transfered ) %] <strong>in transit</strong> from
1008                         [% reservloo.frombranch %] since [% reservloo.datesent %]
1009                         [% END %]
1010                         [% IF ( reservloo.nottransfered ) %] hasn't been transferred yet from [% reservloo.nottransferedby %]</i>
1011                         [% END %]</em></td>
1012                     <td>[% reservloo.expirationdate | $KohaDates %]</td>
1013                     <td>
1014                         [% IF ( reservloo.waitingposition ) %]<b> [% reservloo.waitingposition %] </b>[% END %]
1015                     </td>
1016                                 <td><select name="rank-request">
1017                     <option value="n">No</option>
1018                     <option value="del">Yes</option>
1019                 </select>
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 %]" />
1023             </td>
1024             <td>[% IF ( reservloo.suspend ) %]Suspended [% IF ( reservloo.suspend_until ) %] until [% reservloo.suspend_until | $KohaDates %][% END %][% END %]</td>
1025             </tr>
1026         [% END %]</tbody>
1027     </table>
1028             <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel marked holds" /></fieldset>
1029     </form>
1030
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" />
1037
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>
1042              [% END %]
1043         </form>
1044     </fieldset>
1045
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" />
1052         </form>
1053     </fieldset>
1054     [% END # IF SuspendHoldsIntranet %]
1055
1056 [% ELSE %]
1057         <p>Patron has nothing on hold.</p>
1058 [% END %]
1059 </div> <!-- reservesloop -->
1060
1061 [% END %] <!-- borrowernumber -->
1062 </div></div>
1063 [% END %]
1064
1065
1066
1067 </div>
1068 </div>
1069 [% UNLESS ( CGIselectborrower ) %][% IF ( borrowernumber ) %]<div class="yui-b">
1070 [% INCLUDE 'circ-menu.inc' %]
1071 </div>[% END %][% END %]
1072 </div>
1073 [% INCLUDE 'intranet-bottom.inc' %]