Web Client checkout trims spaces from patron barcodes differently than xul client checkout
The web client was not removing the whitespaces before checking barcode searches
this commit includes a step where the whitespaces are removed.
Signed off by Skye Howard <showard@catalyte.io>
Signed off by Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
$scope.bcNotFound = null;
$scope.optInRestricted = false;
if (!args.barcode) return;
-
+ args.barcode = args.barcode.replace(/\s/g,'');
// blur so next time it's set to true it will re-apply select()
$scope.selectMe = false;