From: Jeff Godin Date: Mon, 21 May 2012 20:21:53 +0000 (-0400) Subject: Patron barcodes: handle drivers license, state ID X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d8a3759ba863a694f4bcca3dfecdb3eb3217a017;p=evergreen%2Ftadl.git 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 --- 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();