Bug 41321 - Calculation of patron age is not always done the same
Summary: Calculation of patron age is not always done the same
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-26 20:42 UTC by Lucas Gass (lukeg)
Modified: 2025-11-26 20:46 UTC (History)
3 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2025-11-26 20:42:49 UTC
On the left side of the patron page is patroninfo, that includes the patron's age in parenthesis. class = age_years

In a patron search there is agehint. 


These are calculated differently and if the patron's dateofbirth is tomorrow this can lead to inconsistencies between the two. 

We should calculate a patron's age in a standard way instead of using 2 different sets of logic.