[Bug 41814] New: Limit the maximum age for borrower categories without a specified range
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Bug ID: 41814 Summary: Limit the maximum age for borrower categories without a specified range Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Patrons Assignee: jake.deery@openfifth.co.uk Reporter: jake.deery@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle@bywatersolutions.com We should be able to optionally set a maximum age for any borrower categories that don't already have a specified range. This is already possible on the OPAC with PatronSelfRegistrationAgeRange, I propose a PatronAgeRange that applies to the intranet, as well as the OPAC (if PatronSelfRegistrationAgeRange is not set). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 --- Comment #1 from Jake Deery <jake.deery@openfifth.co.uk> --- Created attachment 192969 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192969&action=edit Bug 41814: Add PatronAgeRestriction syspref and code This patch adds a new PatronAgeRestriction, which acts in the same way PatronSelfRegistrationAgeRestriction (a restriction on the maximum age of a borrower), except for the intranet. It will also act as the maximum age restrictor on the OPAC, in the event that the PatronSelfRegistrationAgeRestriction is not set. To test: == APPLY PATCH == a) updatedatabase b) Set the PatronAgeRestriction syspref to 20, set the PatronSelfRegistrationAgeRestriction to 30 c) On the OPAC, try to create or modify a patron whose age is 35 years *) Note the error message presented, suggesting the age exceeds the maximum d) On the OPAC, try to create or modify a patron whose age is 25 years *) Note the submission succeeds e) On the staff client, try to create or modify a patron whose age is 25 years *) Note the error message presented, suggesting the age exceeds the maximum f) Set the PatronSelfRegistrationAgeRestriction to empty g) On the OPAC, try to create or modify a patron whose age is 25 years *) Note the error message presented, suggesting the age exceeds the maximum h) On the OPAC, try to create or modify a patron whose age is 19 years *) Note the submission succeeds i) Set the PatronAgeRestriction to empty j) On the staff client, try to create or modify a patron whose age is 75 years *) Note the submission succeeds k) On the OPAC, try to create or modify a patron whose age is 75 years *) Note the submission succeeds == SIGN OFF == -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Jake Deery <jake.deery@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Jake Deery <jake.deery@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |39579 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39579 [Bug 39579] Add ability to restrict patron date of birth on self registration -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@openfifth.c | |o.uk, | |sally.healey@cheshireshared | |services.gov.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #192969|0 |1 is obsolete| | --- Comment #2 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 193494 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193494&action=edit Bug 41814: Add PatronAgeRestriction syspref and code This patch adds a new PatronAgeRestriction, which acts in the same way PatronSelfRegistrationAgeRestriction (a restriction on the maximum age of a borrower), except for the intranet. It will also act as the maximum age restrictor on the OPAC, in the event that the PatronSelfRegistrationAgeRestriction is not set. To test: == APPLY PATCH == a) updatedatabase b) Set the PatronAgeRestriction syspref to 20, set the PatronSelfRegistrationAgeRestriction to 30 c) On the OPAC, try to create or modify a patron whose age is 35 years *) Note the error message presented, suggesting the age exceeds the maximum d) On the OPAC, try to create or modify a patron whose age is 25 years *) Note the submission succeeds e) On the staff client, try to create or modify a patron whose age is 25 years *) Note the error message presented, suggesting the age exceeds the maximum f) Set the PatronSelfRegistrationAgeRestriction to empty g) On the OPAC, try to create or modify a patron whose age is 25 years *) Note the error message presented, suggesting the age exceeds the maximum h) On the OPAC, try to create or modify a patron whose age is 19 years *) Note the submission succeeds i) Set the PatronAgeRestriction to empty j) On the staff client, try to create or modify a patron whose age is 75 years *) Note the submission succeeds k) On the OPAC, try to create or modify a patron whose age is 75 years *) Note the submission succeeds == SIGN OFF == Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Limit the maximum age for |Limit the maximum age for |borrower categories without |patron categories without a |a specified range |specified range -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |katrin.fischer@bsz-bw.de |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193494|0 |1 is obsolete| | --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 193582 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193582&action=edit Bug 41814: Add PatronAgeRestriction syspref and code This patch adds a new PatronAgeRestriction, which acts in the same way PatronSelfRegistrationAgeRestriction (a restriction on the maximum age of a borrower), except for the intranet. It will also act as the maximum age restrictor on the OPAC, in the event that the PatronSelfRegistrationAgeRestriction is not set. To test: == APPLY PATCH == a) updatedatabase b) Set the PatronAgeRestriction syspref to 20, set the PatronSelfRegistrationAgeRestriction to 30 c) On the OPAC, try to create or modify a patron whose age is 35 years *) Note the error message presented, suggesting the age exceeds the maximum d) On the OPAC, try to create or modify a patron whose age is 25 years *) Note the submission succeeds e) On the staff client, try to create or modify a patron whose age is 25 years *) Note the error message presented, suggesting the age exceeds the maximum f) Set the PatronSelfRegistrationAgeRestriction to empty g) On the OPAC, try to create or modify a patron whose age is 25 years *) Note the error message presented, suggesting the age exceeds the maximum h) On the OPAC, try to create or modify a patron whose age is 19 years *) Note the submission succeeds i) Set the PatronAgeRestriction to empty j) On the staff client, try to create or modify a patron whose age is 75 years *) Note the submission succeeds k) On the OPAC, try to create or modify a patron whose age is 75 years *) Note the submission succeeds == SIGN OFF == Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 193583 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193583&action=edit Bug 41814: (QA follow-up) Add bug number to atomic update and some style fixes Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Fiona Borthwick <fiona.borthwick@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fiona.borthwick@openfifth.c | |o.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |release-notes-needed CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 --- Comment #5 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Jake, can you please add release notes. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This patch adds a new release notes| |PatronAgeRestriction, which | |acts in the same way | |PatronSelfRegistrationAgeRe | |striction (a restriction on | |the maximum age of a | |borrower), except for the | |intranet. It will also act | |as the maximum age | |restrictor on the OPAC, in | |the event that the | |PatronSelfRegistrationAgeRe | |striction is not set. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193582|0 |1 is obsolete| | Attachment #193583|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 --- Comment #6 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195751 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195751&action=edit Bug 41814: Add PatronAgeRestriction syspref and code This patch adds a new PatronAgeRestriction, which acts in the same way PatronSelfRegistrationAgeRestriction (a restriction on the maximum age of a borrower), except for the intranet. It will also act as the maximum age restrictor on the OPAC, in the event that the PatronSelfRegistrationAgeRestriction is not set. To test: == APPLY PATCH == a) updatedatabase b) Set the PatronAgeRestriction syspref to 20, set the PatronSelfRegistrationAgeRestriction to 30 c) On the OPAC, try to create or modify a patron whose age is 35 years *) Note the error message presented, suggesting the age exceeds the maximum d) On the OPAC, try to create or modify a patron whose age is 25 years *) Note the submission succeeds e) On the staff client, try to create or modify a patron whose age is 25 years *) Note the error message presented, suggesting the age exceeds the maximum f) Set the PatronSelfRegistrationAgeRestriction to empty g) On the OPAC, try to create or modify a patron whose age is 25 years *) Note the error message presented, suggesting the age exceeds the maximum h) On the OPAC, try to create or modify a patron whose age is 19 years *) Note the submission succeeds i) Set the PatronAgeRestriction to empty j) On the staff client, try to create or modify a patron whose age is 75 years *) Note the submission succeeds k) On the OPAC, try to create or modify a patron whose age is 75 years *) Note the submission succeeds == SIGN OFF == Sponsored-by: Cheshire West and Chester Council Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 --- Comment #7 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195752 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195752&action=edit Bug 41814: (QA follow-up) Add bug number to atomic update and some style fixes Sponsored-by: Cheshire West and Chester Council Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 --- Comment #8 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 195753 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195753&action=edit Bug 41814: (RM follow-up) Add PatronAgeRestriction to UsageStats Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |26.05.00 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 --- Comment #9 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Thanks for all the hard work! Pushed to main for the next 26.05.00 release as RM Assistant -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lisette@bywatersolutions.co | |m Text to go in the|This patch adds a new |This patch adds a new release notes|PatronAgeRestriction, which |system preference |acts in the same way |`PatronAgeRestriction`, |PatronSelfRegistrationAgeRe |which acts in the same way |striction (a restriction on |`PatronSelfRegistrationAgeR |the maximum age of a |estriction` (a restriction |borrower), except for the |on the maximum age of a |intranet. It will also act |borrower), except for the |as the maximum age |intranet. It will also act |restrictor on the OPAC, in |as the maximum age |the event that the |restrictor on the OPAC, in |PatronSelfRegistrationAgeRe |the event that the |striction is not set. |`PatronSelfRegistrationAgeR | |estriction` is not set. Keywords|release-notes-needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41814 Jacob O'Mara <jacob.omara@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |Needs documenting --- Comment #10 from Jacob O'Mara <jacob.omara@openfifth.co.uk> --- This will not be backported to 25.11.x due to it being deemed an enhancement or a dependancy not being met -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org