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=885bd717f35f48db5412b966d6b97d5229dcf141;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 557995a4fb..7c7ba460c7 100644 --- a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul +++ b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul @@ -89,6 +89,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;