Ignore:
Timestamp:
2008-08-26T17:23:26+12:00 (16 years ago)
Author:
davidb
Message:

Generalisation of skimming doc.xml files to find extracted metadata. Can now read docmets.xml files in export folder instead of doc.xml in archives folder.

File:
1 edited

Legend:

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

    r16987 r17009  
    13151315
    13161316        // Read through the doc.xml files in the archives directory
    1317         File collection_archives_directory = new File(getLoadedCollectionArchivesDirectoryPath());
     1317
    13181318        DocXMLFileManager.clearDocXMLFiles();
    1319         DocXMLFileManager.loadDocXMLFiles(collection_archives_directory);
     1319
     1320        if (Configuration.fedora_info.isActive()) { // FLI case
     1321        File collection_export_directory = new File(getLoadedCollectionExportDirectoryPath());
     1322        DocXMLFileManager.loadDocXMLFiles(collection_export_directory,"docmets.xml");
     1323        }
     1324        else {
     1325        File collection_archives_directory = new File(getLoadedCollectionArchivesDirectoryPath());
     1326        DocXMLFileManager.loadDocXMLFiles(collection_archives_directory,"doc.xml");
     1327        }
     1328
    13201329
    13211330        // Get a list of the collection specific classifiers and plugins
     
    13581367     * more situations. */
    13591368    public static boolean canDoScheduling() {
     1369    // Would be nice to support more of these, rather than returning false
    13601370    if(Gatherer.isGsdlRemote) {
    13611371        return false;
    13621372    }
    13631373    if(Gatherer.GS3) {
     1374        return false;
     1375    }
     1376    if (Configuration.fedora_info.isActive()) {
    13641377        return false;
    13651378    }
Note: See TracChangeset for help on using the changeset viewer.