- Timestamp:
- 2005-09-26T17:07:05+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Browse.java
r10093 r10651 68 68 69 69 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 70 80 // 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); 72 82 if (!this.gdbm_src.openDatabase(gdbm_db_file, GDBMWrapper.READER)) { 73 83 System.err.println("GS2Browse Error: Could not open GDBM database!");
Note:
See TracChangeset
for help on using the changeset viewer.