Changeset 4222
- Timestamp:
- 2003-05-02T11:19:38+12:00 (21 years ago)
- 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 103 103 104 104 // 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 = "";108 105 String textdir = GSFile.collectionBaseDir(site_home_, cluster_name_) + 109 106 File.separatorChar + GSFile.collectionTextPath(cluster_name_); … … 120 117 121 118 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); 123 120 doc_content = resolveImages(doc_content, doc_id); 124 121 -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/PhindPhraseBrowse.java
r3991 r4222 168 168 169 169 // 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"); 171 171 172 172 mgpp_src_.runQuery(word); … … 187 187 long last_d) { 188 188 189 String record = mgpp_src_.getDocument( "",basepath_+File.separatorChar+"pdata", "Document",189 String record = mgpp_src_.getDocument(basepath_+File.separatorChar+"pdata", "Document", 190 190 phrase); 191 191 if (record.equals("")) { … … 267 267 268 268 // 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", 270 270 phrase_num); 271 271 … … 341 341 342 342 // 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", 344 344 doc_num); 345 345 … … 397 397 398 398 // 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", 400 400 phrase_num); 401 401
Note:
See TracChangeset
for help on using the changeset viewer.