Bug 41986

Summary: Names in "Contact information" need more clarity
Product: Koha Reporter: David Cook <dcook>
Component: PatronsAssignee: David Cook <dcook>
Status: Passed QA --- QA Contact: Jonathan Druart <jonathan.druart>
Severity: minor    
Priority: P5 - low CC: david, fridolin.somers, gmcharlt, kyle
Version: Main   
Hardware: All   
OS: All   
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:
This changes the "Contact information" section on the patron details page (moremember.pl) to: - show the "Middle name" field (where it exists) - show the "Preferred name" field at the top (where it differs from the "First name").
Version(s) released in:
Circulation function:
Bug Depends on: 28633, 39587    
Bug Blocks:    
Attachments: Bug 41986: Add more names to Contact information and clarify preferred name
Bug 41986: Add more names to Contact information and clarify preferred name
Bug 41986: Add more names to Contact information and clarify preferred name

Description David Cook 2026-03-03 23:06:08 UTC
Bug 28633 added "First name:" to the "Contact information" on moremember.pl when there's a firstname and preferred name. (This has a number of issues when migrating patrons with non-Koha tools, but I'll put a pin in that for now.)

Because people got confused why only "First name:" was appearing, bug 39587 added the "Surname:" as well (one day, I hope we can change this to "Last name:" which is more optimal for UX but oh well). 

At this point, we should add "Preferred name:" (if it differs from First name - see https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28633#c144), and "Middle name:".

This should provide maximum clarity about which name is which.
Comment 1 David Cook 2026-03-03 23:51:18 UTC
Created attachment 194417 [details] [review]
Bug 41986: Add more names to Contact information and clarify preferred name

This patch adds the "Middle name" to the Contact information on moremember.pl,
and it adds "Preferred name:" when it differs from the "First name:". This
provides maximum clarity to staff users.

Test plan:
0. Apply the patch
1. Go to the "Patrons" module and search for or add a new patron
2. Add a firstname, a middle name, and a surname. Also add a "Preferred name"
which matches the firstname.
3. Go to "Details" on the sidebar, and note that "First name", "Middle name",
and "Surname" appear in the "Contact information".
4. Edit the patron and change "Preferred name" to a name that does not
match the "First name"
5. Go to "Details" on the sidebar, and note that "Preferred name" now shows
as well.
6. Enjoy fully comprehending which name is which for the patron!
Comment 2 David Cook 2026-03-03 23:53:15 UTC
People can debate whether this is a bug fix or an enhancement. I think an argument could be made for either. I marked it as a bug fix because I think it fixes a problem rather than adding an improvement per se.
Comment 3 David Nind 2026-03-04 00:18:16 UTC
Created attachment 194419 [details] [review]
Bug 41986: Add more names to Contact information and clarify preferred name

This patch adds the "Middle name" to the Contact information on moremember.pl,
and it adds "Preferred name:" when it differs from the "First name:". This
provides maximum clarity to staff users.

Test plan:
0. Apply the patch
1. Go to the "Patrons" module and search for or add a new patron
2. Add a firstname, a middle name, and a surname. Also add a "Preferred name"
which matches the firstname.
3. Go to "Details" on the sidebar, and note that "First name", "Middle name",
and "Surname" appear in the "Contact information".
4. Edit the patron and change "Preferred name" to a name that does not
match the "First name"
5. Go to "Details" on the sidebar, and note that "Preferred name" now shows
as well.
6. Enjoy fully comprehending which name is which for the patron!

Signed-off-by: David Nind <david@davidnind.com>
Comment 4 David Cook 2026-03-04 00:20:05 UTC
You're an absolute legend, David Nind. Thanks heaps!
Comment 5 Jonathan Druart 2026-03-04 08:54:54 UTC
Created attachment 194434 [details] [review]
Bug 41986: Add more names to Contact information and clarify preferred name

This patch adds the "Middle name" to the Contact information on moremember.pl,
and it adds "Preferred name:" when it differs from the "First name:". This
provides maximum clarity to staff users.

Test plan:
0. Apply the patch
1. Go to the "Patrons" module and search for or add a new patron
2. Add a firstname, a middle name, and a surname. Also add a "Preferred name"
which matches the firstname.
3. Go to "Details" on the sidebar, and note that "First name", "Middle name",
and "Surname" appear in the "Contact information".
4. Edit the patron and change "Preferred name" to a name that does not
match the "First name"
5. Go to "Details" on the sidebar, and note that "Preferred name" now shows
as well.
6. Enjoy fully comprehending which name is which for the patron!

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>