@@ -, +, @@
HourBasedHolds
---
.../bootstrap/en/includes/holds-table.inc | 12 ++++-
.../opac-tmpl/bootstrap/en/includes/timepicker.inc | 22 +++++++++
.../opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 52 ++++++++++++++--------
.../plugins/jquery-ui-timepicker-addon.min.js | 5 +++
4 files changed, 70 insertions(+), 21 deletions(-)
create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/timepicker.inc
create mode 100644 koha-tmpl/opac-tmpl/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc
@@ -67,7 +67,11 @@
Hold date:
- [% HOLD.reservedate | $KohaDates %]
+ [% IF Koha.Preference("HourBasedHolds") %]
+ [% HOLD.reservedate | $KohaDates with_hours = 1 %]
+ [% ELSE %]
+ [% HOLD.reservedate | $KohaDates %]
+ [% END %]
|
@@ -75,7 +79,11 @@
[% IF ( HOLD.expirationdate ) %]
Expiration:
- [% HOLD.expirationdate | $KohaDates %]
+ [% IF Koha.Preference("HourBasedHolds") %]
+ [% HOLD.expirationdate | $KohaDates with_hours = 1 %]
+ [% ELSE %]
+ [% HOLD.expirationdate | $KohaDates %]
+ [% END %]
[% ELSE %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/timepicker.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/timepicker.inc
@@ -0,0 +1,22 @@
+
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
@@ -273,14 +273,14 @@
[% IF ( reserve_in_future ) %]
-
+
[% INCLUDE 'date-format.inc' %]
[% END %]
-
+
[% INCLUDE 'date-format.inc' %]
@@ -460,6 +460,8 @@
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
[% INCLUDE 'calendar.inc' %]
+[% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
+[% INCLUDE 'timepicker.inc' %]
|