|
Lines 1-13
Link Here
|
| 1 |
[% USE KohaDates %] |
1 |
[% USE KohaDates %] |
| 2 |
[% USE Branches %] |
2 |
[% USE Branches %] |
| 3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
|
|
4 |
[% USE Borrowers %] |
| 4 |
|
5 |
|
| 5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
| 6 |
<title>Koha › Circulation › Check in [% title |html %]</title> |
7 |
<title>Koha › Circulation › Check in [% title |html %]</title> |
| 7 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
[% INCLUDE 'doc-head-close.inc' %] |
| 8 |
|
9 |
|
| 9 |
[% INCLUDE 'calendar.inc' %] |
10 |
[% INCLUDE 'calendar.inc' %] |
| 10 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery-ui-timepicker-addon.js"></script> |
11 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script> |
| 11 |
|
12 |
|
| 12 |
<script type="text/javascript"> |
13 |
<script type="text/javascript"> |
| 13 |
//<![CDATA[ |
14 |
//<![CDATA[ |
|
Lines 18-26
function Dopop(link) {
Link Here
|
| 18 |
$(document).ready(function () { |
19 |
$(document).ready(function () { |
| 19 |
$("#return_date_override").datetimepicker({ |
20 |
$("#return_date_override").datetimepicker({ |
| 20 |
onClose: function(dateText, inst) { $("#barcode").focus(); }, |
21 |
onClose: function(dateText, inst) { $("#barcode").focus(); }, |
|
|
22 |
defaultDate: -1, |
| 21 |
hour: 23, |
23 |
hour: 23, |
| 22 |
minute: 59 |
24 |
minute: 59, |
|
|
25 |
maxDate: 0 |
| 23 |
}); |
26 |
}); |
|
|
27 |
$("#return_date_override").on("blur", function() { |
| 28 |
check_valid_return_date(); |
| 29 |
}); |
| 30 |
$("#checkin-form").submit(function( event ) { |
| 31 |
if ( !check_valid_return_date() ) { |
| 32 |
event.preventDefault(); |
| 33 |
} |
| 34 |
}); |
| 35 |
|
| 36 |
function check_valid_return_date() { |
| 37 |
if ( $("#return_date_override").val() ) { |
| 38 |
var datetime = DateTime_from_syspref( $("#return_date_override").val() ); |
| 39 |
var now = new Date(); |
| 40 |
if ( !datetime || datetime > now ) { |
| 41 |
alert("Invalid return date/time!"); |
| 42 |
$("#return_date_override").val("") |
| 43 |
return false; |
| 44 |
} |
| 45 |
} |
| 46 |
return true; |
| 47 |
} |
| 48 |
|
| 24 |
$("#exemptcheck").change(function () { |
49 |
$("#exemptcheck").change(function () { |
| 25 |
if (this.checked == true) { |
50 |
if (this.checked == true) { |
| 26 |
$("#barcode").addClass("alert"); |
51 |
$("#barcode").addClass("alert"); |
|
Lines 102-107
$(document).ready(function () {
Link Here
|
| 102 |
</div> |
127 |
</div> |
| 103 |
[% END %] |
128 |
[% END %] |
| 104 |
|
129 |
|
|
|
130 |
<!-- Patron is restricted and checkin was backdated --> |
| 131 |
[% IF return_date_override && Borrowers.IsDebarred( borrower ) %] |
| 132 |
<div id="restricted_backdated" class="dialog message"> |
| 133 |
<h3> |
| 134 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> |
| 135 |
[% borrower.firstname %] [% borrower.surname %] |
| 136 |
</a> |
| 137 |
is retricted. Please verify this patron should still be restricted. |
| 138 |
</h3> |
| 139 |
</div> |
| 140 |
[% END %] |
| 105 |
|
141 |
|
| 106 |
[% IF ( wrongbranch ) %] |
142 |
[% IF ( wrongbranch ) %] |
| 107 |
<div class="dialog alert"><h3>Cannot check in</h3><p>This item must be checked in at its home library. <strong>NOT CHECKED IN</strong></p> |
143 |
<div class="dialog alert"><h3>Cannot check in</h3><p>This item must be checked in at its home library. <strong>NOT CHECKED IN</strong></p> |
|
Lines 395-401
$(document).ready(function () {
Link Here
|
| 395 |
</div> |
431 |
</div> |
| 396 |
</div> |
432 |
</div> |
| 397 |
<div class="yui-g"> |
433 |
<div class="yui-g"> |
| 398 |
<form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
434 |
<form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" > |
| 399 |
<div class="yui-u first"> |
435 |
<div class="yui-u first"> |
| 400 |
<fieldset> |
436 |
<fieldset> |
| 401 |
<legend>Check in</legend> |
437 |
<legend>Check in</legend> |
|
Lines 413-419
$(document).ready(function () {
Link Here
|
| 413 |
<div class="date-select" id="return_date_override_fields"> |
449 |
<div class="date-select" id="return_date_override_fields"> |
| 414 |
<div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div> |
450 |
<div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div> |
| 415 |
|
451 |
|
| 416 |
<input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" readonly="readonly" /> |
452 |
<input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override %]" /> |
| 417 |
|
453 |
|
| 418 |
<label for="return_date_override_remember"> Remember for next check in:</label> |
454 |
<label for="return_date_override_remember"> Remember for next check in:</label> |
| 419 |
[% IF ( return_date_override_remember ) %] |
455 |
[% IF ( return_date_override_remember ) %] |
| 420 |
- |
|
|