Changeset 14000
- Timestamp:
- 2007-04-02T12:30:26+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2MGRetrieve.java
r13911 r14000 43 43 private static final String INDEX_LIST_ELEM = "indexList"; 44 44 private static final String INDEX_ELEM = "index"; 45 45 private static final String DEFAULT_INDEX_SUBCOLLECTION_ELEM = "defaultIndexSubcollection"; 46 private static final String DEFAULT_INDEX_LANGUAGE_ELEM = "defaultIndexLanguage"; 47 46 48 private MGWrapper mg_src = null; 47 49 private String mg_basedir = null; … … 74 76 this.default_index = def.getAttribute(GSXML.SHORTNAME_ATT); 75 77 } 78 Element defSub = (Element) GSXML.getChildByTagName(info, DEFAULT_INDEX_SUBCOLLECTION_ELEM); 79 if (defSub != null) { 80 this.default_index += defSub.getAttribute(GSXML.SHORTNAME_ATT); 81 logger.info("default indexSubcollection is "+defSub.getAttribute(GSXML.SHORTNAME_ATT)); 82 } //concate defaultIndex + defaultIndexSubcollection 83 84 //get the default indexLanguage out of <defaultIndexLanguage> (buildConfig.xml) 85 Element defLang = (Element) GSXML.getChildByTagName(info, DEFAULT_INDEX_LANGUAGE_ELEM); 86 if (defLang != null) { 87 this.default_index += defLang.getAttribute(GSXML.SHORTNAME_ATT); 88 logger.info("default indexLanguage is "+defLang.getAttribute(GSXML.SHORTNAME_ATT)); 89 } //concate defaultIndex + defaultIndexSubcollection + defaultIndexLanguage 90 91 76 92 if (this.default_index == null || this.default_index.equals("")) { 77 93 logger.error("default index is not specified, the content of a document will not be retrieved"); … … 107 123 String doc_content = null; 108 124 125 //means that this.mg_src is up and running 109 126 if (has_default_index ){ 110 127 doc_content = this.mg_src.getDocument(this.mg_basedir,
Note:
See TracChangeset
for help on using the changeset viewer.