Ignore:
Timestamp:
2009-09-28T16:10:57+13:00 (15 years ago)
Author:
kjdon
Message:

now we are using gs2:docOID to find the right section in a document xml file, instead of gs2:id. gs2:id was stored as docnum in the database. when getting the section, gs2:docOID will be the same as the greenstone OID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/colservr/lucenesource.cpp

    r15594 r20730  
    7474    return false; // true??
    7575  }
    76   int docnum = info["docnum"].getint();
    7776
    7877  // get the parent id
     
    9089  doc.clear();
    9190  db_ptr->closedatabase();  // Important that local library doesn't leave any files open
    92   expat_document(full_path_to_doc, ((lucenesearchclass*)textsearchptr)->textlevel, text_t(docnum), doc);
     91  expat_document(full_path_to_doc, ((lucenesearchclass*)textsearchptr)->textlevel, tOID, doc);
    9392  return true;
    9493}
Note: See TracChangeset for help on using the changeset viewer.