[Koha-bugs] [Bug 26311] Add patron invalid age to search_for_data_inconsistencies.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 30 09:03:11 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26311

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcook at prosentient.com.au

--- Comment #9 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #6)
> I am wondering if we could not improve this a bit.
> 1. We could retrieve patrons with a dob
> 2. We could retrieve patrons from categories with dateofbirthrequired
> 
> Looping on all patrons does not seem very efficient.
> 
> What do you think?

I agree about improving efficiency.

Why not loop through the patron categories that have age limits, and then only
retrieve the patrons for those categories?

Depending on how inconsistencies want to be reported, you could then note
patrons with null dateofbirth, or only select patrons where their dateofbirth
is outside the allowed scope. 

Much better than looping through all patrons I think.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list