From b47c08998dbaeb88b8a6e1307d3b64b87095d908 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 8 Jul 2010 19:31:50 +0000 Subject: [PATCH] fix initial subfield detection bug git-svn-id: svn://svn.open-ils.org/ILS/trunk@16891 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/MARC/Record.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/MARC/Record.js b/Open-ILS/web/js/dojo/MARC/Record.js index 3daa42662..635015f28 100644 --- a/Open-ILS/web/js/dojo/MARC/Record.js +++ b/Open-ILS/web/js/dojo/MARC/Record.js @@ -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(); -- 2.11.0