Changeset 4222


Ignore:
Timestamp:
2003-05-02T11:19:38+12:00 (21 years ago)
Author:
kjdon
Message:

MGPPWrapper methods getDocument and loadIndexData no longer take basepath arg

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/service
Files:
2 edited

Legend:

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

    r3990 r4222  
    103103
    104104    // The location of the MGPP text files
    105     // String basedir = GSFile.collectionBaseDir(site_home_, cluster_name_);
    106     // String textdir = GSFile.collectionTextPath(cluster_name_);
    107     String basedir = "";
    108105    String textdir = GSFile.collectionBaseDir(site_home_, cluster_name_) +
    109106        File.separatorChar + GSFile.collectionTextPath(cluster_name_);
     
    120117
    121118        long doc_num = gdbm_src_.oid2Docnum(doc_id);
    122         String doc_content = mgpp_src_.getDocument(basedir, textdir, default_level_, doc_num);
     119        String doc_content = mgpp_src_.getDocument(textdir, default_level_, doc_num);
    123120        doc_content = resolveImages(doc_content, doc_id);
    124121
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/PhindPhraseBrowse.java

    r3991 r4222  
    168168
    169169    // set the mgpp index data - we are looking up pword
    170     mgpp_src_.loadIndexData("", basepath_+File.separatorChar+"pword");
     170    mgpp_src_.loadIndexData(basepath_+File.separatorChar+"pword");
    171171
    172172    mgpp_src_.runQuery(word);
     
    187187                    long last_d) {
    188188
    189     String record = mgpp_src_.getDocument("", basepath_+File.separatorChar+"pdata", "Document",
     189    String record = mgpp_src_.getDocument(basepath_+File.separatorChar+"pdata", "Document",
    190190                          phrase);
    191191    if (record.equals("")) {
     
    267267   
    268268    // look up the phrase in the pdata thingy
    269     String record = mgpp_src_.getDocument("", basepath_+File.separatorChar+"pdata", "Document",
     269    String record = mgpp_src_.getDocument(basepath_+File.separatorChar+"pdata", "Document",
    270270                          phrase_num);
    271271
     
    341341   
    342342    // look up the phrase in the docs thingy
    343     String record = mgpp_src_.getDocument("", basepath_+File.separatorChar+"docs", "Document",
     343    String record = mgpp_src_.getDocument(basepath_+File.separatorChar+"docs", "Document",
    344344                          doc_num);
    345345   
     
    397397
    398398    // look up the phrase in the pdata thingy
    399     String record = mgpp_src_.getDocument("", basepath_+File.separatorChar+"pdata", "Document",
     399    String record = mgpp_src_.getDocument(basepath_+File.separatorChar+"pdata", "Document",
    400400                          phrase_num);
    401401
Note: See TracChangeset for help on using the changeset viewer.