obscure ident information in patron summary if the value ends with 4 digits
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Sep 2006 14:27:17 +0000 (14:27 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Sep 2006 14:27:17 +0000 (14:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6209 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/summary.js

index 0bcb0ae..c242f2c 100644 (file)
@@ -250,9 +250,9 @@ patron.summary.prototype = {
                                                ['render'],
                                                function(e) {
                                                        return function() { 
-                                                               e.setAttribute('value',
-                                                                       obj.patron.ident_value()
-                                                               );
+                                                               var val = obj.patron.ident_value();
+                                                               val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1');
+                                                               e.setAttribute('value', val);
                                                        };
                                                }
                                        ],
@@ -275,9 +275,9 @@ patron.summary.prototype = {
                                                ['render'],
                                                function(e) {
                                                        return function() { 
-                                                               e.setAttribute('value',
-                                                                       obj.patron.ident_value2()
-                                                               );
+                                                               var val = obj.patron.ident_value2();
+                                                               val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1');
+                                                               e.setAttribute('value', val);
                                                        };
                                                }
                                        ],