Lines 13-99
Link Here
|
13 |
</title> |
13 |
</title> |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
15 |
[% INCLUDE 'calendar.inc' %] |
15 |
[% INCLUDE 'calendar.inc' %] |
16 |
[% IF ( UseTablesortForCirc ) %]<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
16 |
<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> |
17 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
18 |
[% INCLUDE 'datatables-strings.inc' %] |
18 |
[% INCLUDE 'datatables-strings.inc' %] |
19 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>[% END %] |
19 |
<!-- <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> --> |
20 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
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> |
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> |
22 |
<script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script> |
|
|
23 |
<script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script> |
23 |
<script type="text/javascript"> |
24 |
<script type="text/javascript"> |
24 |
//<![CDATA[ |
25 |
//<![CDATA[ |
|
|
26 |
/* Set some variable needed in circulation.js */ |
27 |
var interface = "[% interface %]"; |
28 |
var theme = "[% theme %]"; |
29 |
var borrowernumber = "[% borrowernumber %]"; |
30 |
var branchcode = "[% branch %]"; |
31 |
var exports_enabled = "[% exports_enabled %]"; |
32 |
var AllowRenewalLimitOverride = [% CAN_user_circulate_override_renewals && AllowRenewalLimitOverride %]; |
33 |
var relatives_borrowernumbers = new Array(); |
34 |
[% FOREACH b IN relatives_borrowernumbers %] |
35 |
relatives_borrowernumbers.push("[% b %]"); |
36 |
[% END %] |
37 |
|
25 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
38 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
26 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
39 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
27 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
40 |
[% 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 %] |
41 |
[% 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 %] |
42 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
30 |
$(document).ready(function() { |
43 |
|
31 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
44 |
$(document).ready(function() { |
32 |
// Correct table sizing for tables hidden in tabs |
45 |
[% IF !( CircAutoPrintQuickSlip == 'clear' ) %] |
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 == 'clear' ) %] |
79 |
// listen submit to trigger qslip on empty checkout |
46 |
// listen submit to trigger qslip on empty checkout |
80 |
$('#mainform').bind('submit',function() { |
47 |
$('#mainform').bind('submit',function() { |
81 |
if ($('#barcode').val() == '') { |
48 |
if ($('#barcode').val() == '') { |
82 |
return printx_window( '[% CircAutoPrintQuickSlip %]' ); } |
49 |
return printx_window( '[% CircAutoPrintQuickSlip %]' ); |
83 |
});[% END %] |
50 |
} |
84 |
|
51 |
}); |
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 %] |
52 |
[% END %] |
96 |
}); |
53 |
}); |
97 |
//]]> |
54 |
//]]> |
98 |
</script> |
55 |
</script> |
99 |
</head> |
56 |
</head> |
Lines 515-521
No patron matched <span class="ex">[% message %]</span>
Link Here
|
515 |
[% ELSE %] |
472 |
[% ELSE %] |
516 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
473 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
517 |
[% END %] |
474 |
[% END %] |
518 |
<input type="submit" value="Check Out" /> |
475 |
<button type="submit" class="btn"><i class="icon-barcode"></i> Check out</button> |
519 |
|
476 |
|
520 |
[% IF ( SpecifyDueDate ) %]<div class="date-select"> |
477 |
[% IF ( SpecifyDueDate ) %]<div class="date-select"> |
521 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
478 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
Lines 527-533
No patron matched <span class="ex">[% message %]</span>
Link Here
|
527 |
[% ELSE %] |
484 |
[% ELSE %] |
528 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
485 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
529 |
[% END %] |
486 |
[% END %] |
530 |
<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;" /> |
487 |
<button class="btn btn-small action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" ><i class="icon-remove-circle"></i> Clear</button> |
531 |
</div>[% END %] |
488 |
</div>[% END %] |
532 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> |
489 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> |
533 |
<input type="hidden" name="branch" value="[% branch %]" /> |
490 |
<input type="hidden" name="branch" value="[% branch %]" /> |
Lines 686-1031
No patron matched <span class="ex">[% message %]</span>
Link Here
|
686 |
<div class="yui-g"><div id="patronlists" class="toptabs"> |
643 |
<div class="yui-g"><div id="patronlists" class="toptabs"> |
687 |
|
644 |
|
688 |
<ul> |
645 |
<ul> |
689 |
<li> [% IF ( issuecount ) %] |
646 |
<li> |
|
|
647 |
[% IF ( issuecount ) %] |
690 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
648 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
691 |
[% ELSE %] |
649 |
[% ELSE %] |
692 |
<a href="#checkouts">0 Checkouts</a> |
650 |
<a href="#checkouts">0 Checkouts</a> |
693 |
[% END %]</li> |
651 |
[% END %] |
694 |
[% IF ( displayrelissues ) %] |
652 |
</li> |
695 |
<li><a href="#relissues">Relatives' checkouts</a></li> |
653 |
|
696 |
[% END %] |
654 |
[% IF relatives_issues_count %] |
697 |
<li>[% IF ( countreserv ) %] |
655 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
|
|
656 |
[% END %] |
657 |
|
658 |
<li> |
659 |
[% IF ( countreserv ) %] |
698 |
<a href="#reserves">[% countreserv %] Hold(s)</a> |
660 |
<a href="#reserves">[% countreserv %] Hold(s)</a> |
699 |
[% ELSE %] |
661 |
[% ELSE %] |
700 |
<a href="#reserves">0 Holds</a> |
662 |
<a href="#reserves">0 Holds</a> |
701 |
[% END %]</li> |
663 |
[% END %] |
702 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li> |
664 |
</li> |
703 |
|
665 |
|
|
|
666 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li> |
704 |
</ul> |
667 |
</ul> |
705 |
|
668 |
|
706 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
669 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
707 |
<div id="checkouts"> |
670 |
<div id="checkouts"> |
708 |
[% IF ( issuecount ) %] |
671 |
[% IF ( issuecount ) %] |
709 |
<form name="issues" action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed"> |
672 |
<form name="issues" action="/cgi-bin/koha/tools/export.pl" method="post" class="checkboxed"> |
710 |
<input type="hidden" value="circ" name="destination" /> |
673 |
<table id="issues-table"> |
711 |
<input type="hidden" name="cardnumber" value="[% cardnumber %]" /> |
674 |
<thead> |
712 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
675 |
<tr> |
713 |
<input type="hidden" name="branch" value="[% branch %]" /> |
676 |
<th scope="col">Due date</th> |
714 |
<table id="issuest"> |
677 |
<th scope="col">Title</th> |
715 |
<thead><tr> |
678 |
<th scope="col">Item type</th> |
716 |
<th scope="col">Due date</th> |
679 |
<th scope="col">Checked out on</th> |
717 |
<th scope="col">Title</th> |
680 |
<th scope="col">Checked out from</th> |
718 |
<th scope="col">Item type</th> |
681 |
<th scope="col">Call no</th> |
719 |
<th scope="col">Checked out on</th> |
682 |
<th scope="col">Charge</th> |
720 |
<th scope="col">Checked out from</th> |
683 |
<th scope="col">Price</th> |
721 |
<th scope="col">Call no</th> |
684 |
<th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th> |
722 |
<th scope="col">Charge</th> |
685 |
<th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th> |
723 |
<th scope="col">Price</th> |
686 |
<th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th> |
724 |
<th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th> |
687 |
</tr> |
725 |
<th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th> |
688 |
</thead> |
726 |
[% IF ( exports_enabled ) %] |
689 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
727 |
<th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th> |
690 |
</table> |
728 |
[% END %] |
691 |
|
729 |
</tr></thead> |
692 |
[% IF ( issuecount ) %] |
730 |
[% IF ( todayissues ) %] |
693 |
<fieldset class="action"> |
731 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
694 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
732 |
<tbody> |
695 |
[% IF ( AllowRenewalLimitOverride ) %] |
733 |
|
696 |
<label for="override_limit">Override renewal limit:</label> |
734 |
[% FOREACH todayissue IN todayissues %] |
697 |
<input type="checkbox" name="override_limit" id="override_limit" value="1" /> |
735 |
[% IF ( loop.odd ) %] |
698 |
[% END %] |
736 |
<tr> |
|
|
737 |
[% ELSE %] |
738 |
<tr class="highlight"> |
739 |
[% END %] |
740 |
[% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %] |
741 |
<span title="[% todayissue.dd_sort %]">[% todayissue.dd %]</span> |
742 |
|
743 |
[% IF ( todayissue.itemlost ) %] |
744 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %]</span> |
745 |
[% END %] |
746 |
[% IF ( todayissue.damaged ) %] |
747 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', todayissue.damaged ) %]</span> |
748 |
[% END %] |
749 |
</td> |
750 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% todayissue.biblionumber %]&type=intra"><strong>[% todayissue.title |html %][% FOREACH subtitl IN todayissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( todayissue.author ) %], by [% todayissue.author %][% END %][% IF ( todayissue.itemnotes ) %]- <span class="circ-hlt">[% todayissue.itemnotes %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% todayissue.biblionumber %]&itemnumber=[% todayissue.itemnumber %]#item[% todayissue.itemnumber %]">[% todayissue.barcode %]</a></td> |
751 |
<td>[% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %]<img src="[% todayissue.itemtype_image %]" alt="" />[% END %][% END %][% todayissue.itemtype %]</td> |
752 |
<td><span title="[% todayissue.displaydate_sort %]">[% todayissue.checkoutdate %]</span></td> |
753 |
[% IF ( todayissue.multiple_borrowers ) %]<td>[% todayissue.firstname %] [% todayissue.surname %]</td>[% END %] |
754 |
<td>[% todayissue.issuingbranchname %]</td> |
755 |
<td>[% todayissue.itemcallnumber %]</td> |
756 |
<td>[% todayissue.charge %]</td> |
757 |
<td>[% todayissue.replacementprice %]</td> |
758 |
[% IF ( todayissue.renew_failed ) %] |
759 |
<td class="problem">Renewal failed</td> |
760 |
[% ELSE %] |
761 |
<td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span> |
762 |
[% IF ( todayissue.can_renew ) %] |
763 |
<input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" /> |
764 |
[% IF ( todayissue.od ) %] |
765 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" /> |
766 |
[% ELSE %] |
767 |
<input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" /> |
768 |
[% END %] |
769 |
[% IF todayissue.renewsallowed && todayissue.renewsleft %] |
770 |
<span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span> |
771 |
[% END %] |
772 |
[% ELSE %] |
773 |
[% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
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 |
</span> |
781 |
[% IF todayissue.renewsallowed && todayissue.renewsleft %] |
782 |
<span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span> |
783 |
[% END %] |
784 |
<span class="renewals-disabled"> |
785 |
[% END %] |
786 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
787 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
788 |
[% END %] |
789 |
[% IF ( todayissue.renew_error_too_many ) %] |
790 |
Not renewable |
791 |
[% END %] |
699 |
[% END %] |
792 |
[% IF ( todayissue.can_confirm ) %] |
700 |
<button class="btn" id="RenewCheckinChecked"><i class="icon-check"></i> Renew or return checked items</button> |
793 |
</span> |
701 |
<button class="btn" id="RenewAll"><i class="icon-book"></i> Renew all</button> |
794 |
[% END %] |
702 |
</fieldset> |
795 |
[% END %] |
|
|
796 |
</td> |
797 |
[% END %] |
798 |
[% IF ( todayissue.return_failed ) %] |
799 |
<td class="problem">Checkin failed</td> |
800 |
[% ELSE %] |
801 |
[% IF ( todayissue.renew_error_on_reserve ) %] |
802 |
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a> |
803 |
<input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" /> |
804 |
</td> |
805 |
[% ELSE %] |
806 |
<td><input type="checkbox" class="radio" name="barcodes[]" value="[% todayissue.barcode %]" /> |
807 |
<input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" /> |
808 |
</td> |
809 |
[% END %] |
810 |
[% END %] |
811 |
[% IF ( exports_enabled ) %] |
812 |
<td style="text-align:center;"> |
813 |
<input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" /> |
814 |
<input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" /> |
815 |
</td> |
816 |
[% END %] |
817 |
</tr> |
818 |
[% END %] <!-- /loop todayissues --> |
819 |
<!-- /if todayissues -->[% END %] |
820 |
|
821 |
[% IF ( previssues ) %] |
822 |
[% UNLESS ( todayissues ) %] |
823 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
824 |
<tbody> |
825 |
[% END %] |
826 |
[% 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 %] |
827 |
[% FOREACH previssue IN previssues %] |
828 |
[% IF ( loop.odd ) %] |
829 |
<tr> |
830 |
[% ELSE %] |
831 |
<tr class="highlight"> |
832 |
[% END %] |
833 |
[% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %] |
834 |
<span title="[% previssue.dd_sort %]">[% previssue.dd %]</span> |
835 |
|
703 |
|
836 |
[% IF ( previssue.itemlost ) %] |
704 |
[% IF ( exports_enabled ) %] |
837 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %]</span> |
705 |
<fieldset> |
838 |
[% END %] |
706 |
<label for="export_formats"><b>Export checkouts using format:</b></label> |
839 |
[% IF ( previssue.damaged ) %] |
707 |
<select name="export_formats" id="export_formats"> |
840 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', previssue.damaged ) %]</span> |
708 |
<option value="iso2709_995">ISO2709 with items</option> |
841 |
[% END %] |
709 |
<option value="iso2709">ISO2709 without items</option> |
842 |
</td> |
710 |
[% IF ( export_with_csv_profile ) %] |
843 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% previssue.biblionumber %]&type=intra"><strong>[% previssue.title |html %][% FOREACH subtitl IN previssue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( previssue.author ) %], by [% previssue.author %][% END %] [% IF ( previssue.itemnotes ) %]- [% previssue.itemnotes %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% previssue.biblionumber %]&itemnumber=[% previssue.itemnumber %]#item[% previssue.itemnumber %]">[% previssue.barcode %]</a></td> |
711 |
<option value="csv">CSV</option> |
844 |
<td> |
712 |
[% END %] |
845 |
[% previssue.itemtype %] |
713 |
</select> |
846 |
</td> |
714 |
|
847 |
<td><span title="[% previssue.displaydate_sort %]">[% previssue.displaydate %]</span></td> |
715 |
<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" /> |
848 |
[% IF ( previssue.multiple_borrowers ) %]<td>[% previssue.firstname %] [% previssue.surname %]</td>[% END %] |
716 |
<input type="hidden" name="op" value="export" /> |
849 |
<td>[% previssue.issuingbranchname %]</td> |
717 |
<input type="hidden" id="export_format" name="format" value="iso2709" /> |
850 |
<td>[% previssue.itemcallnumber %]</td> |
718 |
<input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> |
851 |
<td>[% previssue.charge %]</td> |
719 |
<input type="hidden" id="record_type" name="record_type" value="bibs" /> |
852 |
<td>[% previssue.replacementprice %]</td> |
720 |
<button class="btn btn-small" id="export_submit"><i class="icon-download-alt"></i> Export</button> |
853 |
[% IF ( previssue.renew_failed ) %] |
721 |
</fieldset> |
854 |
<td class="problem">Renewal failed</td> |
|
|
855 |
[% ELSE %] |
856 |
<td><span style="padding: 0 1em;">[% IF ( previssue.renewals ) %][% previssue.renewals %][% ELSE %]0[% END %]</span> |
857 |
[% IF ( previssue.can_renew ) %] |
858 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
859 |
[% IF ( previssue.od ) %] |
860 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
861 |
[% ELSE %] |
862 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
863 |
[% END %] |
864 |
[% IF previssue.renewsallowed && previssue.renewsleft %] |
865 |
<span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span> |
866 |
[% END %] |
867 |
[% ELSE %] |
868 |
[% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none"> |
869 |
<input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" /> |
870 |
[% IF ( previssue.od ) %] |
871 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" /> |
872 |
[% ELSE %] |
873 |
<input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" /> |
874 |
[% END %] |
875 |
</span> |
876 |
[% IF previssue.renewsallowed && previssue.renewsleft %] |
877 |
<span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span> |
878 |
[% END %] |
879 |
<span class="renewals-disabled"> |
880 |
[% END %] |
881 |
[% IF ( previssue.renew_error_on_reserve ) %] |
882 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
883 |
[% END %] |
884 |
[% IF ( previssue.renew_error_too_many ) %] |
885 |
Not renewable |
886 |
[% END %] |
887 |
[% IF ( previssue.can_confirm ) %] |
888 |
</span> |
889 |
[% END %] |
890 |
[% END %] |
891 |
</td> |
892 |
[% END %] |
893 |
[% IF ( previssue.return_failed ) %] |
894 |
<td class="problem">Check-in failed</td> |
895 |
[% ELSE %] |
896 |
[% IF ( previssue.renew_error_on_reserve ) %] |
897 |
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a> |
898 |
<input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" /> |
899 |
</td> |
900 |
[% ELSE %] |
901 |
<td><input type="checkbox" class="radio" name="barcodes[]" value="[% previssue.barcode %]" /> |
902 |
<input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" /> |
903 |
</td> |
904 |
[% END %] |
722 |
[% END %] |
905 |
[% END %] |
723 |
[% END %] |
906 |
[% IF ( exports_enabled ) %] |
|
|
907 |
<td style="text-align:center;"> |
908 |
<input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" /> |
909 |
<input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" /> |
910 |
</td> |
911 |
[% END %] |
912 |
</tr> |
913 |
<!-- /loop previssues -->[% END %] |
914 |
<!--/if previssues -->[% END %] |
915 |
</tbody> |
916 |
</table> |
917 |
[% IF ( issuecount ) %] |
918 |
<fieldset class="action"> |
919 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
920 |
[% IF ( AllowRenewalLimitOverride ) %] |
921 |
<label for="override_limit">Override renewal limit:</label> |
922 |
<input type="checkbox" name="override_limit" id="override_limit" value="1" /> |
923 |
[% END %] |
924 |
[% END %] |
925 |
<input type="submit" name="renew_checked" value="Renew or Return checked items" /> |
926 |
<input type="submit" id="renew_all" name="renew_all" value="Renew all" /> |
927 |
</fieldset> |
928 |
[% IF ( exports_enabled ) %] |
929 |
<fieldset> |
930 |
<label for="export_formats"><b>Export checkouts using format:</b></label> |
931 |
<select name="export_formats" id="export_formats"> |
932 |
<option value="iso2709_995">ISO2709 with items</option> |
933 |
<option value="iso2709">ISO2709 without items</option> |
934 |
[% IF ( export_with_csv_profile ) %] |
935 |
<option value="csv">CSV</option> |
936 |
[% END %] |
937 |
|
938 |
</select> |
939 |
<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" /> |
940 |
<input type="hidden" name="op" value="export" /> |
941 |
<input type="hidden" id="export_format" name="format" value="iso2709" /> |
942 |
<input type="hidden" id="dont_export_item" name="dont_export_item" value="0" /> |
943 |
<input type="hidden" id="record_type" name="record_type" value="bibs" /> |
944 |
<input type="button" id="export_submit" value="Export" /> |
945 |
</fieldset> |
946 |
[% END %] |
947 |
[% END %] |
948 |
</form> |
724 |
</form> |
949 |
[% ELSE %] |
725 |
[% ELSE %] |
950 |
<p>Patron has nothing checked out.</p> |
726 |
<p>Patron has nothing checked out.</p> |
951 |
[% END %] |
727 |
[% END %] |
952 |
|
728 |
|
953 |
</div> |
729 |
</div> |
954 |
|
730 |
|
955 |
|
731 |
|
956 |
[% IF ( displayrelissues ) %] |
732 |
[% IF ( relatives_issues_count ) %] |
957 |
<div id="relissues"> |
733 |
<div id="relatives-issues"> |
958 |
<table id="relissuest"> |
734 |
<table id="relatives-issues-table"> |
959 |
<thead> |
735 |
<thead> |
960 |
<tr> |
736 |
<tr> |
961 |
<th scope="col">Due date</th> |
737 |
<th scope="col">Due date</th> |
962 |
<th scope="col">Title</th> |
738 |
<th scope="col">Title</th> |
963 |
<th scope="col">Item type</th> |
739 |
<th scope="col">Item type</th> |
964 |
<th scope="col">Checked out on</th> |
740 |
<th scope="col">Checked out on</th> |
965 |
<th scope="col">Checked out from</th> |
741 |
<th scope="col">Checked out from</th> |
966 |
<th scope="col">Call no</th> |
742 |
<th scope="col">Call no</th> |
967 |
<th scope="col">Charge</th> |
743 |
<th scope="col">Charge</th> |
968 |
<th scope="col">Price</th> |
744 |
<th scope="col">Price</th> |
969 |
<th scope="col">Patron</th> |
745 |
<th scope="col">Patron</th> |
970 |
</tr> |
746 |
</tr> |
971 |
</thead> |
747 |
</thead> |
972 |
[% IF ( relissues ) %] <tbody> |
|
|
973 |
|
974 |
[% FOREACH relissue IN relissues %] |
975 |
[% IF ( loop.odd ) %] |
976 |
<tr> |
977 |
[% ELSE %] |
978 |
<tr class="highlight"> |
979 |
[% END %] |
980 |
[% IF ( relissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %] |
981 |
<span title="[% relissue.dd_sort %]">[% relissue.dd %]</span></td> |
982 |
|
983 |
[% IF ( relissue.itemlost ) %] |
984 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', relissue.itemlost ) %]</span> |
985 |
[% END %] |
986 |
[% IF ( relissue.damaged ) %] |
987 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', relissue.damaged ) %]</span> |
988 |
[% END %] |
989 |
</td> |
990 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relissue.biblionumber %]&type=intra"><strong>[% relissue.title |html %][% FOREACH subtitl IN relissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( relissue.author ) %], by [% relissue.author %][% END %][% IF ( relissue.itemnotes ) %]- <span class="circ-hlt">[% relissue.itemnotes %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relissue.biblionumber %]&itemnumber=[% relissue.itemnumber %]#item[% relissue.itemnumber %]">[% relissue.barcode %]</a></td> |
991 |
<td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %]<img src="[% relissue.itemtype_image %]" alt="" />[% END %][% END %][% relissue.itemtype %]</td> |
992 |
<td><span title="[% relissue.displaydate_sort %]">[% relissue.displaydate %]</span></td> |
993 |
<td>[% relissue.issuingbranchname %]</td> |
994 |
<td>[% relissue.itemcallnumber %]</td> |
995 |
<td>[% relissue.charge %]</td> |
996 |
<td>[% relissue.replacementprice %]</td><td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissue.borrowernumber %]">[% relissue.firstname %] [% relissue.surname %] ([% relissue.cardnumber %])</a></td> |
997 |
</tr> |
998 |
[% END %] <!-- /loop relissues --> |
999 |
<!-- /if relissues -->[% END %] |
1000 |
[% IF ( relprevissues ) %] |
1001 |
[% 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 %] |
1002 |
[% FOREACH relprevissue IN relprevissues %] |
1003 |
[% IF ( loop.odd ) %] |
1004 |
<tr> |
1005 |
[% ELSE %] |
1006 |
<tr class="highlight"> |
1007 |
[% END %] |
1008 |
[% IF ( relprevissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %] |
1009 |
<span title="[% relprevissue.dd_sort %]">[% relprevissue.dd %]</span> |
1010 |
</td> |
1011 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relprevissue.biblionumber %]&type=intra"><strong>[% relprevissue.title |html %][% FOREACH subtitl IN relprevissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( relprevissue.author ) %], by [% relprevissue.author %][% END %] [% IF ( relprevissue.itemnotes ) %]- [% relprevissue.itemnotes %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relprevissue.biblionumber %]&itemnumber=[% relprevissue.itemnumber %]#item[% relprevissue.itemnumber %]">[% relprevissue.barcode %]</a></td> |
1012 |
<td>[% UNLESS noItemTypeImages %][% IF relprevissue.itemtype_image %]<img src="[% relprevissue.itemtype_image %]" alt="" />[% END %][% END %][% relprevissue.itemtype %]</td> |
1013 |
<td><span title="[% relprevissue.displaydate_sort %]">[% relprevissue.displaydate %]</span></td> |
1014 |
<td>[% relprevissue.issuingbranchname %]</td> |
1015 |
<td>[% relprevissue.itemcallnumber %]</td> |
1016 |
[% IF ( relprevissue.multiple_borrowers ) %]<td>[% relprevissue.firstname %] [% relprevissue.surname %]</td>[% END %] |
1017 |
<td>[% relprevissue.charge %]</td> |
1018 |
<td>[% relprevissue.replacementprice %]</td> |
1019 |
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relprevissue.borrowernumber %]">[% relprevissue.firstname %] [% relprevissue.surname %] ([% relprevissue.cardnumber %])</a></td> |
1020 |
|
1021 |
</tr> |
1022 |
<!-- /loop relprevissue -->[% END %] |
1023 |
<!--/if relprevissues -->[% END %] |
1024 |
</tbody> |
1025 |
</table> |
748 |
</table> |
1026 |
|
|
|
1027 |
</div> |
749 |
</div> |
1028 |
[% END %]<!-- end displayrelissues --> |
750 |
[% END %] |
1029 |
|
751 |
|
1030 |
[% INCLUDE borrower_debarments.inc %] |
752 |
[% INCLUDE borrower_debarments.inc %] |
1031 |
|
753 |
|
1032 |
- |
|
|