LP#1332651 do not strip internal spaces in barcode
authorRogan Hamby <rogan.hamby@gmail.com>
Wed, 5 Aug 2020 13:40:46 +0000 (09:40 -0400)
committerJason Etheridge <jason@EquinoxInitiative.org>
Sat, 22 Aug 2020 04:03:48 +0000 (00:03 -0400)
for retrieve patron via checkout

Signed-off-by Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>

Open-ILS/web/js/ui/default/staff/circ/patron/app.js

index 08f0596..0b1a1a7 100644 (file)
@@ -474,7 +474,8 @@ function($scope , $location , egCore , egConfirmDialog , egUser , patronSvc , $u
         $scope.bcNotFound = null;
         $scope.optInRestricted = false;
         if (!args.barcode) return;
-        args.barcode = args.barcode.replace(/\s/g,'');
+        args.barcode = args.barcode.replace(/^\s/g,'');
+        args.barcode = args.barcode.replace(/\s$/g,'');
         // blur so next time it's set to true it will re-apply select()
         $scope.selectMe = false;