fix initial subfield detection bug
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Jul 2010 19:31:50 +0000 (19:31 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Jul 2010 19:31:50 +0000 (19:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16891 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/MARC/Record.js

index 3daa426..635015f 100644 (file)
@@ -250,8 +250,7 @@ if(!dojo._hasResource["MARC.Record"]) {
                     }
                 } else {
                     var data = df_line_data(current_line);
-                    var start_delim = new RegExp( '^' + me.delimiter );
-                    if (!data.match( start_delim )) data = me.delimiter + 'a' + data;
+                    if (!(data.substring(0,1) == me.delimiter)) data = me.delimiter + 'a' + data;
 
                     var sf_list = data.split(me.delimiter);
                     sf_list.shift();