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 <stompro@stompro.org>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bclibraries.coop>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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