Transform TADL patron barcodes in barcode_entry.xul, used when
retrieving a patron from the system.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
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;