- Timestamp:
- 2017-02-08T19:08:39+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/colservr/filter.cpp
r31387 r31388 61 61 } 62 62 63 text_t filterclass::getcollectionpath()64 {65 text_t resolved_filename;66 67 if (gsdlhome==dbhome) {68 // dbhome has defaulted to gsdlhome which we take to means the69 // database has been specifically moved out of gsdlhome area.70 // => it should be whereever collecthome is set to71 resolved_filename = filename_cat(collecthome, collection);72 }73 else {74 // dbhome is explicitly set to something other than gsdlhome75 // => use dbhome76 resolved_filename = filename_cat(dbhome, "collect", collection);77 }78 79 return resolved_filename;80 }81 82 text_t filterclass::resolve_db_filename(const text_t& idx,83 const text_t& file_ext)84 {85 /*86 text_t resolved_filename;87 88 if (gsdlhome==dbhome) {89 // dbhome has defaulted to gsdlhome which we take to means the90 // database has been specifically moved out of gsdlhome area.91 // => it should be whereever collecthome is set to92 resolved_filename = filename_cat(collecthome, collection, "index", "text", idx);93 }94 else {95 // dbhome is explicitly set to something other than gsdlhome96 // => use dbhome97 resolved_filename = filename_cat(dbhome, "collect", collection, "index", "text", idx);98 }99 */100 101 text_t resolved_filename = filename_cat(getcollectionpath(), "index", "text", idx);102 resolved_filename += file_ext;103 104 return resolved_filename;105 }106 107 text_t filterclass::resolve_oaidb_filename(const text_t& file_ext)108 {109 text_t resolved_filename = filename_cat(getcollectionpath(), "etc", "oai-inf");110 111 resolved_filename += file_ext;112 113 return resolved_filename;114 }115 116 63 117 64 // init should be called after all the configuration is done but
Note:
See TracChangeset
for help on using the changeset viewer.