From d4ef3ad3fb6a510ddbaf283bf2c7e4b534cc8c07 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 27 May 2010 18:42:08 +0000 Subject: [PATCH] for some added privacy, display the user's username instead of their real name in the self-check welcome banner. i18n-ified 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 | 3 ++- Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js b/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js index bb533235c6..67e278206d 100644 --- a/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js +++ b/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js @@ -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}' } diff --git a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js index 61c2d0b091..7075c575b4 100644 --- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js @@ -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(); } } -- 2.11.0