JSON numbers
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 25 Aug 2005 18:49:53 +0000 (18:49 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 25 Aug 2005 18:49:53 +0000 (18:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1737 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/cat/marc.js

index a151807..13787a2 100644 (file)
@@ -173,9 +173,9 @@ function build_grid( ctrl_rows, data_rows, root ) {
                var node_type = node.node_type();
                var row = {};
                switch(node_type) {
-                       case '18': /* namespace */ 
+                       case 18: case '18': /* namespace */ 
                                break;
-                       case '1': /* element */
+                       case 1: case '1': /* element */
                                row = get_row(node);
                                switch(row.type) {
                                        case 'leader': case 'controlfield':
@@ -232,9 +232,9 @@ function get_row( top ) {
                var node_id = node.intra_doc_id();
                var node_children = node.children();
                switch(node_type) {
-                       case '18': /* namespace */ 
+                       case 18: case '18': /* namespace */ 
                                continue top_loop;
-                       case '2': /* attribute */ 
+                       case 2: case '2': /* attribute */ 
                                switch(node_name) {
                                        case 'tag':
                                                row.tag.value = node_value;
@@ -255,7 +255,7 @@ function get_row( top ) {
                                                break;
                                }
                                break;
-                       case '1': /* element */
+                       case 1: case '1': /* element */
                                switch(node_name) {
                                        case 'subfield':
                                                row.data.value = row.data.value + 
@@ -271,7 +271,7 @@ function get_row( top ) {
                                                break;
                                }
                                break;
-                       case '3': /* textNode */
+                       case 3: case '3': /* textNode */
                                row.data.value = node_value;
                                row.data.id = node_id;
                                break;