Ignore:
Timestamp:
2006-12-01T14:23:45+13:00 (17 years ago)
Author:
mdewsnip
Message:

Tidied up default metadata sets and added a "addRequiredMetadataSets" function so the extracted metadata set is always loaded when creating or loading a collection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r13393 r13399  
    745745        // Create the collection details prompt from new collection prompt
    746746        NewCollectionDetailsPrompt ncd_prompt = new NewCollectionDetailsPrompt();
    747         // dc metadata set is the default
    748         ArrayList metadata_sets  = new ArrayList();
    749         File dc_file = new File(Gatherer.getGLIMetadataDirectoryPath()+"dublin.mds");
    750         if (dc_file.exists()) {
    751         metadata_sets.add(new MetadataSet(dc_file));
    752         }
     747
    753748        // Create the new collection (if not cancelled) in a new thread.
    754749        if (!ncd_prompt.isCancelled()) {
     
    759754       
    760755        // Create new collection.
    761         Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Configuration.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), ncd_prompt.getBase(), metadata_sets);
     756        Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Configuration.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), ncd_prompt.getBase(), new ArrayList());
    762757        ncd_prompt.dispose();
    763758        }
Note: See TracChangeset for help on using the changeset viewer.