From: Cesar Velez Date: Thu, 28 Sep 2017 14:48:58 +0000 (-0400) Subject: LP#1715423 - fix issues with the display of IDs in patron summary pane X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d4b0cdb04f81d7962f80e80156ee5a261b8fb760;p=working%2FEvergreen.git 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 --- 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(); }