[open-ils-commits] r16891 - trunk/Open-ILS/web/js/dojo/MARC (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 8 15:31:55 EDT 2010
Author: miker
Date: 2010-07-08 15:31:50 -0400 (Thu, 08 Jul 2010)
New Revision: 16891
Modified:
trunk/Open-ILS/web/js/dojo/MARC/Record.js
Log:
fix initial subfield detection bug
Modified: trunk/Open-ILS/web/js/dojo/MARC/Record.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/MARC/Record.js 2010-07-08 18:36:26 UTC (rev 16890)
+++ trunk/Open-ILS/web/js/dojo/MARC/Record.js 2010-07-08 19:31:50 UTC (rev 16891)
@@ -250,8 +250,7 @@
}
} 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();
More information about the open-ils-commits
mailing list