|
Lines 669-759
Link Here
|
| 669 |
</div> |
669 |
</div> |
| 670 |
[% END%] |
670 |
[% END%] |
| 671 |
|
671 |
|
| 672 |
<div id="exemptfines" class="dialog message" style="display:none;"> |
|
|
| 673 |
<p>Fines for returned items are forgiven.</p> |
| 674 |
</div> |
| 675 |
<div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;"> |
| 676 |
<p>Fines are not charged for manually cancelled holds.</p> |
| 677 |
</div> |
| 678 |
<div id="dropboxmode" class="dialog message" style="display:none;"> |
| 679 |
<p>Book drop mode. (Effective checkin date is [% dropboxdate | $KohaDates %] ).</p> |
| 680 |
</div> |
| 681 |
|
| 682 |
<div class="row"> |
| 683 |
<form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
672 |
<form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
| 684 |
<div class="col-sm-6"> |
673 |
<fieldset id="circ_returns_checkin"> |
| 685 |
<fieldset> |
674 |
<h3>Check in</h3> |
| 686 |
<legend>Check in</legend> |
675 |
<div class="row"> |
| 687 |
<label for="barcode">Enter item barcode: </label> |
676 |
<div class="col-sm-6"> |
|
|
677 |
<div class="hint">Enter item barcode:</div> |
| 678 |
<div class="form-control-group"> |
| 679 |
[% IF ( exemptfine ) %] |
| 680 |
<input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" /> |
| 681 |
[% ELSIF ( dropboxmode ) %] |
| 682 |
<input name="barcode" id="barcode" size="14" class="barcode focus input-warning" /> |
| 683 |
[% ELSE %] |
| 684 |
<input name="barcode" id="barcode" size="14" class="barcode focus" /> |
| 685 |
[% END %] |
| 686 |
<button type="submit" class="btn btn-default">Check in</button> |
| 687 |
[% FOREACH inputloo IN inputloop %] |
| 688 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
| 689 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
| 690 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
| 691 |
[% END %] |
| 692 |
</div> |
| 693 |
<div id="show-circ-settings"> |
| 694 |
<a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a> |
| 695 |
</div> |
| 696 |
</div> |
| 697 |
<div class="col-sm-6"> |
| 688 |
[% IF ( exemptfine ) %] |
698 |
[% IF ( exemptfine ) %] |
| 689 |
<input name="barcode" id="barcode" size="14" class="focus alert" type="text" /> |
699 |
<div id="exemptfines" class="checkin-active-setting"> |
| 690 |
[% ELSIF ( dropboxmode ) %] |
|
|
| 691 |
<input name="barcode" id="barcode" size="14" class="focus alert" type="text" /> |
| 692 |
[% ELSE %] |
700 |
[% ELSE %] |
| 693 |
<input name="barcode" id="barcode" size="14" class="focus" type="text" /> |
701 |
<div id="exemptfines" class="checkin-active-setting" style="display:none;"> |
| 694 |
[% END %] |
702 |
[% END %] |
| 695 |
<input type="submit" class="submit" value="Submit" /> |
703 |
<p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p> |
|
|
704 |
</div> |
| 705 |
|
| 706 |
[% IF ( forgivemanualholdsexpire ) %] |
| 707 |
<div id="forgivemanualholdsexpire-alert" class="checkin-active-setting"> |
| 708 |
[% ELSE %] |
| 709 |
<div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;"> |
| 710 |
[% END %] |
| 711 |
<p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p> |
| 712 |
</div> |
| 713 |
|
| 714 |
[% IF ( dropboxmode ) %] |
| 715 |
<div id="dropboxmode" class="checkin-active-setting"> |
| 716 |
[% ELSE %] |
| 717 |
<div id="dropboxmode" class="checkin-active-setting" style="display:none;"> |
| 718 |
[% END %] |
| 719 |
<p><i class="fa fa-check"></i> Book drop mode. <span class="single-line">( Effective checkin date is [% dropboxdate | $KohaDates with_hours => 1 %] )</span></p> |
| 720 |
</div> |
| 721 |
[% IF ( return_date_override_remember ) %] |
| 722 |
<div id="return_date_remember" class="checkin-active-setting"> |
| 723 |
[% ELSE %] |
| 724 |
<div id="return_date_remember" class="checkin-active-setting" style="display:none;"> |
| 725 |
[% END %] |
| 726 |
<p><i class="fa fa-check"></i> Saved check-in date: <span id="saved_return_date" class="single-line">[% return_date_override | html %]</span></p> |
| 727 |
</div> |
| 728 |
</div> |
| 729 |
</div> |
| 696 |
|
730 |
|
|
|
731 |
<div class="circ-settings"> |
| 697 |
[% IF Koha.Preference('SpecifyReturnDate') %] |
732 |
[% IF Koha.Preference('SpecifyReturnDate') %] |
| 698 |
<div class="date-select" id="return_date_override_fields"> |
733 |
<div class="date-select" id="return_date_override_fields"> |
| 699 |
<div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div> |
734 |
<div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div> |
| 700 |
|
735 |
|
| 701 |
<input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" /> |
736 |
<input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" /> |
| 702 |
|
737 |
|
| 703 |
<label for="return_date_override_remember"> Remember for next check in:</label> |
|
|
| 704 |
[% IF ( return_date_override_remember ) %] |
| 705 |
<input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" /> |
| 706 |
[% ELSE %] |
| 707 |
<input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" /> |
| 708 |
[% END %] |
| 709 |
|
| 710 |
<input type="button" class="action" id="cleardate" value="Clear" name="cleardate" /> |
| 711 |
</div> |
| 712 |
[% END %] |
| 713 |
[% FOREACH inputloo IN inputloop %] |
| 714 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
| 715 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
| 716 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
| 717 |
[% END %] |
| 718 |
|
738 |
|
| 719 |
|
739 |
|
| 720 |
</fieldset> |
740 |
<button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button> |
|
|
741 |
<div class="circ-setting"> |
| 742 |
[% IF ( return_date_override_remember ) %] |
| 743 |
<input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" /> |
| 744 |
[% ELSE %] |
| 745 |
<input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" /> |
| 746 |
[% END %] |
| 747 |
<label for="return_date_override_remember"> Remember due date for next check in</label> |
| 748 |
</div> |
| 721 |
</div> |
749 |
</div> |
| 722 |
<div class="col-sm-6"> |
750 |
[% END %] |
| 723 |
<fieldset id="checkin_options"> |
|
|
| 724 |
<legend>Options</legend> |
| 725 |
[% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %] |
751 |
[% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %] |
| 726 |
<p> |
752 |
<div id="forgive-overdue-fines" class="circ-setting"> |
| 727 |
[% IF ( exemptfine ) %] |
753 |
[% IF ( exemptfine ) %] |
| 728 |
<input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" /> |
754 |
<input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" /> |
| 729 |
[% ELSE %] |
755 |
[% ELSE %] |
| 730 |
<input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" /> |
756 |
<input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" /> |
| 731 |
[% END %] |
757 |
[% END %] |
| 732 |
<label for="exemptcheck">Forgive overdue charges</label> |
758 |
<label for="exemptcheck">Forgive overdue charges</label> |
| 733 |
</p> |
759 |
</div> |
| 734 |
[% END %] <!-- overduecharges --> |
760 |
[% END %] <!-- overduecharges --> |
| 735 |
<p> |
761 |
<div id="book-drop-mode" class="circ-setting"> |
| 736 |
[% IF ( dropboxmode ) %] |
762 |
[% IF ( dropboxmode ) %] |
| 737 |
<input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" /> |
763 |
<input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" /> |
| 738 |
[% ELSE %] |
764 |
[% ELSE %] |
| 739 |
<input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" /> |
765 |
<input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" /> |
| 740 |
[% END %] |
766 |
[% END %] |
| 741 |
<label for="dropboxcheck">Book drop mode</label> |
767 |
<label for="dropboxcheck">Book drop mode</label> |
| 742 |
</p> |
768 |
</div> |
| 743 |
[% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %] |
769 |
[% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %] |
| 744 |
<p> |
770 |
<div class="forgive-manual-hold-fees circ-setting"> |
| 745 |
[% IF ( forgivemanualholdsexpire ) %] |
771 |
[% IF ( forgivemanualholdsexpire ) %] |
| 746 |
<input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" /> |
772 |
<input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" /> |
| 747 |
[% ELSE %] |
773 |
[% ELSE %] |
| 748 |
<input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" /> |
774 |
<input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" /> |
| 749 |
[% END %] |
775 |
[% END %] |
| 750 |
<label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label> |
776 |
<label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label> |
| 751 |
</p> |
777 |
</div> |
| 752 |
[% END %] <!-- overduecharges --> |
778 |
[% END %] <!-- overduecharges --> |
| 753 |
</fieldset> |
779 |
</div> <!-- /.circ-settings --> |
| 754 |
</div> |
780 |
</fieldset> <!-- /#circ_returns_checkin --> |
| 755 |
</form> |
781 |
</form> <!-- /#checkin-form --> |
| 756 |
</div> |
|
|
| 757 |
|
782 |
|
| 758 |
[% IF ( riloop ) %] |
783 |
[% IF ( riloop ) %] |
| 759 |
<h2>Checked-in items</h2> |
784 |
<h2>Checked-in items</h2> |
|
Lines 809-823
Link Here
|
| 809 |
</table> |
834 |
</table> |
| 810 |
[% END %] |
835 |
[% END %] |
| 811 |
|
836 |
|
| 812 |
[% IF Koha.Preference('CircSidebar') %] |
837 |
[% IF Koha.Preference('CircSidebar') %] |
| 813 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
838 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 814 |
<div class="col-sm-2 col-sm-pull-10"> |
839 |
<div class="col-sm-2 col-sm-pull-10"> |
| 815 |
<aside> |
840 |
<aside> |
| 816 |
[% INCLUDE 'circ-nav.inc' %] |
841 |
[% INCLUDE 'circ-nav.inc' %] |
| 817 |
</aside> |
842 |
</aside> |
| 818 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
843 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 819 |
</div> <!-- /.row --> |
844 |
</div> <!-- /.row --> |
| 820 |
[% END %] |
845 |
[% ELSE %] |
|
|
846 |
</div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 --> |
| 847 |
</div> <!-- /.row --> |
| 848 |
[% END %] |
| 821 |
|
849 |
|
| 822 |
</main> |
850 |
</main> |
| 823 |
</div> <!-- /.col-sm-12 --> |
851 |
</div> <!-- /.col-sm-12 --> |
|
Lines 828-833
Link Here
|
| 828 |
[% INCLUDE 'columns_settings.inc' %] |
856 |
[% INCLUDE 'columns_settings.inc' %] |
| 829 |
[% INCLUDE 'calendar.inc' %] |
857 |
[% INCLUDE 'calendar.inc' %] |
| 830 |
[% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %] |
858 |
[% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %] |
|
|
859 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
| 831 |
[% INCLUDE 'timepicker.inc' %] |
860 |
[% INCLUDE 'timepicker.inc' %] |
| 832 |
|
861 |
|
| 833 |
<script> |
862 |
<script> |
|
Lines 894-921
Link Here
|
| 894 |
return false; |
923 |
return false; |
| 895 |
} |
924 |
} |
| 896 |
} |
925 |
} |
|
|
926 |
// Add saved date information to onscreen message, which |
| 927 |
// may or may not be hidden |
| 928 |
$("#saved_return_date").text( $("#return_date_override").val() ); |
| 897 |
return true; |
929 |
return true; |
| 898 |
} |
930 |
} |
| 899 |
|
931 |
|
| 900 |
$("#exemptcheck").change(function () { |
932 |
$("#exemptcheck").change(function () { |
| 901 |
if (this.checked == true) { |
933 |
if (this.checked == true) { |
| 902 |
$("#barcode").addClass("alert"); |
934 |
$("#barcode").addClass("input-warning"); |
| 903 |
$("#exemptfines").show(); |
935 |
$("#exemptfines").show(); |
| 904 |
} else { |
936 |
} else { |
| 905 |
$("#barcode").removeClass("alert"); |
937 |
$("#barcode").removeClass("input-warning"); |
| 906 |
$("#exemptfines").hide(); |
938 |
$("#exemptfines").hide(); |
| 907 |
} |
939 |
} |
| 908 |
$("#barcode").focus(); |
940 |
$("#barcode").focus(); |
| 909 |
}); |
941 |
}); |
| 910 |
$("#dropboxcheck").change(function () { |
942 |
$("#dropboxcheck").change(function () { |
| 911 |
if (this.checked == true) { |
943 |
if (this.checked == true) { |
| 912 |
$("#barcode").addClass("alert"); |
944 |
$("#barcode").addClass("input-warning"); |
| 913 |
$("#dropboxmode").show(); |
945 |
$("#dropboxmode").show(); |
| 914 |
|
946 |
|
| 915 |
$("#return_date_override_fields :input").prop('disabled', true); |
947 |
$("#return_date_override_fields :input").prop('disabled', true); |
| 916 |
$("#return_date_override").datetimepicker("disable"); |
948 |
$("#return_date_override").datetimepicker("disable"); |
| 917 |
} else { |
949 |
} else { |
| 918 |
$("#barcode").removeClass("alert"); |
950 |
$("#barcode").removeClass("input-warning"); |
| 919 |
$("#dropboxmode").hide(); |
951 |
$("#dropboxmode").hide(); |
| 920 |
|
952 |
|
| 921 |
$("#return_date_override_fields :input").prop('disabled', false); |
953 |
$("#return_date_override_fields :input").prop('disabled', false); |
|
Lines 925-934
Link Here
|
| 925 |
}); |
957 |
}); |
| 926 |
$("#forgivemanualholdsexpire").change(function () { |
958 |
$("#forgivemanualholdsexpire").change(function () { |
| 927 |
if (this.checked == true) { |
959 |
if (this.checked == true) { |
| 928 |
$("#barcode").addClass("alert"); |
960 |
$("#barcode").addClass("input-warning"); |
| 929 |
$("#forgivemanualholdsexpire-alert").show(); |
961 |
$("#forgivemanualholdsexpire-alert").show(); |
| 930 |
} else { |
962 |
} else { |
| 931 |
$("#barcode").removeClass("alert"); |
963 |
$("#barcode").removeClass("input-warning"); |
| 932 |
$("#forgivemanualholdsexpire-alert").hide(); |
964 |
$("#forgivemanualholdsexpire-alert").hide(); |
| 933 |
} |
965 |
} |
| 934 |
$("#barcode").focus(); |
966 |
$("#barcode").focus(); |
|
Lines 937-949
Link Here
|
| 937 |
[% IF(overduecharges) %] |
969 |
[% IF(overduecharges) %] |
| 938 |
$("#barcode").focus(function () { |
970 |
$("#barcode").focus(function () { |
| 939 |
if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) { |
971 |
if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) { |
| 940 |
$("#barcode").addClass("alert"); |
972 |
$("#barcode").addClass("input-warning"); |
| 941 |
} else { |
973 |
} else { |
| 942 |
$("#barcode").removeClass("alert"); |
974 |
$("#barcode").removeClass("input-warning"); |
| 943 |
} |
975 |
} |
| 944 |
}); |
976 |
}); |
| 945 |
$("#barcode").blur(function () { |
977 |
$("#barcode").blur(function () { |
| 946 |
$("#barcode").removeClass("alert"); |
978 |
$("#barcode").removeClass("input-warning"); |
| 947 |
}); |
979 |
}); |
| 948 |
[% END %] |
980 |
[% END %] |
| 949 |
|
981 |
|
|
Lines 970-977
Link Here
|
| 970 |
this.form.return_date_override.value = ''; |
1002 |
this.form.return_date_override.value = ''; |
| 971 |
this.form.return_date_override_remember.checked = false; |
1003 |
this.form.return_date_override_remember.checked = false; |
| 972 |
this.form.barcode.focus(); |
1004 |
this.form.barcode.focus(); |
|
|
1005 |
$("#return_date_remember").hide(); |
| 973 |
return false; |
1006 |
return false; |
| 974 |
}); |
1007 |
}); |
|
|
1008 |
|
| 1009 |
$("#return_date_override_remember").on("change", function(){ |
| 1010 |
if( $(this).prop("checked" ) ){ |
| 1011 |
if( $("#return_date_override").val() == "" ){ |
| 1012 |
$("#saved_return_date").text( _("No date selected") ); |
| 1013 |
} else { |
| 1014 |
$("#saved_return_date").text( $("#return_date_override").val() ); |
| 1015 |
} |
| 1016 |
$("#return_date_remember").show(); |
| 1017 |
} else { |
| 1018 |
$("#return_date_remember").hide(); |
| 1019 |
} |
| 1020 |
}); |
| 975 |
}); |
1021 |
}); |
| 976 |
</script> |
1022 |
</script> |
| 977 |
[% END %] |
1023 |
[% END %] |