Bug 38681 - "Last checkout date" in item search form should provide a date picker
Summary: "Last checkout date" in item search form should provide a date picker
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Lucas Gass (lukeg)
QA Contact: Jonathan Druart
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-11 23:37 UTC by Lucas Gass (lukeg)
Modified: 2025-01-16 16:42 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
This enhancement adds a datepicker to the "Last checkout date" field in Item search making it easier to select before, after, and on dates in the appropriate date format.
Version(s) released in:
25.05.00
Circulation function:


Attachments
Bug 38681: Add flatpickr to datelastborrowed field in itemsearch (2.31 KB, patch)
2024-12-30 20:53 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 38681: Add flatpickr to datelastborrowed field in itemsearch (2.36 KB, patch)
2025-01-13 18:55 UTC, William Lavoie
Details | Diff | Splinter Review
Bug 38681: Add flatpickr to datelastborrowed field in itemsearch (2.44 KB, patch)
2025-01-16 09:17 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2024-12-11 23:37:21 UTC
It would be nice if `Last checkout date:` in item search included a date picker so librarians don't have to use an ISO date and instead could use what is specified in DateFormat, 

It could aslo make it easier to deal with datetimes if we add other fields. See Bug 38671.
Comment 1 Lucas Gass (lukeg) 2024-12-30 20:53:43 UTC
Created attachment 176021 [details] [review]
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.
Comment 2 William Lavoie 2025-01-13 18:55:08 UTC
Created attachment 176470 [details] [review]
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>
Comment 3 Jonathan Druart 2025-01-16 09:17:32 UTC
Created attachment 176594 [details] [review]
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>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 4 Katrin Fischer 2025-01-16 16:42:09 UTC
Pushed for 25.05!

Well done everyone, thank you!