for some added privacy, display the user's username instead of their real name in...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 May 2010 18:42:08 +0000 (18:42 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 May 2010 18:42:08 +0000 (18:42 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16522 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js
Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js

index bb53323..67e2782 100644 (file)
@@ -18,6 +18,7 @@
     'WORKSTATION_REQUIRED' : 'A workstation is required to log in to selfcheck.  You can set the  workstation name with URL param "ws".  \n\nWould you like to register a new workstation for this self-check interface?',
     'WORKSTATION_EXISTS' : 'This workstation has already been registered.  Would you like to use it for this self-check station?',
     'CC_PAYABLE_BALANCE' : 'Total amount to pay: \$${0}',
-    'TOTAL_FINES_SELECTED' : 'Selected total: \$${0}'
+    'TOTAL_FINES_SELECTED' : 'Selected total: \$${0}',
+    'WELCOME_BANNER' : 'Welcome, ${0}'
 }
 
index 61c2d0b..7075c57 100644 (file)
@@ -293,7 +293,8 @@ SelfCheckManager.prototype.loginPatron = function(barcode, passwd) {
     } else {
 
         this.handleAlert('', false, 'login-success');
-        dojo.byId('oils-selfck-user-banner').innerHTML = 'Welcome, ' + this.patron.first_given_name(); // TODO i18n
+        dojo.byId('oils-selfck-user-banner').innerHTML = 
+            dojo.string.substitute(localeStrings.WELCOME_BANNER, [this.patron.usrname()]);
         this.drawCircPage();
     }
 }