Changeset 21880

Show
Ignore:
Timestamp:
14.04.2010 13:14:39 (10 years ago)
Author:
kjdon
Message:

add in greenstone metadata set by default to a new collection

Files:
1 modified

Legend:

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

    r21549 r21880  
    17411741 
    17421742    /** I started giving the user the choice of using an existing meta set or creating a new one. The second option being so that they didn't have to add/merge/ignore each element, they could all be added automatically. However, I am not sure where the merge prompt gets called from, and it is not essential, so I am leaving it for now - it should be added back in and finished. [kjdon] */ 
     1743  // now add in greenstone metadata set too. 
    17431744    private void addDefaultMetadataSets() 
    17441745    { 
     
    17481749    if (dc_file.exists()) { 
    17491750        importMetadataSet(new MetadataSet(dc_file)); 
     1751    } 
     1752    File gs_file = new File(Gatherer.getGLIMetadataDirectoryPath()+"greenstone.mds"); 
     1753    if (gs_file.exists()) { 
     1754        importMetadataSet(new MetadataSet(gs_file)); 
    17501755    } 
    17511756    }