Ignore:
Timestamp:
2008-05-29T13:29:54+12:00 (16 years ago)
Author:
oranfry
Message:

updating from trunk: brought in trunk changes from r15191 to r15785

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/branches/customizingGreenstone3/src/java/org/greenstone/gsdl3/service/GS2LuceneRetrieve.java

    r13916 r15787  
    2323import org.greenstone.gsdl3.util.GSFile;
    2424import org.greenstone.gsdl3.util.GSXML;
    25 import org.greenstone.gsdl3.util.GDBMWrapper;
    2625import org.greenstone.gsdl3.util.DBInfo;
    2726import org.greenstone.gsdl3.util.GSHTML;
     
    109108        }
    110109       
    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("")) {
    113112        throw new Exception("OID "+doc_id +" couldn't be converted to lucene doc num");
    114113        }
    115114   
    116         DBInfo info=this.gdbm_src.getInfo(OID.getTop(doc_id));
     115        DBInfo info=this.coll_db.getInfo(OID.getTop(doc_id));
    117116        if (info == null) {
    118         throw new Exception("Couldn't get GDBM database entry for "+OID.getTop(doc_id));
     117        throw new Exception("Couldn't get database entry for "+OID.getTop(doc_id));
    119118        }
    120119       
     
    136135        current_section = full_document;
    137136        } 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);
    139138        }
    140139        if (current_section == null) {
Note: See TracChangeset for help on using the changeset viewer.