From d4b0cdb04f81d7962f80e80156ee5a261b8fb760 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Thu, 28 Sep 2017 10:48:58 -0400 Subject: [PATCH] LP#1715423 - fix issues with the display of IDs in patron summary pane The Patron summary pane was not properly displaying the values for the primary ID and secondary ID. Also added the type name of the ID in next to primary ID label. Signed-off by: Cesar Velez Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 | 6 +++--- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) 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 10348c4137..bd732a57e8 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_summary.tt2 @@ -143,12 +143,12 @@
{{patron().other_phone()}}
-
[% l('ID1') %]
-
{{patron().ident_type().name()}}
+
[% l('ID1') %] ({{patron().ident_type().name()}})
+
{{patron().ident_value()}}
[% l('ID2') %]
-
{{patron().ident_type2().name()}}
+
{{patron().ident_value2()}}
[% l('Email') %]
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index 9967ce3fa2..75e6ec4345 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -718,7 +718,11 @@ function($scope, $q, $location , $filter, egCore, egUser, patronSvc) { $scope.patron_id = patron_id; return patronSvc.setPrimary($scope.patron_id) .then(function() {return patronSvc.checkAlerts()}) - .then(redirectToAlertPanel); + .then(redirectToAlertPanel) + .then(function(){ + $scope.ident_type_name = $scope.patron().ident_type().name() + $scope.hasIdentTypeName = $scope.ident_type_name.length > 0; + }); } return $q.when(); } -- 2.11.0