Bugzilla – Attachment 165725 Details for
Bug 35977
Display current date in hold starts on when placing a hold in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35977: (follow-up) Use KohaDate instead of raw
Bug-35977-follow-up-Use-KohaDate-instead-of-raw.patch (text/plain), 2.29 KB, created by
Martin Renvoize (ashimema)
on 2024-04-29 10:26:53 UTC
(
hide
)
Description:
Bug 35977: (follow-up) Use KohaDate instead of raw
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-04-29 10:26:53 UTC
Size:
2.29 KB
patch
obsolete
>From 2737c428542d1a838ba8f2adaf392e53504d4e9c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 29 Apr 2024 11:24:24 +0100 >Subject: [PATCH] Bug 35977: (follow-up) Use KohaDate instead of raw > >This patch updates the value passed to the holdfrom input to use >KohaDate formatting instead of Raw. The 'futureinclusive' logic now >being triggered in the flatpickr instantiation expects the localised >date format as apposed to the raw one. > >However, I can't get the flatpickr and input to pick up the passed date >properly now :(. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >index 34d1f4ff5b8..96ecc597cfd 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >@@ -288,7 +288,7 @@ > [% IF ( reserve_in_future ) %] > <li> > <label for="from[% bibitemloo.biblionumber | html %]">Hold starts on date:</label> >- <input type="text" name="reserve_date_[% bibitemloo.biblionumber | html %]" id="from[% bibitemloo.biblionumber | html %]" data-start_for="to[% bibitemloo.biblionumber | html %]" data-flatpickr-futureinclusive="true" size="10" class="flatpickr holddatefrom" value="[% today | $raw %]" /> >+ <input type="text" name="reserve_date_[% bibitemloo.biblionumber | html %]" id="from[% bibitemloo.biblionumber | html %]" data-start_for="to[% bibitemloo.biblionumber | html %]" data-flatpickr-futureinclusive="true" size="10" class="flatpickr holddatefrom" value="[% today | $KohaDates %]" /> > <span class="date-format from" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span> > <div class="required_label" style="display:none;">Required</div> > </li> >-- >2.44.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35977
:
161814
|
161928
|
162125
|
162126
|
164217
|
164220
|
164221
|
165535
|
165536
|
165725
|
165910