Bugzilla – Attachment 194417 Details for
Bug 41986
Names in "Contact information" need more clarity
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41986: Add more names to Contact information and clarify preferred name
Bug-41986-Add-more-names-to-Contact-information-an.patch (text/plain), 2.85 KB, created by
David Cook
on 2026-03-03 23:51:18 UTC
(
hide
)
Description:
Bug 41986: Add more names to Contact information and clarify preferred name
Filename:
MIME Type:
Creator:
David Cook
Created:
2026-03-03 23:51:18 UTC
Size:
2.85 KB
patch
obsolete
>From 11cf1bb7d9cd74c259a4f54bdd9513595f4d5fcf Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >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 @@ > > <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> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41986
:
194417
|
194419
|
194434