addressing two Breaker-format issues: 1) supply an "empty" (space) value for indicato...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Dec 2010 02:14:46 +0000 (02:14 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Dec 2010 02:14:46 +0000 (02:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@19050 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 8783928..1cc3422 100644 (file)
@@ -23,8 +23,8 @@ if(!dojo._hasResource["MARC.Field"]) {
         error : false, // MARC record pointer
         record : null, // MARC record pointer
         tag : '', // MARC tag
-        ind1 : '', // MARC indicator 1
-        ind2 : '', // MARC indicator 2
+        ind1 : ' ', // MARC indicator 1
+        ind2 : ' ', // MARC indicator 2
         data : '', // MARC data for a controlfield element
         subfields : [], // list of MARC subfields for a datafield element
 
index 1f2e51a..a55bb77 100644 (file)
@@ -255,6 +255,9 @@ if(!dojo._hasResource["MARC.Record"]) {
                         );
                     }
                 } else {
+                    if (current_line.substring(4,5) == me.delimiter) // add delimiters if they were left out
+                        current_line = current_line.substring(0,3) + '\\\\' + current_line.substring(4);
+
                     var data = df_line_data(current_line);
                     if (!(data.substring(0,1) == me.delimiter)) data = me.delimiter + 'a' + data;