Lines 435-441
Link Here
|
435 |
[% IF ( reserve_in_future ) %] |
435 |
[% IF ( reserve_in_future ) %] |
436 |
<li> |
436 |
<li> |
437 |
<label for="from">Hold starts on date:</label> |
437 |
<label for="from">Hold starts on date:</label> |
438 |
<input name="reserve_date" id="from" size="10" class="datepickerfrom" type="text" > |
438 |
[% IF Koha.Preference('HourBasedHolds') %] |
|
|
439 |
<input name="reserve_date" id="from" size="15" type="text"> |
440 |
[% ELSE %] |
441 |
<input name="reserve_date" id="from" size="10" class="datepickerfrom" type="text" > |
442 |
[% END %] |
439 |
<input type="hidden" class="datepickerfrom_hidden" /> |
443 |
<input type="hidden" class="datepickerfrom_hidden" /> |
440 |
<a href="#" id="clear-date-from" class="clear-date">Clear date</a> |
444 |
<a href="#" id="clear-date-from" class="clear-date">Clear date</a> |
441 |
</li> |
445 |
</li> |
Lines 443-449
Link Here
|
443 |
|
447 |
|
444 |
<li> |
448 |
<li> |
445 |
<label for="to">Hold expires on date:</label> |
449 |
<label for="to">Hold expires on date:</label> |
446 |
<input name="expiration_date" id="to" size="10" class="datepickerto" type="text" /> |
450 |
[% IF Koha.Preference('HourBasedHolds') %] |
|
|
451 |
<input name="expiration_date" id="to" size="15" type="text"> |
452 |
[% ELSE %] |
453 |
<input name="expiration_date" id="to" size="10" class="datepickerto" type="text" /> |
454 |
[% END %] |
447 |
<input type="hidden" class="datepickerto_hidden" /> |
455 |
<input type="hidden" class="datepickerto_hidden" /> |
448 |
<a href="#" id="clear-date-to" class="clear-date">Clear date</a> |
456 |
<a href="#" id="clear-date-to" class="clear-date">Clear date</a> |
449 |
</li> |
457 |
</li> |
Lines 935-940
Link Here
|
935 |
[% INCLUDE 'calendar.inc' %] |
943 |
[% INCLUDE 'calendar.inc' %] |
936 |
[% INCLUDE 'columns_settings.inc' %] |
944 |
[% INCLUDE 'columns_settings.inc' %] |
937 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
945 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
|
|
946 |
[% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %] |
947 |
[% INCLUDE 'timepicker.inc' %] |
938 |
<script> |
948 |
<script> |
939 |
var biblionumber = "[% biblionumber | $raw %]"; |
949 |
var biblionumber = "[% biblionumber | $raw %]"; |
940 |
var borrowernumber = "[% patron.borrowernumber | $raw %]"; |
950 |
var borrowernumber = "[% patron.borrowernumber | $raw %]"; |
Lines 995-1001
Link Here
|
995 |
[% END %] |
1005 |
[% END %] |
996 |
|
1006 |
|
997 |
[% IF AutoResumeSuspendedHolds %] |
1007 |
[% IF AutoResumeSuspendedHolds %] |
998 |
$(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1); |
1008 |
[% IF Koha.Preference('HourBasedHolds') %] |
|
|
1009 |
$(".suspend_until_datepicker").datepicker("option", "minDate", 1); |
1010 |
$("#from, #to, .holdstablefrom, .holdstableto").datetimepicker({ |
1011 |
onClose: function(dateText, inst) { |
1012 |
validate_date(dateText, inst); |
1013 |
}, |
1014 |
minDate: 0, |
1015 |
hour: 23, |
1016 |
minute: 59 |
1017 |
}).on("change", function(e) { |
1018 |
if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} |
1019 |
}); |
1020 |
[% ELSE %] |
1021 |
$(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1); |
1022 |
[% END %] |
999 |
[% END %] |
1023 |
[% END %] |
1000 |
|
1024 |
|
1001 |
$(".datepickerto").datepicker("option", "altField", ".datepickerto_hidden"); |
1025 |
$(".datepickerto").datepicker("option", "altField", ".datepickerto_hidden"); |
1002 |
- |
|
|