From: Jeff Davis Date: Tue, 27 Apr 2021 18:25:50 +0000 (-0700) Subject: LP#1924185: use preferred name before legal name in My Account X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=26905b5dfa0e44c9d5ae2fe4b227767a6720e3cd;p=evergreen%2Fpines.git LP#1924185: use preferred name before legal name in My Account Signed-off-by: Jeff Davis Signed-off-by: Michele Morgan Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 index d0aa7645ef..bf9f1169a7 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/prefs.tt2 @@ -7,36 +7,36 @@
+ [% IF ctx.user.pref_first_given_name || ctx.user.pref_second_given_name || ctx.user.pref_family_name %] - + - [% IF ctx.user.pref_first_given_name || ctx.user.pref_second_given_name || ctx.user.pref_family_name %] + [% END %] - + - [% END %] diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2 index 7d8745cd70..a33dd15d67 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/topnav_links.tt2 @@ -41,7 +41,7 @@
  • [% l("Name") %][% l("Preferred Name") %] [% l( HUMAN_NAME_FORMAT, - ctx.user.prefix, - ctx.user.first_given_name, - ctx.user.second_given_name, - ctx.user.family_name, - ctx.user.suffix + ctx.user.pref_prefix, + (ctx.user.pref_first_given_name || ctx.user.first_given_name), + ctx.user.pref_second_given_name, + (ctx.user.pref_family_name || ctx.user.family_name), + ctx.user.pref_suffix ) | html %]
    [% l("Preferred Name") %][% l("Legal Name") %] [% l( HUMAN_NAME_FORMAT, - ctx.user.pref_prefix, - (ctx.user.pref_first_given_name || ctx.user.first_given_name), - ctx.user.pref_second_given_name, - (ctx.user.pref_family_name || ctx.user.family_name), - ctx.user.pref_suffix + ctx.user.prefix, + ctx.user.first_given_name, + ctx.user.second_given_name, + ctx.user.family_name, + ctx.user.suffix ) | html %]
    [% l("Day Phone") %]
    + [% IF ctx.user.pref_first_given_name || ctx.user.pref_second_given_name || ctx.user.pref_family_name %] + class='color_4 light_border'>[% l("Preferred Name") %] - [% IF ctx.user.pref_first_given_name || ctx.user.pref_second_given_name || ctx.user.pref_family_name %] + [% END %] + + class='color_4 light_border'>[% l("Legal Name") %] - [% END %]
    [% l("Name") %] [% l( HUMAN_NAME_FORMAT, - ctx.user.prefix, - ctx.user.first_given_name, - ctx.user.second_given_name, - ctx.user.family_name, - ctx.user.suffix + ctx.user.pref_prefix, + (ctx.user.pref_first_given_name || ctx.user.first_given_name), + ctx.user.pref_second_given_name, + (ctx.user.pref_family_name || ctx.user.family_name), + ctx.user.pref_suffix ) | html %]
    [% l("Preferred Name") %] [% l( HUMAN_NAME_FORMAT, - ctx.user.pref_prefix, - (ctx.user.pref_first_given_name || ctx.user.first_given_name), - ctx.user.pref_second_given_name, - (ctx.user.pref_family_name || ctx.user.family_name), - ctx.user.pref_suffix + ctx.user.prefix, + ctx.user.first_given_name, + ctx.user.second_given_name, + ctx.user.family_name, + ctx.user.suffix ) | html %]
    [% l("Day Phone") %]