From 10ef5770fd7a76a4637f2bf5bb90273720f3e862 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Tue, 7 May 2019 20:57:50 -0400 Subject: [PATCH] LP1821969 Patron Prefix and Suffix Display in Summary Adds support for displaying the patron prefix, suffix, preferred prefix, and preferred suffix in the patron summary sidebar. To test: 1. Add a combination of prefixes, suffixes, preferred prefixes, and preferred suffixes to several patrons. 2. Also add some other preferred information to some of these patrons. 3. In the sidebar notice the lack of prefix information in both the patron's main heading and in the preferred name information. 4. Apply the patch. 5. In the sidebar the prefixes and suffixes are now displayed. Signed-off-by: Garry Collum Signed-off-by: Michele Morgan Signed-off-by: Galen Charlton --- Open-ILS/src/templates/staff/circ/patron/index.tt2 | 6 ++++-- Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/index.tt2 b/Open-ILS/src/templates/staff/circ/patron/index.tt2 index 259dae7019..6c0e794a8e 100644 --- a/Open-ILS/src/templates/staff/circ/patron/index.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/index.tt2 @@ -98,10 +98,12 @@ angular.module('egCoreMod').run(['egStrings', function(s) {
- [% l('[_1], [_2] [_3]', + [% l('[_1] [_2], [_3] [_4] [_5]', + '{{patron().prefix()}}', '{{patron().family_name()}}', '{{patron().first_given_name()}}', - '{{patron().second_given_name()}}') %] + '{{patron().second_given_name()}}', + '{{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 d5c18ea5ac..a0de76c0d8 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 @@ -2,12 +2,14 @@
+ ng-if="patron().pref_prefix() || patron().pref_family_name() || patron().pref_first_given_name() || patron().pref_second_given_name() || patron().pref_suffix()">
- [% l('[_1], [_2] [_3] (Preferred)', + [% 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().pref_second_given_name()}}', + '{{patron().pref_suffix() || patron().suffix()}}') %]
-- 2.11.0