From: phasefx Date: Thu, 14 Aug 2008 16:09:25 +0000 (+0000) Subject: split on commas and space to handle csv files.. but need to be wary, some barcodes... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b84c3a2e225f8a0ca412058e47654f9dd78c69a7;p=Evergreen.git split on commas and space to handle csv files.. but need to be wary, some barcodes do have punctuation git-svn-id: svn://svn.open-ils.org/ILS/trunk@10359 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.js b/Open-ILS/xul/staff_client/server/circ/copy_status.js index f549818f13..a8cfa56692 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -294,7 +294,7 @@ circ.copy_status.prototype = { var f = new util.file(''); var content = f.import_file( { 'title' : document.getElementById('circStrings').getString('staff.circ.copy_status.upload_file.title'), 'not_json' : true } ); if (!content) { return; } - var barcodes = content.split(/\s+/); + var barcodes = content.split(/[,\s]+/); if (barcodes.length > 0) { JSAN.use('util.exec'); var exec = new util.exec(); var funcs = [];