Bug 30665

Summary: Make order of emails in "first_valid_email_address" configurable
Product: Koha Reporter: David Cook <dcook>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30664
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description David Cook 2022-05-03 01:10:50 UTC
At the moment Koha::Patron->first_valid_email_address mandates a precedence of "email", then "emailpro", then "B_email".

However, when "emailpro" was "Work email", a lot of people preferred to use it instead of "email" which was "Home email". 

The change of "email" to "Primary email" and "emailpro" to "Secondary email" was biased towards public and academic libraries, which left a lot of special libraries in the lurch. 

At the moment, I hard-code a change to first_valid_email_address to prefer emailpro, but it would be good if this was just straight-up configurable in core Koha.
Comment 1 David Cook 2022-05-03 01:52:15 UTC
This is something that I would like to do but I don't think I have the time to do it any time soon. Maybe March 2023.
Comment 2 Katrin Fischer 2023-06-17 21:45:24 UTC

*** This bug has been marked as a duplicate of bug 29046 ***