Some libraries are getting dates of birth from the self-registration form that make patrons impossible ages e.g. year of birth 1900. Add a system preference to allow libraries to add a maximum age when patrons self register so that they receive an error message if their date of birth exceeds this age, prompting them to make a correction.
Created attachment 180718 [details] [review] Bug 39579: Restrict Patron Self Reg Date of Birth Some libraries are getting dates of birth from the self-registration form that make patrons impossible ages, e.g. year of birth 1900. To Test: 1) Navigate to the oPac 2) Ensure you are not logged in 3) Below the log in, see 'Create an Account' 4) Click the link and complete the relevant fields 5) Add an unrealistic d.o.b e.g 1900 6) Complete the verification and click 'Submit' 7) Your acount has been created 8) Apply the patch 9) Navigate to the staff site 10) Navigate to Administration > SystemPreferences 11) Navigate to OPAC preferences 12) Identify PatronSelfRegistrationAgeRestriction 13) Add a maximum age in numberals e.g. 100 14) Repeat steps 1 - 6 15) An error message that you have exceeded max age will appear. 16) Alter your date of birth to make your age below that of the max age you set 17) Complete the verification 18) Your account should be created as normal Sponsored-by: Cheshire
Created attachment 180938 [details] [review] Bug 39579: Restrict Patron Self Reg Date of Birth Some libraries are getting dates of birth from the self-registration form that make patrons impossible ages, e.g. year of birth 1900. To Test: 1) Navigate to the oPac 2) Ensure you are not logged in 3) Below the log in, see 'Create an Account' 4) Click the link and complete the relevant fields 5) Add an unrealistic d.o.b e.g 1900 6) Complete the verification and click 'Submit' 7) Your acount has been created 8) Apply the patch 9) Navigate to the staff site 10) Navigate to Administration > SystemPreferences 11) Navigate to OPAC preferences 12) Identify PatronSelfRegistrationAgeRestriction 13) Add a maximum age in numberals e.g. 100 14) Repeat steps 1 - 6 15) An error message that you have exceeded max age will appear. 16) Alter your date of birth to make your age below that of the max age you set 17) Complete the verification 18) Your account should be created as normal Sponsored-by: Cheshire Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com>
Hi, I followed the test plan : it works :) Manu.
*** Bug 39481 has been marked as a duplicate of this bug. ***
Created attachment 182046 [details] [review] Bug 39579: Restrict Patron Self Reg Date of Birth Some libraries are getting dates of birth from the self-registration form that make patrons impossible ages, e.g. year of birth 1900. To Test: 1) Navigate to the OPAC 2) Ensure you are not logged in 3) Below the log in, see 'Create an Account' 4) Click the link and complete the relevant fields 5) Add an unrealistic d.o.b e.g 1900 6) Complete the verification and click 'Submit' 7) Your acount has been created 8) Apply the patch 9) Navigate to the staff site 10) Navigate to Administration > SystemPreferences 11) Navigate to OPAC preferences 12) Identify PatronSelfRegistrationAgeRestriction 13) Add a maximum age in numberals e.g. 100 14) Repeat steps 1 - 6 15) An error message that you have exceeded max age will appear. 16) Alter your date of birth to make your age below that of the max age you set 17) Complete the verification 18) Your account should be created as normal Sponsored-by: Cheshire Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com> Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Created attachment 182047 [details] [review] Bug 39579: (QA follow-up) Update atomic update This patch updates the atomic update to fix an error when the database was updated and the permissions for the atomic update file. Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Maybe an idea for a later improvement (separate bug): I wonder if a mininum age would also be useful. Syntax could be similar to CardnumberLength.
Pushed for 25.05! Well done everyone, thank you!