From d8a3759ba863a694f4bcca3dfecdb3eb3217a017 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Mon, 21 May 2012 16:21:53 -0400 Subject: [PATCH] Patron barcodes: handle drivers license, state ID 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 --- Open-ILS/xul/staff_client/server/patron/barcode_entry.xul | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul index 0de36de019..f693059f3a 100644 --- a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul +++ b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul @@ -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(); -- 2.11.0