From: Jeff Godin Date: Thu, 26 Jul 2012 06:52:37 +0000 (-0400) Subject: Transform TADL patron barcodes in xul X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f10ca8470b540466053ecb7bf05c81b687949fae;p=evergreen%2Ftadl.git Transform TADL patron barcodes in xul Transform TADL patron barcodes in barcode_entry.xul, used when retrieving a patron from the system. 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 fa613b2b3d..424c12a477 100644 --- a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul +++ b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul @@ -100,6 +100,12 @@ if (!barcode) { sound.bad(); add_msg($("patronStrings").getString('staff.patron.barcode_entry.no_barcode')); tb.select(); tb.focus(); return; } + // TADL patron barcode transforms + if (barcode.length == 27 || 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(); tb.disabled = true;