- Timestamp:
- 2005-05-16T11:02:50+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGPPRetrieve.java
r8959 r9874 21 21 // Greenstone classes 22 22 import org.greenstone.mgpp.*; 23 import org.greenstone.gsdl3.core.GSException; 23 24 import org.greenstone.gsdl3.util.GSFile; 24 25 import org.greenstone.gsdl3.util.GSXML; … … 47 48 } 48 49 50 public void cleanUp() { 51 super.cleanUp(); 52 this.mgpp_src.unloadIndexData(); 53 } 54 49 55 /** configure this service */ 50 56 public boolean configure(Element info, Element extra_info) 51 57 { 58 // Do generic configuration 59 if (!super.configure(info, extra_info)) { 60 return false; 61 } 62 52 63 // Do specific configuration 53 64 System.out.println("Configuring GS3MGPPRetrieve..."); … … 66 77 // The location of the MGPP text files 67 78 mgpp_textdir = GSFile.collectionBaseDir(this.site_home, this.cluster_name) + 68 File.separatorChar + GSFile.collectionTextPath(this. cluster_name);79 File.separatorChar + GSFile.collectionTextPath(this.index_stem); 69 80 70 // Do generic configuration 71 return super.configure(info, extra_info); 72 81 return true; 73 82 } 74 83 … … 77 86 * <nodeContent>text content or other elements</nodeContent> 78 87 */ 79 protected Element getNodeContent(String doc_id) {88 protected Element getNodeContent(String doc_id) throws GSException { 80 89 if (GS3OID.isDocTop(doc_id) && database.isHierarchicalDocument(doc_id)) { 81 90 // if we have a whole doc id, and the document is hierarchical,
Note:
See TracChangeset
for help on using the changeset viewer.