Lines 13-101
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 |
|
|
|
17 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
17 |
[% INCLUDE 'datatables.inc' %][% END %] |
18 |
[% 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.checkboxes.min.js"></script> |
|
|
20 |
[% INCLUDE 'strings.inc' %] |
19 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
21 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
20 |
[% INCLUDE 'timepicker.inc' %] |
22 |
[% INCLUDE 'timepicker.inc' %] |
|
|
23 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script> |
21 |
<script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script> |
24 |
<script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script> |
|
|
25 |
<script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script> |
26 |
<script type="text/javascript" src="[% themelang %]/js/holds.js"></script> |
22 |
<script type="text/javascript"> |
27 |
<script type="text/javascript"> |
23 |
//<![CDATA[ |
28 |
//<![CDATA[ |
|
|
29 |
/* Set some variable needed in circulation.js */ |
30 |
var interface = "[% interface %]"; |
31 |
var theme = "[% theme %]"; |
32 |
var borrowernumber = "[% borrowernumber %]"; |
33 |
var branchcode = "[% branch %]"; |
34 |
var exports_enabled = "[% exports_enabled %]"; |
35 |
var AllowRenewalLimitOverride = [% CAN_user_circulate_override_renewals && AllowRenewalLimitOverride %]; |
36 |
var relatives_borrowernumbers = new Array(); |
37 |
[% FOREACH b IN relatives_borrowernumbers %] |
38 |
relatives_borrowernumbers.push("[% b %]"); |
39 |
[% END %] |
40 |
|
24 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
41 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
25 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
42 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
26 |
[% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %] |
|
|
27 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
43 |
[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %] |
28 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
44 |
[% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
29 |
$(document).ready(function() { |
45 |
|
30 |
$('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{ |
46 |
$(document).ready(function() { |
31 |
// Correct table sizing for tables hidden in tabs |
47 |
[% IF !( CircAutoPrintQuickSlip == 'clear' ) %] |
32 |
// http://www.datatables.net/examples/api/tabs_and_scrolling.html |
|
|
33 |
"show": function(event, ui) { |
34 |
var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable(); |
35 |
if ( oTable.length > 0 ) { |
36 |
oTable.fnAdjustColumnSizing(); |
37 |
} |
38 |
} |
39 |
}[% END %]); |
40 |
[% IF ( UseTablesortForCirc ) %] |
41 |
$("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
42 |
"sDom": 't', |
43 |
"aaSorting": [], |
44 |
"aoColumnDefs": [ |
45 |
{ "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false } |
46 |
], |
47 |
"aoColumns": [ |
48 |
{ "sType": "title-string" },{ "sType": "anti-the" },null,{ "sType": "title-string" },null,null,null,null,null,null[% IF ( exports_enabled ) %],null[% END %] |
49 |
], |
50 |
"bPaginate": false |
51 |
})); |
52 |
|
53 |
$("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, { |
54 |
"sDom": 't', |
55 |
"aaSorting": [], |
56 |
"aoColumns": [ |
57 |
{ "sType": "title-string" },{ "sType": "anti-the" },null,{ "sType": "title-string" },null,null,null,null,{ "sType": "html" } |
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 |
48 |
// listen submit to trigger qslip on empty checkout |
79 |
$('#mainform').bind('submit',function() { |
49 |
$('#mainform').bind('submit',function() { |
80 |
if ($('#barcode').val() == '') { |
50 |
if ($('#barcode').val() == '') { |
81 |
return printx_window( '[% CircAutoPrintQuickSlip %]' ); } |
51 |
return printx_window( '[% CircAutoPrintQuickSlip %]' ); |
82 |
});[% END %] |
52 |
} |
83 |
|
53 |
}); |
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 %] |
54 |
[% END %] |
98 |
}); |
55 |
}); |
99 |
//]]> |
56 |
//]]> |
100 |
</script> |
57 |
</script> |
101 |
</head> |
58 |
</head> |
Lines 526-532
No patron matched <span class="ex">[% message %]</span>
Link Here
|
526 |
[% ELSE %] |
483 |
[% ELSE %] |
527 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
484 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
528 |
[% END %] |
485 |
[% END %] |
529 |
<input type="submit" value="Check Out" /> |
486 |
<button type="submit" class="btn">Check out</button> |
530 |
|
487 |
|
531 |
[% IF ( SpecifyDueDate ) %]<div class="date-select"> |
488 |
[% IF ( SpecifyDueDate ) %]<div class="date-select"> |
532 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
489 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
Lines 538-544
No patron matched <span class="ex">[% message %]</span>
Link Here
|
538 |
[% ELSE %] |
495 |
[% ELSE %] |
539 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
496 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
540 |
[% END %] |
497 |
[% 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;" /> |
498 |
<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;" >Clear</button> |
542 |
</div>[% END %] |
499 |
</div>[% END %] |
543 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> |
500 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> |
544 |
<input type="hidden" name="branch" value="[% branch %]" /> |
501 |
<input type="hidden" name="branch" value="[% branch %]" /> |
Lines 697-1095
No patron matched <span class="ex">[% message %]</span>
Link Here
|
697 |
<div class="yui-g"><div id="patronlists" class="toptabs"> |
654 |
<div class="yui-g"><div id="patronlists" class="toptabs"> |
698 |
|
655 |
|
699 |
<ul> |
656 |
<ul> |
700 |
<li> [% IF ( issuecount ) %] |
657 |
<li> |
|
|
658 |
[% IF ( issuecount ) %] |
701 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
659 |
<a href="#checkouts">[% issuecount %] Checkout(s)</a> |
702 |
[% ELSE %] |
660 |
[% ELSE %] |
703 |
<a href="#checkouts">0 Checkouts</a> |
661 |
<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">Due date</th> |
728 |
<th scope="col">Title</th> |
729 |
<th scope="col">Item type</th> |
730 |
<th scope="col">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 %] |
662 |
[% END %] |
740 |
</tr></thead> |
663 |
</li> |
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 |
|
664 |
|
754 |
[% IF ( todayissue.itemlost ) %] |
665 |
[% IF relatives_issues_count %] |
755 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %]</span> |
666 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
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 %]&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> |
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 %] |
667 |
[% END %] |
846 |
[% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %] |
|
|
847 |
<span title="[% previssue.dd_sort %]">[% previssue.dd %]</span> |
848 |
|
668 |
|
849 |
[% IF ( previssue.itemlost ) %] |
669 |
<li> |
850 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %]</span> |
670 |
[% IF ( holds_count ) %] |
851 |
[% END %] |
671 |
<a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a> |
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 %]&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> |
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 %] |
672 |
[% ELSE %] |
911 |
[% IF ( previssue.renew_error_on_reserve ) %] |
673 |
<a href="#reserves" id="holds-tab">0 Holds</a> |
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 %] |
674 |
[% END %] |
962 |
[% END %] |
675 |
</li> |
963 |
</form> |
|
|
964 |
[% ELSE %] |
965 |
<p>Patron has nothing checked out.</p> |
966 |
[% END %] |
967 |
|
968 |
</div> |
969 |
|
970 |
|
676 |
|
971 |
[% IF ( displayrelissues ) %] |
677 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li> |
972 |
<div id="relissues"> |
678 |
</ul> |
973 |
<table id="relissuest"> |
|
|
974 |
<thead> |
975 |
<tr> |
976 |
<th scope="col">Due date</th> |
977 |
<th scope="col">Title</th> |
978 |
<th scope="col">Item type</th> |
979 |
<th scope="col">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">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 |
|
679 |
|
998 |
[% IF ( relissue.itemlost ) %] |
680 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
999 |
<span class="lost">[% AuthorisedValues.GetByCode( 'LOST', relissue.itemlost ) %]</span> |
681 |
<div id="checkouts"> |
1000 |
[% END %] |
682 |
[% IF ( issuecount ) %] |
1001 |
[% IF ( relissue.damaged ) %] |
683 |
<table id="issues-table"> |
1002 |
<span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', relissue.damaged ) %]</span> |
684 |
<thead> |
|
|
685 |
<tr> |
686 |
<th scope="col"> </th> |
687 |
<th scope="col">Due date</th> |
688 |
<th scope="col">Due date</th> |
689 |
<th scope="col">Title</th> |
690 |
<th scope="col">Item type</th> |
691 |
<th scope="col">Checked out on</th> |
692 |
<th scope="col">Checked out from</th> |
693 |
<th scope="col">Call no</th> |
694 |
<th scope="col">Charge</th> |
695 |
<th scope="col">Price</th> |
696 |
<th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th> |
697 |
<th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th> |
698 |
<th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th> |
699 |
</tr> |
700 |
</thead> |
701 |
[% INCLUDE 'checkouts-table-footer.inc' %] |
702 |
</table> |
703 |
|
704 |
<fieldset class="action"> |
705 |
[% IF ( CAN_user_circulate_override_renewals ) %] |
706 |
[% IF ( AllowRenewalLimitOverride ) %] |
707 |
<label for="override_limit">Override renewal limit:</label> |
708 |
<input type="checkbox" name="override_limit" id="override_limit" value="1" /> |
709 |
[% END %] |
1003 |
[% END %] |
710 |
[% END %] |
1004 |
</td> |
711 |
<button class="btn" id="RenewCheckinChecked"><i class="icon-check"></i> Renew or return checked items</button> |
1005 |
<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> |
712 |
<button class="btn" id="RenewAll"><i class="icon-book"></i> Renew all</button> |
1006 |
<td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %]<img src="[% relissue.itemtype_image %]" alt="" />[% END %][% END %][% relissue.itemtype %]</td> |
713 |
</fieldset> |
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 %] |
714 |
[% ELSE %] |
1021 |
<tr class="highlight"> |
715 |
<p>Patron has nothing checked out.</p> |
1022 |
[% END %] |
716 |
[% 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 %]&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> |
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> |
717 |
</div> |
1043 |
[% END %]<!-- end displayrelissues --> |
718 |
|
|
|
719 |
[% IF ( relatives_issues_count ) %] |
720 |
<div id="relatives-issues"> |
721 |
<table id="relatives-issues-table"> |
722 |
<thead> |
723 |
<tr> |
724 |
<th scope="col">Due date</th> |
725 |
<th scope="col">Title</th> |
726 |
<th scope="col">Item type</th> |
727 |
<th scope="col">Checked out on</th> |
728 |
<th scope="col">Checked out from</th> |
729 |
<th scope="col">Call no</th> |
730 |
<th scope="col">Charge</th> |
731 |
<th scope="col">Price</th> |
732 |
<th scope="col">Patron</th> |
733 |
</tr> |
734 |
</thead> |
735 |
</table> |
736 |
</div> |
737 |
[% END %] |
1044 |
|
738 |
|
1045 |
[% INCLUDE borrower_debarments.inc %] |
739 |
[% INCLUDE borrower_debarments.inc %] |
1046 |
|
740 |
|
1047 |
<div id="reserves"> |
741 |
<div id="reserves"> |
1048 |
[% IF ( reservloop ) %] |
742 |
[% IF ( holds_count ) %] |
1049 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
743 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
1050 |
<input type="hidden" name="from" value="circ" /> |
744 |
<input type="hidden" name="from" value="circ" /> |
1051 |
<table id="holdst"> |
745 |
<table id="holds-table" style="width: 100% !Important;"> |
1052 |
<thead><tr> |
746 |
<thead> |
1053 |
<th>Hold date</th> |
747 |
<tr> |
1054 |
<th>Title</th> |
748 |
<th>Hold date</th> |
1055 |
<th>Call number</th> |
749 |
<th>Title</th> |
1056 |
<th>Barcode</th> |
750 |
<th>Call number</th> |
1057 |
<th>Expiration</th> |
751 |
<th>Barcode</th> |
1058 |
<th>Priority</th> |
752 |
<th>Expiration</th> |
1059 |
<th>Delete?</th> |
753 |
<th>Priority</th> |
1060 |
<th> </th> |
754 |
<th>Delete?</th> |
1061 |
</tr></thead> |
755 |
</tr> |
1062 |
<tbody> |
756 |
</thead> |
1063 |
[% FOREACH reservloo IN reservloop %] |
757 |
</table> |
1064 |
<tr class="[% reservloo.color %]"> |
758 |
|
1065 |
<td>[% reservloo.reservedate %]</td> |
759 |
<fieldset class="action"> |
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> |
760 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
1067 |
<td>[% reservloo.itemcallnumber %]</td> |
761 |
</fieldset> |
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> |
762 |
</form> |
1094 |
|
763 |
|
1095 |
[% IF SuspendHoldsIntranet %] |
764 |
[% IF SuspendHoldsIntranet %] |