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=791fa3a99e5cac2dc339d9df558fa770d066f3c7;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: Mike Rylander --- 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 705a4a78b2..4d4c728857 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(); }