Project

General

Profile

« Previous | Next » 

Revision 1547

Added by Jing Tao over 21 years ago

Fixed bug for storing access section.

View differences:

src/edu/ucsb/nceas/metacat/EmlSAXHandler.java
304 304
       {
305 305
        // stored the pull out nodes into storedNode stack
306 306
        NodeRecord nodeElement = new NodeRecord(-2, -2, -2, "TEXT", 
307
                                             null, null, textBuffer.toString());
307
                      null, null, MetaCatUtil.normalize(textBuffer.toString()));
308 308
        storedAccessNodeStack.push(nodeElement);
309 309
                                         
310 310
      }
......
574 574
       
575 575
    }
576 576
    
577
    // store access module element and attributes into stored stack
577 578
    if (needCheckingAccessModule && 
578 579
       (processAdditionalAccess || processOtherAccess || processTopLeverAccess))
579 580
    {
580 581
       // stored the pull out nodes into storedNode stack
581 582
       NodeRecord nodeElement = new NodeRecord(-2, -2, -2, "ELEMENT", 
582
                                               localName, prefix, null);
583
                                localName, prefix, MetaCatUtil.normalize(null));
583 584
       storedAccessNodeStack.push(nodeElement);
584 585
       for (int i=0; i<atts.getLength(); i++) 
585 586
       {
586 587
         String attributeName = atts.getQName(i);
587 588
         String attributeValue = atts.getValue(i);
588 589
         NodeRecord nodeAttribute = new NodeRecord(-2, -2, -2, "ATTRIBUTE",
589
                                       attributeName, null, attributeValue);
590
                    attributeName, null, MetaCatUtil.normalize(attributeValue));
590 591
         storedAccessNodeStack.push(nodeAttribute);
591 592
       }
592 593
                                   
......
910 911
       {
911 912
        // stored the pull out nodes into storedNode stack
912 913
        NodeRecord nodeElement = new NodeRecord(-2, -2, -2, "TEXT", 
913
                                             null, null, textBuffer.toString());
914
                      null, null, MetaCatUtil.normalize(textBuffer.toString()));
914 915
        storedAccessNodeStack.push(nodeElement);
915 916
                                         
916 917
      }
......
1058 1059
       {
1059 1060
        // stored the pull out nodes into storedNode stack
1060 1061
        NodeRecord nodeElement = new NodeRecord(-2, -2, -2, "COMMENT", 
1061
                                                null, null, str);
1062
                                        null, null, MetaCatUtil.normalize(str));
1062 1063
        storedAccessNodeStack.push(nodeElement);
1063 1064
                                         
1064 1065
      }
......
1161 1162
       {
1162 1163
        // stored the pull out nodes into storedNode stack
1163 1164
        NodeRecord nodeElement = new NodeRecord(-2, -2, -2, "TEXT", 
1164
                                               null, null, data);
1165
                                     null, null, MetaCatUtil.normalize(data));
1165 1166
        storedAccessNodeStack.push(nodeElement);
1166 1167
                                         
1167 1168
       }

Also available in: Unified diff