Ignore:
Timestamp:
2005-09-26T17:07:05+12:00 (19 years ago)
Author:
kjdon
Message:

made all index/gdbm db paths use indexstem instead of cluster_name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Browse.java

    r10093 r10651  
    6868
    6969    System.err.println("Configuring GS2Browse...");
     70    // the index stem is either specified in the config file or is  the collection name
     71    Element index_stem_elem = (Element) GSXML.getChildByTagName(info, GSXML.INDEX_STEM_ELEM);
     72    String index_stem = null;
     73    if (index_stem_elem != null) {
     74        index_stem = index_stem_elem.getAttribute(GSXML.NAME_ATT);
     75    }
     76    if (index_stem == null || index_stem.equals("")) {
     77        index_stem = this.cluster_name;
     78    }
     79   
    7080    // Open GDBM database for querying
    71     String gdbm_db_file = GSFile.GDBMDatabaseFile(this.site_home, this.cluster_name);
     81    String gdbm_db_file = GSFile.GDBMDatabaseFile(this.site_home, this.cluster_name, index_stem);
    7282    if (!this.gdbm_src.openDatabase(gdbm_db_file, GDBMWrapper.READER)) {
    7383        System.err.println("GS2Browse Error: Could not open GDBM database!");
Note: See TracChangeset for help on using the changeset viewer.