- Timestamp:
- 2004-01-15T17:00:41+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGRetrieve.java
r6304 r6517 122 122 //ystem.out.println("translated id = "+doc_id); 123 123 } 124 int doc_num = this.database.OID2MGNum(doc_id); 124 if (GS3OID.isDocTop(doc_id)) { 125 System.out.println("adding the structure bit to doc id"); 126 doc_id = GS3OID.createOID(doc_id, "1"); 127 } 128 String doc_num = this.database.OID2MGNum(doc_id); 129 125 130 //long doc_num = this.gdbm_src.oid2Docnum(doc_id); 126 //ystem.out.println("mg doc num = "+doc_num); 131 System.out.println("mg doc num = "+doc_num); 132 // doc nums have the index prefixed 133 doc_num = doc_num.substring(doc_num.indexOf(".")+1); 134 int doc_int = Integer.parseInt(doc_num); 135 System.out.println("actual mg doc num="+doc_int); 127 136 String doc_content = ""; 128 137 try { 129 doc_content = this.mg_src.getDocument(basedir, textdir, doc_ num);138 doc_content = this.mg_src.getDocument(basedir, textdir, doc_int); 130 139 } catch (Exception e) { 131 140 System.out.println("exception happended with mg_src.getDocument()"); 132 doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_ num+"\n";141 doc_content = "this is the content for section hash id "+ doc_id+", mg doc num "+doc_int+"\n"; 133 142 } 134 143 //ystem.out.println("Doc content: " + doc_content + "|");
Note:
See TracChangeset
for help on using the changeset viewer.