Bug 30665 - Make order of emails in "first_valid_email_address" configurable
Summary: Make order of emails in "first_valid_email_address" configurable
Status: RESOLVED DUPLICATE of bug 29046
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-03 01:10 UTC by David Cook
Modified: 2023-06-17 21:45 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***