var bcHandler = function(barcode_or_usrname) {
// handle patron barcode/usrname entry
- if(self.orgSettings[SET_PATRON_PASSWORD_REQUIRED] == 'True') {
+ if(self.orgSettings[SET_PATRON_PASSWORD_REQUIRED]) {
// password is required. wire up the scan box to read it
self.updateScanBox({
msg : localeStrings.PLEASE_LOGIN,
handler : bcHandler
});
+ /* PINES Customization: Change color of text instructions in banner for user name. */
+ dojo.style('oils-selfck-scan-text','background-color','#000');
}
/**
usrname = barcode_or_usrname;
}
- if(this.orgSettings[SET_PATRON_PASSWORD_REQUIRED] == 'True') {
+ if(this.orgSettings[SET_PATRON_PASSWORD_REQUIRED]) {
if(!passwd) {
// would only happen in dev/debug mode when using the patron= param
if(args.password) {
selfckScanBox.domNode.setAttribute('type', 'password');
+ /* PINES Customization: Change color of text instructions in banner for password. */
+ dojo.style('oils-selfck-scan-text','background-color','crimson');
} else {
selfckScanBox.domNode.setAttribute('type', '');
+ /* PINES Customization: Change color of text instructions in banner for barcodes. */
+ dojo.style('oils-selfck-scan-text','background-color','#E67E22');
}
if(args.value)