From: senator Date: Thu, 20 Jan 2011 23:05:39 +0000 (+0000) Subject: Acq: the "Load Catalog Record IDs" interface failed on files produced in X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=392c4db1ee8b9acb650e07e8f1ff69ed02357bc0;p=evergreen%2Fbjwebb.git Acq: the "Load Catalog Record IDs" interface failed on files produced in Windows due to not stripping out carriage returns. Fixed. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19241 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js b/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js index 09271296d..db49e089b 100644 --- a/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js +++ b/Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js @@ -101,7 +101,7 @@ if (!dojo._hasResource["openils.widget.XULTermLoader"]) { if (!data) return []; else return data.split("\n"). filter(function(o) { return o.length > 0; }). - map(function(o) { return o.split(",")[0] }). + map(function(o) {return o.replace("\r","").split(",")[0];}). filter(function(o) { return o.length > 0; }); } }