- 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/GS3MGRetrieve.java
r9001 r9874 21 21 // Greenstone classes 22 22 import org.greenstone.mg.*; 23 import org.greenstone.gsdl3.core.GSException; 23 24 import org.greenstone.gsdl3.util.GSFile; 24 25 import org.greenstone.gsdl3.util.GSXML; … … 42 43 private String mg_textdir = null; 43 44 private String default_index = null; 45 44 46 public GS3MGRetrieve() { 45 47 this.mg_src = new MGWrapper(); 48 } 49 50 public void cleanUp() { 51 super.cleanUp(); 52 this.mg_src.unloadIndexData(); 46 53 } 47 54 … … 86 93 * <nodeContent>text content or other elements</nodeContent> 87 94 */ 88 protected Element getNodeContent(String doc_id) {95 protected Element getNodeContent(String doc_id) throws GSException { 89 96 90 97 if (GS3OID.isDocTop(doc_id) && database.isHierarchicalDocument(doc_id)) { … … 111 118 } catch (Exception e) { 112 119 System.out.println("exception happended with mg_src.getDocument()"); 113 doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_int+"\n"; 120 throw new GSException("Couldn't get document content for id: "+ doc_int+"\n"+e.getMessage()); 121 //doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_int+"\n"; 114 122 } 115 123
Note:
See TracChangeset
for help on using the changeset viewer.