From b0bc8007becd2a2185a7d19a3dd4f08597536463 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 --- 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 632f50b071..9d55e17a59 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 e7d6430453..5326e9fc7f 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 @@ -292,7 +292,11 @@ function($scope, $q , $location , $filter , egCore , egNet , egUser , egAlertDi $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