Acq: the "Load Catalog Record IDs" interface failed on files produced in
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Jan 2011 23:05:39 +0000 (23:05 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 20 Jan 2011 23:05:39 +0000 (23:05 +0000)
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

Open-ILS/web/js/dojo/openils/widget/XULTermLoader.js

index 0927129..db49e08 100644 (file)
@@ -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; });
             }
         }