Changeset 13820


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

added code to pass the skimfile switch to MetadataXMLFileManager

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r13736 r13820  
    962962        }
    963963
    964         MetadataSetManager.clearMetadataSets();
     964            MetadataSetManager.clearMetadataSets();
    965965        MetadataSetManager.loadMetadataSets(collection_metadata_directory);
    966966
     
    980980        // Read through the metadata.xml files in the import directory, building up the metadata value trees
    981981        MetadataXMLFileManager.clearMetadataXMLFiles();
    982         MetadataXMLFileManager.loadMetadataXMLFiles(collection_import_directory);
     982        MetadataXMLFileManager.loadMetadataXMLFiles(collection_import_directory,collection.toSkimFile());
    983983
    984984        // Read through the doc.xml files in the archives directory
  • trunk/gli/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java

    r13748 r13820  
    4646import org.greenstone.gatherer.collection.CollectionManager;
    4747import org.greenstone.gatherer.collection.ScriptOptions;
     48import org.greenstone.gatherer.collection.Collection;
    4849import org.greenstone.gatherer.greenstone.LocalGreenstone;
    4950import org.greenstone.gatherer.gui.tree.DragTree;
     
    348349
    349350        // Load the new metadata.xml files
    350         MetadataXMLFileManager.loadMetadataXMLFiles(metadata_file.getParentFile());
     351                Collection collection = Gatherer.c_man.getCollection();
     352                MetadataXMLFileManager.loadMetadataXMLFiles(metadata_file.getParentFile(),collection.toSkimFile());
    351353        Gatherer.g_man.refreshCollectionTree(DragTree.COLLECTION_CONTENTS_CHANGED);
    352354        resultPrompt(true, error_message.toString());
Note: See TracChangeset for help on using the changeset viewer.