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>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit b53496e069)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
David Cook 2026-03-03 23:47:54 +00:00 committed by Jacob O'Mara
parent 49d0eddaed
commit a40739ee28
No known key found for this signature in database
1 changed files with 13 additions and 1 deletions

View File

@ -131,12 +131,24 @@
<div class="rows">
<ol>
[% IF ( patron.preferred_name && patron.firstname ) %]
[% IF ( ( patron.preferred_name && patron.firstname ) && (patron.preferred_name != patron.firstname) ) %]
<li id="patron_preferred_name">
<span class="label patron_preferred_name">Preferred name: </span>
[% patron.preferred_name | html %]
</li>
[% END %]
[% IF ( patron.firstname ) %]
<li id="patron_first_name">
<span class="label patron_first_name">First name: </span>
[% patron.firstname | html %]
</li>
[% END %]
[% IF ( patron.middle_name ) %]
<li id="patron_middle_name">
<span class="label patron_middle_name">Middle name: </span>
[% patron.middle_name | html %]
</li>
[% END %]
[% IF ( patron.surname ) %]
<li id="patron_surname">
<span class="label">Surname: </span>