From 11cf1bb7d9cd74c259a4f54bdd9513595f4d5fcf Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 3 Mar 2026 23:47:54 +0000 Subject: [PATCH] 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! --- .../prog/en/modules/members/moremember.tt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index cc59617307f..4ee1879b243 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -131,12 +131,24 @@
    - [% IF ( patron.preferred_name && patron.firstname ) %] + [% IF ( ( patron.preferred_name && patron.firstname ) && (patron.preferred_name != patron.firstname) ) %] +
  1. + Preferred name: + [% patron.preferred_name | html %] +
  2. + [% END %] + [% IF ( patron.firstname ) %]
  3. First name: [% patron.firstname | html %]
  4. [% END %] + [% IF ( patron.middle_name ) %] +
  5. + Middle name: + [% patron.middle_name | html %] +
  6. + [% END %] [% IF ( patron.surname ) %]
  7. Surname: -- 2.39.5