Bugzilla – Attachment 129642 Details for
Bug 29212
Use Flatpickr on OPAC pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29212: (follow-up) Add futuredate attribute to date picker
Bug-29212-follow-up-Add-futuredate-attribute-to-da.patch (text/plain), 2.31 KB, created by
Jonathan Druart
on 2022-01-20 10:27:17 UTC
(
hide
)
Description:
Bug 29212: (follow-up) Add futuredate attribute to date picker
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-01-20 10:27:17 UTC
Size:
2.31 KB
patch
obsolete
>From dc01a8202bb981837f42c87c8b7bd5a540bd7ff4 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 19 Jan 2022 16:13:26 +0000 >Subject: [PATCH] Bug 29212: (follow-up) Add futuredate attribute to date > picker > >This patch adds the "futuredate" attribute to the "Hold not needed >after" date field in the OPAC hold process. > >To test, apply the patch and log into the OPAC. > >- Locate a bibliographic record and being the process of placing a hold. >- Click "Show more options" to display the date fields. >- If the OPACAllowHoldDateInFuture system preferences is enabled: > - Set "Hold starts on date" to a date in the future. > - Trigger the date-picker in the "Hold not needed after" field: You > should be limited to dates *after* the date you selected above. >- If OPACAllowHoldDateInFuture is disabled: > - The "Hold starts on date" will no longer be present. > - Trigger the date-picker in the "Hold not needed after" field: You > should be limited to dates after today. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 1cd4a5463a9..bf4e80a82a4 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 @@ > > <li> > <label for="to[% bibitemloo.biblionumber | html %]">Hold not needed after:</label> >- <input type="text" name="expiration_date_[% bibitemloo.biblionumber | html %]" id="to[% bibitemloo.biblionumber | html %]" size="10" class="flatpickr" /> >+ <input type="text" name="expiration_date_[% bibitemloo.biblionumber | html %]" id="to[% bibitemloo.biblionumber | html %]" size="10" class="flatpickr futuredate" /> > <span class="date-format to" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span> > </li> > >-- >2.25.1
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 29212
:
126229
|
126290
|
126298
|
126299
|
126820
|
126824
|
126825
|
126826
|
127250
|
129620
|
129638
|
129639
|
129640
|
129641
| 129642 |
130019