[open-ils-commits] r10358 -
branches/rel_1_2/Open-ILS/xul/staff_client/server/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 14 12:09:03 EDT 2008
Author: phasefx
Date: 2008-08-14 12:08:59 -0400 (Thu, 14 Aug 2008)
New Revision: 10358
Modified:
branches/rel_1_2/Open-ILS/xul/staff_client/server/circ/copy_status.js
Log:
split on commas and space to handle csv files.. but need to be wary, some barcodes do have punctuation
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/circ/copy_status.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/circ/copy_status.js 2008-08-13 22:11:57 UTC (rev 10357)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/circ/copy_status.js 2008-08-14 16:08:59 UTC (rev 10358)
@@ -293,7 +293,7 @@
var f = new util.file('');
var content = f.import_file( { 'title' : 'Import Barcode File', '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 = [];
More information about the open-ils-commits
mailing list