Changeset 13817


Ignore:
Timestamp:
2007-01-26T12:22:29+13:00 (17 years ago)
Author:
shaoqun
Message:

added unknown elements to metadata set because the user might disable skimfile in collection's .col file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/metadata/MetadataXMLFile.java

    r13706 r13817  
    6666        // Parse the metadata.xml file
    6767        Document document = XMLTools.parseXMLFile(this);
    68         if (document == null) {
     68            if (document == null) {
    6969        System.err.println("Error: Could not parse metadata.xml file " + getAbsolutePath());
    7070        return;
     
    195195        // Parse the metadata.xml file
    196196        Document document = XMLTools.parseXMLFile(this);
    197         if (document == null) {
     197              if (document == null) {
    198198        System.err.println("Error: Could not parse metadata.xml file " + getAbsolutePath());
    199199        return new ArrayList();
     
    285285        MetadataElement metadata_element = MetadataTools.getMetadataElementWithName(metadata_element_name_full);
    286286
     287                String metadata_element_name = MetadataTools.getMetadataElementName(metadata_element_name_full);
    287288        // If the element doesn't exist in the metadata set, we're not interested
     289                //Shaoqun modified. It needs to be added to metadata_set because the user might disable skim file   
    288290        if (metadata_element == null) {
    289             continue;
     291            metadata_element = metadata_set.addMetadataElementForThisSession(metadata_element_name);
     292            // continue;
    290293        }
    291294
     
    564567    // Parse the metadata.xml file
    565568    DebugStream.println("Skimming metadata.xml file " + this + "...");
     569           
    566570    Document document = XMLTools.parseXMLFile(this);
    567571    if (document == null) {
Note: See TracChangeset for help on using the changeset viewer.