[open-ils-commits] r10359 -
trunk/Open-ILS/xul/staff_client/server/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 14 12:09:27 EDT 2008
Author: phasefx
Date: 2008-08-14 12:09:25 -0400 (Thu, 14 Aug 2008)
New Revision: 10359
Modified:
trunk/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: trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js 2008-08-14 16:08:59 UTC (rev 10358)
+++ trunk/Open-ILS/xul/staff_client/server/circ/copy_status.js 2008-08-14 16:09:25 UTC (rev 10359)
@@ -294,7 +294,7 @@
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 = [];
More information about the open-ils-commits
mailing list