Ignore:
Timestamp:
2004-11-03T14:46:37+13:00 (20 years ago)
Author:
kjdon
Message:

when creating doc nodes, now we choose hierarchy or simple based on whether there is a section structure in the database. we used to always change doc ids that matched the whole structure to be the first section id, eg 20041102:1 to 20041102:1-1. this is now only done for hierarchical docs, not for simple docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGSearch.java

    r7312 r8439  
    144144        // hack !!!
    145145        if (doc_id.endsWith("-All")) {
    146         System.err.print("replacing doc id "+doc_id+" with ");
    147         doc_id=doc_id.replaceAll("All","1");
    148         System.err.println(doc_id);
     146        // get rid of the All bit
     147        doc_id = doc_id.substring(0,doc_id.length()-4);
     148        //doc_id=doc_id.replaceAll("All","1");
    149149        }
    150150       
    151         //String doc_id = this.gdbm_src.docnum2Oid(docnum);
    152151        Element doc_node = createDocumentNodeElement(doc_id);
    153152        document_list.appendChild(doc_node);
Note: See TracChangeset for help on using the changeset viewer.