- Timestamp:
- 2008-05-01T13:59:09+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/gsdl3/service/GS2LuceneRetrieve.java
r13916 r15326 23 23 import org.greenstone.gsdl3.util.GSFile; 24 24 import org.greenstone.gsdl3.util.GSXML; 25 import org.greenstone.gsdl3.util.GDBMWrapper;26 25 import org.greenstone.gsdl3.util.DBInfo; 27 26 import org.greenstone.gsdl3.util.GSHTML; … … 109 108 } 110 109 111 long doc_num = this.gdbm_src.OID2Docnum(doc_id);112 if (doc_num == -1) {110 String doc_num = this.coll_db.OID2Docnum(doc_id); 111 if (doc_num == null || doc_num.equals("")) { 113 112 throw new Exception("OID "+doc_id +" couldn't be converted to lucene doc num"); 114 113 } 115 114 116 DBInfo info=this. gdbm_src.getInfo(OID.getTop(doc_id));115 DBInfo info=this.coll_db.getInfo(OID.getTop(doc_id)); 117 116 if (info == null) { 118 throw new Exception("Couldn't get GDBMdatabase entry for "+OID.getTop(doc_id));117 throw new Exception("Couldn't get database entry for "+OID.getTop(doc_id)); 119 118 } 120 119 … … 136 135 current_section = full_document; 137 136 } else { 138 current_section = GSXML.getNamedElement(full_document, SEC_LEVEL, ID_ATT, String.valueOf(doc_num));137 current_section = GSXML.getNamedElement(full_document, SEC_LEVEL, ID_ATT, doc_num); 139 138 } 140 139 if (current_section == null) {
Note:
See TracChangeset
for help on using the changeset viewer.