From fddcefb2fb0db58ff5357f205034bc62f20dbac8 Mon Sep 17 00:00:00 2001 From: Josh Stompro Date: Mon, 13 Dec 2021 13:58:02 -0600 Subject: [PATCH] LP1847827 - Evergreen Web Based Self Check - Use prefered first name in header. Thank you to Suzanne Paterno for showing me what to edit. After this is installed, just set and unset a preferred first name for an account and make sure it shows up correctly in the web based self check interface. https://example.com/eg/circ/selfcheck/main Signed-off-by: Josh Stompro Signed-off-by: Jennifer Pringle Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 002dd346c2..32f6664303 100644 --- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js @@ -468,7 +468,8 @@ SelfCheckManager.prototype.fetchPatron = function(barcode, usrname) { this.handleAlert('', false, 'login-success'); dojo.byId('oils-selfck-user-banner').innerHTML = - dojo.string.substitute(localeStrings.WELCOME_BANNER, [this.patron.first_given_name()]); + dojo.string.substitute(localeStrings.WELCOME_BANNER, [ + ( this.patron.pref_first_given_name() ? this.patron.pref_first_given_name() : this.patron.first_given_name() ) ]); if (this.patron.email() && // they have an email address set and ... this.patron.email().match(/.*@.*/).length > 0 // it sorta looks like an email address -- 2.11.0