Bug 33821 - OPAC flatpickr no longer allows for direct input of date
Summary: OPAC flatpickr no longer allows for direct input of date
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Lucas Gass (lukeg)
QA Contact: Katrin Fischer
URL:
Keywords:
: 32522 (view as bug list)
Depends on: 30718
Blocks: 34923
  Show dependency treegraph
 
Reported: 2023-05-24 15:12 UTC by Lucas Gass (lukeg)
Modified: 2024-07-04 20:40 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.05.00,22.11.07
Circulation function:


Attachments
Bug 33821: Allow direct input of dates on the OPAC (1.03 KB, patch)
2023-05-24 15:14 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 33821: Allow direct input of dates on the OPAC (1.10 KB, patch)
2023-05-24 16:07 UTC, ByWater Sandboxes
Details | Diff | Splinter Review
Bug 33821: Allow direct input of dates on the OPAC (1.15 KB, patch)
2023-05-29 18:17 UTC, Katrin Fischer
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) 2023-05-24 15:12:22 UTC
Bug 30718 took away the ability to direct enter dates with flatpickr ( allowInput )

Some libraries find that problematic and would like patrons to be able to directly type in a date. Example: self registration. 

We should give that option back.
Comment 1 Lucas Gass (lukeg) 2023-05-24 15:14:40 UTC
Created attachment 151638 [details] [review]
Bug 33821: Allow direct input of dates on the OPAC

To test:
1. Apply patch
2. Go to OPAC self registration and try to manually enter the date for date of birth.
3. You can do so sucessfully
Comment 2 ByWater Sandboxes 2023-05-24 16:07:17 UTC
Created attachment 151646 [details] [review]
Bug 33821: Allow direct input of dates on the OPAC

To test:
1. Apply patch
2. Go to OPAC self registration and try to manually enter the date for date of birth.
3. You can do so sucessfully

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Comment 3 Barbara Johnson 2023-05-24 16:25:43 UTC
This worked perfectly.  I was able to create a patron by manually entering a birthdate and by using the flatpickr calendar.  When entering the dob manually it worked with the formats of 02/14/2023, 02-14-2023 and 02142023.

While the flatpickr calendar works great for selecting dates in the staff interface, it is not patron-friendly for the purpose of entering birthdates in the self-registration form.

Here is our experience as early adopters of 22.11:
All of our patrons self-register for their library cards. We tasked some patrons to register for a new library card using the self-registration form. They did not find the flatpickr datepicker to be intuitive or simple for the purpose of quickly entering their birthdates. They did not understand why they couldn't type in the box and then their first reaction was to use the arrows to either cycle backward through the months or years (which would take a very long time for someone born in 1933) They didn't understand the concept of directly typing their birthyear in the flatpickr year box first, then selecting their month in order to get to the correct calendar for them to select their specific date of birth.  That lead to frustration and once things didn't seem to be working for them they got frustrated and the self-reg form timed out on them which led to a negative customer experience.  So I think that it is imperative that users be able to manually enter the birthdates. Additionally, it was possible to do so in 22.05 so this is a loss of functionality for our library.
Comment 4 Katrin Fischer 2023-05-29 18:13:09 UTC
*** Bug 32522 has been marked as a duplicate of this bug. ***
Comment 5 Katrin Fischer 2023-05-29 18:14:29 UTC
This is actually an accessibility issue too, as you don't want to use the widget with a screen reader. Updating severity.
Comment 6 Katrin Fischer 2023-05-29 18:17:07 UTC
Created attachment 151788 [details] [review]
Bug 33821: Allow direct input of dates on the OPAC

To test:
1. Apply patch
2. Go to OPAC self registration and try to manually enter the date for date of birth.
3. You can do so sucessfully

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 7 Tomás Cohen Arazi (tcohen) 2023-05-30 11:29:26 UTC
Pushed to master for 23.05.

Nice work everyone, thanks!
Comment 8 Matt Blenkinsop 2023-06-08 17:29:02 UTC
Nice work everyone!

Pushed to stable for 22.11.x