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: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
parent
53a8761a42
commit
5ecf2cc9b0
|
|
@ -132,12 +132,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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue