Lines 598-627
Link Here
|
598 |
</div> |
598 |
</div> |
599 |
[% END%] |
599 |
[% END%] |
600 |
|
600 |
|
601 |
<div id="exemptfines" class="dialog message" style="display:none;"> |
|
|
602 |
<p>Fines for returned items are forgiven.</p> |
603 |
</div> |
604 |
<div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;"> |
605 |
<p>Fines are not charged for manually cancelled holds.</p> |
606 |
</div> |
607 |
<div id="dropboxmode" class="dialog message" style="display:none;"> |
608 |
<p>Book drop mode. (Effective checkin date is [% dropboxdate | html %] ).</p> |
609 |
</div> |
610 |
|
611 |
<div class="row"> |
612 |
<form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
601 |
<form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
|
|
602 |
<fieldset id="circ_returns_checkin"> |
603 |
<h3>Check in</h3> |
604 |
<div class="row"> |
613 |
<div class="col-sm-6"> |
605 |
<div class="col-sm-6"> |
614 |
<fieldset> |
606 |
<div class="hint">Enter item barcode:</div> |
615 |
<legend>Check in</legend> |
607 |
<div class="form-control-group"> |
616 |
<label for="barcode">Enter item barcode: </label> |
|
|
617 |
[% IF ( exemptfine ) %] |
608 |
[% IF ( exemptfine ) %] |
618 |
<input name="barcode" id="barcode" size="14" class="focus alert" type="text" /> |
609 |
<input name="barcode" id="barcode" size="14" class="barcode focus input-warning" /> |
619 |
[% ELSIF ( dropboxmode ) %] |
610 |
[% ELSIF ( dropboxmode ) %] |
620 |
<input name="barcode" id="barcode" size="14" class="focus alert" type="text" /> |
611 |
<input name="barcode" id="barcode" size="14" class="barcode focus input-warning" /> |
|
|
612 |
[% ELSE %] |
613 |
<input name="barcode" id="barcode" size="14" class="barcode focus" /> |
614 |
[% END %] |
615 |
<button type="submit" class="btn btn-default">Check in</button> |
616 |
[% FOREACH inputloo IN inputloop %] |
617 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
618 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
619 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
620 |
[% END %] |
621 |
</div> |
622 |
<div id="show-circ-settings"> |
623 |
<a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a> |
624 |
</div> |
625 |
</div> |
626 |
<div class="col-sm-6"> |
627 |
[% IF ( exemptfine ) %] |
628 |
<div id="exemptfines" class="checkin-active-setting"> |
629 |
[% ELSE %] |
630 |
<div id="exemptfines" class="checkin-active-setting" style="display:none;"> |
631 |
[% END %] |
632 |
<p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p> |
633 |
</div> |
634 |
|
635 |
[% IF ( forgivemanualholdsexpire ) %] |
636 |
<div id="forgivemanualholdsexpire-alert" class="checkin-active-setting"> |
621 |
[% ELSE %] |
637 |
[% ELSE %] |
622 |
<input name="barcode" id="barcode" size="14" class="focus" type="text" /> |
638 |
<div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;"> |
623 |
[% END %] |
639 |
[% END %] |
624 |
<input type="submit" class="submit" value="Submit" /> |
640 |
<p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p> |
|
|
641 |
</div> |
642 |
|
643 |
[% IF ( dropboxmode ) %] |
644 |
<div id="dropboxmode" class="checkin-active-setting"> |
645 |
[% ELSE %] |
646 |
<div id="dropboxmode" class="checkin-active-setting" style="display:none;"> |
647 |
[% END %] |
648 |
<p><i class="fa fa-check"></i> Book drop mode. (Effective checkin date is [% dropboxdate | html %] ).</p> |
649 |
</div> |
650 |
</div> |
651 |
</div> |
652 |
|
653 |
<div class="circ-settings"> |
625 |
|
654 |
|
626 |
[% IF Koha.Preference('SpecifyReturnDate') %] |
655 |
[% IF Koha.Preference('SpecifyReturnDate') %] |
627 |
<div class="date-select" id="return_date_override_fields"> |
656 |
<div class="date-select" id="return_date_override_fields"> |
Lines 635-688
Link Here
|
635 |
[% ELSE %] |
664 |
[% ELSE %] |
636 |
<input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" /> |
665 |
<input type="checkbox" id="return_date_override_remember" onclick="this.form.barcode.focus();" name="return_date_override_remember" /> |
637 |
[% END %] |
666 |
[% END %] |
638 |
|
667 |
<button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.return_date_override.value = ''; this.form.return_date_override_remember.checked = false; this.form.barcode.focus(); return false;">Clear</button> |
639 |
<input type="button" class="action" id="cleardate" value="Clear" name="cleardate" onclick="this.checked = false; this.form.return_date_override.value = ''; this.form.return_date_override_remember.checked = false; this.form.barcode.focus(); return false;" /> |
|
|
640 |
</div> |
668 |
</div> |
641 |
[% END %] |
669 |
[% END %] |
642 |
[% FOREACH inputloo IN inputloop %] |
|
|
643 |
<input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" /> |
644 |
<input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" /> |
645 |
<input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" /> |
646 |
[% END %] |
647 |
|
648 |
|
670 |
|
649 |
</fieldset> |
|
|
650 |
</div> |
651 |
<div class="col-sm-6"> |
652 |
<fieldset id="checkin_options"> |
653 |
<legend>Options</legend> |
654 |
[% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %] |
671 |
[% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %] |
655 |
<p> |
672 |
<div id="forgive-overdue-fines" class="circ-setting"> |
656 |
[% IF ( exemptfine ) %] |
673 |
[% IF ( exemptfine ) %] |
657 |
<input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" /> |
674 |
<input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" /> |
658 |
[% ELSE %] |
675 |
[% ELSE %] |
659 |
<input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" /> |
676 |
<input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" /> |
660 |
[% END %] |
677 |
[% END %] |
661 |
<label for="exemptcheck">Forgive overdue charges</label> |
678 |
<label for="exemptcheck">Forgive overdue charges</label> |
662 |
</p> |
679 |
</div> |
663 |
[% END %] <!-- overduecharges --> |
680 |
[% END %] |
664 |
<p> |
681 |
<!-- overduecharges --> |
|
|
682 |
<div id="book-drop-mode" class="circ-setting"> |
665 |
[% IF ( dropboxmode ) %] |
683 |
[% IF ( dropboxmode ) %] |
666 |
<input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" /> |
684 |
<input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" /> |
667 |
[% ELSE %] |
685 |
[% ELSE %] |
668 |
<input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" /> |
686 |
<input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" /> |
669 |
[% END %] |
687 |
[% END %] |
670 |
<label for="dropboxcheck">Book drop mode</label> |
688 |
<label for="dropboxcheck">Book drop mode</label> |
671 |
</p> |
689 |
</div> |
672 |
[% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %] |
690 |
[% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %] |
673 |
<p> |
691 |
<div id="forgive-manual-hold-fees" class="circ-setting"> |
674 |
[% IF ( forgivemanualholdsexpire ) %] |
692 |
[% IF ( forgivemanualholdsexpire ) %] |
675 |
<input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" /> |
693 |
<input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" /> |
676 |
[% ELSE %] |
694 |
[% ELSE %] |
677 |
<input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" /> |
695 |
<input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" /> |
678 |
[% END %] |
696 |
[% END %] |
679 |
<label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label> |
697 |
<label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label> |
680 |
</p> |
|
|
681 |
[% END %] <!-- overduecharges --> |
682 |
</fieldset> |
683 |
</div> |
684 |
</form> |
685 |
</div> |
698 |
</div> |
|
|
699 |
[% END %] |
700 |
<!-- overduecharges --> |
701 |
</div> [%# /.circ-settings %] |
702 |
</fieldset> [%# /#circ_returns_checkin %] |
703 |
</form> [%# /#checkin-form %] |
686 |
|
704 |
|
687 |
[% IF ( riloop ) %] |
705 |
[% IF ( riloop ) %] |
688 |
<h2>Checked-in items</h2> |
706 |
<h2>Checked-in items</h2> |
Lines 738-752
Link Here
|
738 |
</table> |
756 |
</table> |
739 |
[% END %] |
757 |
[% END %] |
740 |
|
758 |
|
741 |
[% IF Koha.Preference('CircSidebar') %] |
759 |
[% IF Koha.Preference('CircSidebar') %] |
742 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
760 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
743 |
<div class="col-sm-2 col-sm-pull-10"> |
761 |
<div class="col-sm-2 col-sm-pull-10"> |
744 |
<aside> |
762 |
<aside> |
745 |
[% INCLUDE 'circ-nav.inc' %] |
763 |
[% INCLUDE 'circ-nav.inc' %] |
746 |
</aside> |
764 |
</aside> |
747 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
765 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
748 |
</div> <!-- /.row --> |
766 |
</div> <!-- /.row --> |
749 |
[% END %] |
767 |
[% ELSE %] |
|
|
768 |
</div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 --> |
769 |
</div> <!-- /.row --> |
770 |
[% END %] |
750 |
|
771 |
|
751 |
</main> |
772 |
</main> |
752 |
</div> <!-- /.col-sm-12 --> |
773 |
</div> <!-- /.col-sm-12 --> |
Lines 757-762
Link Here
|
757 |
[% INCLUDE 'columns_settings.inc' %] |
778 |
[% INCLUDE 'columns_settings.inc' %] |
758 |
[% INCLUDE 'calendar.inc' %] |
779 |
[% INCLUDE 'calendar.inc' %] |
759 |
[% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %] |
780 |
[% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %] |
|
|
781 |
[% Asset.js("js/pages/circulation.js") | $raw %] |
760 |
[% INCLUDE 'timepicker.inc' %] |
782 |
[% INCLUDE 'timepicker.inc' %] |
761 |
|
783 |
|
762 |
<script> |
784 |
<script> |
Lines 828-850
Link Here
|
828 |
|
850 |
|
829 |
$("#exemptcheck").change(function () { |
851 |
$("#exemptcheck").change(function () { |
830 |
if (this.checked == true) { |
852 |
if (this.checked == true) { |
831 |
$("#barcode").addClass("alert"); |
853 |
$("#barcode").addClass("input-warning"); |
832 |
$("#exemptfines").show(); |
854 |
$("#exemptfines").show(); |
833 |
} else { |
855 |
} else { |
834 |
$("#barcode").removeClass("alert"); |
856 |
$("#barcode").removeClass("input-warning"); |
835 |
$("#exemptfines").hide(); |
857 |
$("#exemptfines").hide(); |
836 |
} |
858 |
} |
837 |
$("#barcode").focus(); |
859 |
$("#barcode").focus(); |
838 |
}); |
860 |
}); |
839 |
$("#dropboxcheck").change(function () { |
861 |
$("#dropboxcheck").change(function () { |
840 |
if (this.checked == true) { |
862 |
if (this.checked == true) { |
841 |
$("#barcode").addClass("alert"); |
863 |
$("#barcode").addClass("input-warning"); |
842 |
$("#dropboxmode").show(); |
864 |
$("#dropboxmode").show(); |
843 |
|
865 |
|
844 |
$("#return_date_override_fields :input").prop('disabled', true); |
866 |
$("#return_date_override_fields :input").prop('disabled', true); |
845 |
$("#return_date_override").datetimepicker("disable"); |
867 |
$("#return_date_override").datetimepicker("disable"); |
846 |
} else { |
868 |
} else { |
847 |
$("#barcode").removeClass("alert"); |
869 |
$("#barcode").removeClass("input-warning"); |
848 |
$("#dropboxmode").hide(); |
870 |
$("#dropboxmode").hide(); |
849 |
|
871 |
|
850 |
$("#return_date_override_fields :input").prop('disabled', false); |
872 |
$("#return_date_override_fields :input").prop('disabled', false); |
Lines 854-863
Link Here
|
854 |
}); |
876 |
}); |
855 |
$("#forgivemanualholdsexpire").change(function () { |
877 |
$("#forgivemanualholdsexpire").change(function () { |
856 |
if (this.checked == true) { |
878 |
if (this.checked == true) { |
857 |
$("#barcode").addClass("alert"); |
879 |
$("#barcode").addClass("input-warning"); |
858 |
$("#forgivemanualholdsexpire-alert").show(); |
880 |
$("#forgivemanualholdsexpire-alert").show(); |
859 |
} else { |
881 |
} else { |
860 |
$("#barcode").removeClass("alert"); |
882 |
$("#barcode").removeClass("input-warning"); |
861 |
$("#forgivemanualholdsexpire-alert").hide(); |
883 |
$("#forgivemanualholdsexpire-alert").hide(); |
862 |
} |
884 |
} |
863 |
$("#barcode").focus(); |
885 |
$("#barcode").focus(); |
Lines 866-878
Link Here
|
866 |
[% IF(overduecharges) %] |
888 |
[% IF(overduecharges) %] |
867 |
$("#barcode").focus(function () { |
889 |
$("#barcode").focus(function () { |
868 |
if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) { |
890 |
if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) { |
869 |
$("#barcode").addClass("alert"); |
891 |
$("#barcode").addClass("input-warning"); |
870 |
} else { |
892 |
} else { |
871 |
$("#barcode").removeClass("alert"); |
893 |
$("#barcode").removeClass("input-warning"); |
872 |
} |
894 |
} |
873 |
}); |
895 |
}); |
874 |
$("#barcode").blur(function () { |
896 |
$("#barcode").blur(function () { |
875 |
$("#barcode").removeClass("alert"); |
897 |
$("#barcode").removeClass("input-warning"); |
876 |
}); |
898 |
}); |
877 |
[% END %] |
899 |
[% END %] |
878 |
|
900 |
|