From 8039a45de49f58046d8ae36e3e55b122b3025127 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Tue, 27 Apr 2021 10:35:18 -0700 Subject: [PATCH] LP#1924185: use preferred name in patron summary When available, the preferred name is used as the main name in the patron summary (rather than as a less-prominent field beneath the main name). The legal name is displayed further down in the summary, just after the ID fields. Signed-off-by: Jeff Davis Signed-off-by: Michele Morgan Signed-off-by: Jane Sandberg --- Open-ILS/src/templates/staff/circ/patron/index.tt2 | 10 ++++---- .../src/templates/staff/circ/patron/t_summary.tt2 | 29 +++++++++++----------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/index.tt2 b/Open-ILS/src/templates/staff/circ/patron/index.tt2 index 9afa796166..d82b70e2b7 100644 --- a/Open-ILS/src/templates/staff/circ/patron/index.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/index.tt2 @@ -102,11 +102,11 @@ angular.module('egCoreMod').run(['egStrings', function(s) {
[% l('[_1] [_2], [_3] [_4] [_5]', - '{{patron().prefix()}}', - '{{patron().family_name()}}', - '{{patron().first_given_name()}}', - '{{patron().second_given_name()}}', - '{{patron().suffix()}}') %] + '{{patron().pref_prefix() || patron().prefix()}}', + '{{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_suffix() || patron().suffix()}}') %]
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 a9ad375bd0..60145f2ca1 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 @@ -1,18 +1,6 @@
-
-
- [% l('[_1] [_2], [_3] [_4] [_5] (Preferred)', - '{{patron().pref_prefix() || patron().prefix()}}', - '{{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_suffix() || patron().suffix()}}') - %] -
-
@@ -52,9 +40,9 @@
[% l('Name') %]
[% l('[_1], [_2] [_3]', - '{{patron().family_name()}}', - '{{patron().first_given_name()}}', - '{{patron().second_given_name()}}') %] + '{{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()}}') %]
@@ -170,6 +158,17 @@
{{patron().ident_value2()}}
+
[% l('Legal Name') %]
+
+ [% l('[_1] [_2], [_3] [_4] [_5]', + '{{patron().prefix()}}', + '{{patron().family_name()}}', + '{{patron().first_given_name()}}', + '{{patron().second_given_name()}}', + '{{patron().suffix()}}') %] +
+
+
[% l('Email') %]
-- 2.11.0