Bugzilla – Attachment 176470 Details for
Bug 38681
"Last checkout date" in item search form should provide a date picker
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38681: Add flatpickr to datelastborrowed field in itemsearch
Bug-38681-Add-flatpickr-to-datelastborrowed-field-.patch (text/plain), 2.36 KB, created by
William Lavoie
on 2025-01-13 18:55:08 UTC
(
hide
)
Description:
Bug 38681: Add flatpickr to datelastborrowed field in itemsearch
Filename:
MIME Type:
Creator:
William Lavoie
Created:
2025-01-13 18:55:08 UTC
Size:
2.36 KB
patch
obsolete
>From aa158aa54e8f2f7a2019751864da530c192c0730 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 30 Dec 2024 20:51:01 +0000 >Subject: [PATCH] Bug 38681: Add flatpickr to datelastborrowed field in > itemsearch > >To test: >1. APPLY PATCH >2. Have some checkouts with various issue dates. >3. Go to item search and look for the 'Last checkout date:' >4. Try some different searches and confirm that they work as expected. >5. Change the DateFormat system preference and make sure the search still works with all the DateFormat optoins. > >Signed-off-by: William Lavoie <william.lavoie@inLibro.com> >--- > koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css | 4 ++++ > .../intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 4 ++-- > 2 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css b/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css >index 82ca487dd4..158be490a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css >+++ b/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css >@@ -63,6 +63,10 @@ input[type="text"] { > padding: .375rem .75rem; > } > >+#itemsearchform .flatpickr-input { >+ padding-left: 1.5em; >+} >+ > .select2.select2-container.select2-container--default { > flex-grow: 1; > max-width: 60%; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >index ccb63ce666..437b0b76a0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -328,8 +328,7 @@ > <option value="=">[% tp('On specific date', 'On') | html %]</option> > [% END %] > </select> >- <input type="text" name="datelastborrowed" value="[% query.param('datelastborrowed') | html %]"/> >- <span class="hint">ISO Format (YYYY-MM-DD)</span> >+ <input class="flatpickr flatpickr-input" type="text" name="datelastborrowed" value="[% query.param('datelastborrowed') | html %]"/> > </div> > </fieldset> > <fieldset> >@@ -360,6 +359,7 @@ > </form> > > [% MACRO jsinclude BLOCK %] >+ [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'datatables.inc' %] > [% INCLUDE 'columns_settings.inc' %] > [% INCLUDE 'select2.inc' %] >-- >2.43.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 38681
:
176021
|
176470
|
176594