Bug 36342 - Allow entering date ranges directly in bookings
Summary: Allow entering date ranges directly in bookings
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Lucas Gass
QA Contact: Testopia
URL:
Keywords:
Depends on: 29002 33703
Blocks:
  Show dependency treegraph
 
Reported: 2024-03-18 13:05 UTC by Martin Renvoize
Modified: 2024-04-23 19:59 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 36342: Add Maskito date range support (4.05 KB, patch)
2024-04-23 19:55 UTC, Lucas Gass
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Renvoize 2024-03-18 13:05:04 UTC
We add input masking to flatpickr in bug 33703 but we explicitly disable it for the range case which is used in bookings.

There are options to support this in the Maskito library too, so we could consider adding it back for bookings inputs too.
Comment 1 Lucas Gass 2024-04-18 14:26:48 UTC
+1. Happy to work on this Martin.
Comment 2 Lucas Gass 2024-04-23 19:55:50 UTC
Created attachment 165441 [details] [review]
Bug 36342: Add Maskito date range support

To test:
1. Make some items bookable by going to catalogue/moredetail.pl?biblionumber=X
2. On the toolbar for that record you should now see "Place booking"
3. Try placing a booking and adding the date range for "Booking dates" manually.
4. Play with the DateFormat system preference to make sure this works for all supported date formats.