Bug 15297 - Preselect earlier date than today for date of birth date pickers when creating a patron account in staff or OPAC
Summary: Preselect earlier date than today for date of birth date pickers when creatin...
Status: RESOLVED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low trivial (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-03 17:30 UTC by Martin Persson
Modified: 2023-08-28 20:00 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Persson 2015-12-03 17:30:06 UTC
Bug 12342 has a fix for the staff interface (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12342) for date picker available range. This is the same fix but for the OPAC.
Comment 1 Martin Persson 2015-12-03 17:44:46 UTC
This was originally part of bug 12342 but was moved out to a separate feature.

When new patrons are added the default selected date is the current date minus one day. I assume we do not register people on the day that they are born. This patch changes the default to -15 years, assuming the average patron entry age is around that age.
Comment 2 Jonathan Druart 2016-01-06 11:44:23 UTC
Did you forget to apply the patch?
Comment 3 Katrin Fischer 2020-04-18 21:47:12 UTC
Both the datepicker for date of birth in staff and OPAC go back a 100 years by default now. 

Both preselect to today's date. I am not sure if going back 15 years by default would really be helpful with the new longer year select and the option to type the date in directly? It might raise questions instead for being arbitrary.
Comment 4 Katrin Fischer 2023-08-28 20:00:10 UTC
The flatpickr year selector works differently than our old one. Instead of a (limited) list of years, you can increment/decrement by 1 OR enter the year into the field. I think this renders this bug invalid for flatpickr.