Patron barcodes: handle drivers license, state ID tadl/prod_catchup_barcodes_and_skin
authorJeff Godin <jgodin@tadl.org>
Mon, 21 May 2012 20:21:53 +0000 (16:21 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 22 May 2012 15:33:24 +0000 (11:33 -0400)
Special handling for drivers license and state ID
patron barcodes.

These changes have been in production for some time, but were
not previously checked in to revision control.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/xul/staff_client/server/patron/barcode_entry.xul

index 0de36de..f693059 100644 (file)
@@ -88,6 +88,9 @@
                 barcode = String( barcode ).replace( /\s+/g, '' );
 
                 if (!barcode) { sound.bad(); add_msg($("patronStrings").getString('staff.patron.barcode_entry.no_barcode')); tb.select(); tb.focus(); return; }
+               // MIEG: Michigan ID voodo
+                if (barcode.length == 25) { var bcode = barcode.substring(0,13); barcode = bcode.toLowerCase(); }
+                if (barcode.length == 23) { var bcode = barcode.substring(0,11); barcode = bcode.toLowerCase(); }
 
                 JSAN.use('util.network'); var net = new util.network();