Lines 439-445
Link Here
|
439 |
[% IF ( reserve_in_future ) %] |
439 |
[% IF ( reserve_in_future ) %] |
440 |
<li> |
440 |
<li> |
441 |
<label for="from">Hold starts on date:</label> |
441 |
<label for="from">Hold starts on date:</label> |
442 |
<input name="reserve_date" id="from" size="10" class="datepickerfrom" type="text" > |
442 |
[% IF Koha.Preference('HourBasedHolds') %] |
|
|
443 |
<input name="reserve_date" id="from" size="15" type="text"> |
444 |
[% ELSE %] |
445 |
<input name="reserve_date" id="from" size="10" class="datepickerfrom" type="text" > |
446 |
[% END %] |
443 |
<input type="hidden" class="datepickerfrom_hidden" /> |
447 |
<input type="hidden" class="datepickerfrom_hidden" /> |
444 |
<a href="#" id="clear-date-from" class="clear-date">Clear date</a> |
448 |
<a href="#" id="clear-date-from" class="clear-date">Clear date</a> |
445 |
</li> |
449 |
</li> |
Lines 447-453
Link Here
|
447 |
|
451 |
|
448 |
<li> |
452 |
<li> |
449 |
<label for="to">Hold expires on date:</label> |
453 |
<label for="to">Hold expires on date:</label> |
450 |
<input name="expiration_date" id="to" size="10" class="datepickerto" type="text" /> |
454 |
[% IF Koha.Preference('HourBasedHolds') %] |
|
|
455 |
<input name="expiration_date" id="to" size="15" type="text"> |
456 |
[% ELSE %] |
457 |
<input name="expiration_date" id="to" size="10" class="datepickerto" type="text" /> |
458 |
[% END %] |
451 |
<input type="hidden" class="datepickerto_hidden" /> |
459 |
<input type="hidden" class="datepickerto_hidden" /> |
452 |
<a href="#" id="clear-date-to" class="clear-date">Clear date</a> |
460 |
<a href="#" id="clear-date-to" class="clear-date">Clear date</a> |
453 |
</li> |
461 |
</li> |
Lines 985-990
Link Here
|
985 |
[% INCLUDE 'columns_settings.inc' %] |
993 |
[% INCLUDE 'columns_settings.inc' %] |
986 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
994 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
987 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
995 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
|
|
996 |
[% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %] |
997 |
[% INCLUDE 'timepicker.inc' %] |
988 |
<script> |
998 |
<script> |
989 |
var Sticky; |
999 |
var Sticky; |
990 |
var biblionumber = "[% biblionumber | $raw %]"; |
1000 |
var biblionumber = "[% biblionumber | $raw %]"; |
Lines 1054-1060
Link Here
|
1054 |
[% END %] |
1064 |
[% END %] |
1055 |
|
1065 |
|
1056 |
[% IF AutoResumeSuspendedHolds %] |
1066 |
[% IF AutoResumeSuspendedHolds %] |
1057 |
$(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1); |
1067 |
[% IF Koha.Preference('HourBasedHolds') %] |
|
|
1068 |
$(".suspend_until_datepicker").datepicker("option", "minDate", 1); |
1069 |
$("#from, #to, .holdstablefrom, .holdstableto").datetimepicker({ |
1070 |
onClose: function(dateText, inst) { |
1071 |
validate_date(dateText, inst); |
1072 |
}, |
1073 |
minDate: 0, |
1074 |
hour: 23, |
1075 |
minute: 59 |
1076 |
}).on("change", function(e) { |
1077 |
if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} |
1078 |
}); |
1079 |
[% ELSE %] |
1080 |
$(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1); |
1081 |
[% END %] |
1058 |
[% END %] |
1082 |
[% END %] |
1059 |
|
1083 |
|
1060 |
$(".datepickerto").datepicker("option", "altField", ".datepickerto_hidden"); |
1084 |
$(".datepickerto").datepicker("option", "altField", ".datepickerto_hidden"); |
1061 |
- |
|
|