Changeset 13680


Ignore:
Timestamp:
2007-01-18T13:31:53+13:00 (17 years ago)
Author:
shaoqun
Message:

made it work in Greenstone3

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

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gems/GEMS.java

    r12758 r13680  
    131131
    132132    }
    133         new GEMS(go.gsdl_path,go.metadata_path,true,go.new_set);
     133
     134      new GEMS(go.gsdl_path,go.gsdl3_path,go.metadata_path,true,go.new_set);
     135       
    134136    }
    135137
     
    137139    /** Constructor.
    138140     */
    139     public GEMS(String gsdl_path, String metadata_path, boolean standalone, boolean new_set)
     141    public GEMS(String gsdl_path, String gsdl3_path, String metadata_path, boolean standalone, boolean new_set)
    140142    {
    141143    self = this;
    142144    JarTools.initialise(this);       
    143145    screen_size = Configuration.screen_size;
    144         msm = new MetadataSetManager(gsdl_path);       
     146        msm = new MetadataSetManager(gsdl_path,gsdl3_path);       
    145147        stand_alone = standalone;
    146148    listeners = new ArrayList();
  • trunk/gli/src/org/greenstone/gatherer/gems/MetadataSetManager.java

    r13467 r13680  
    7171
    7272    /** Constructor. */
    73     public MetadataSetManager(String gsdl_path) {
     73    public MetadataSetManager(String gsdl_path, String gsdl3_path) {
    7474        // Determine the GLI user directory path
    7575    String gli_user_directory_path = System.getProperty("user.home") + File.separator;
     
    8282        }
    8383
    84     new Configuration(gli_user_directory_path, gsdl_path, null, null, null);         
     84    new Configuration(gli_user_directory_path, gsdl_path, gsdl3_path, null, null);         
    8585    current_language = Configuration.getLanguage();
    8686
     
    375375     static public String getCollectionPath()
    376376    {
    377     return Configuration.gsdl_path + File.separator + "collect";
     377        if (Configuration.gsdl3_path != null){
     378        return Configuration.gsdl3_path + File.separator + "sites";
     379
     380    }
     381    else{
     382        return Configuration.gsdl_path + File.separator + "collect";
     383    }
    378384    }
    379385}
Note: See TracChangeset for help on using the changeset viewer.