From: Bill Erickson Date: Sun, 16 Sep 2018 23:25:44 +0000 (-0400) Subject: LP#1792482 Only require first/last in pref name display X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=86f732b4eade6a22b66979cb8258168ebbf1cbb2;p=evergreen%2Fequinox.git LP#1792482 Only require first/last in pref name display When displaying a patrons preferred name, always show a value for first and last name, starting with the preferred name and defaulting to the primary name, but only show values for prefix, middle name, and suffix when a preferred variant is applied. This avoids scenarios where patrons use their middle name as their first name, with no preferred middle name applied, resulting duplicate first/middle names displaying. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 index c50ff0d6c8..c89a0075b3 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 @@ -7,7 +7,7 @@ [% l('[_1], [_2] [_3] (Preferred)', '{{patron().pref_family_name() || patron().family_name()}}', '{{patron().pref_first_given_name() || patron().first_given_name()}}', - '{{patron().pref_second_given_name() || patron().second_given_name()}}') + '{{patron().pref_second_given_name()}}') %]