- Timestamp:
- 2017-02-08T18:31:18+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/colservr/filter.cpp
r16310 r31387 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 the 69 // database has been specifically moved out of gsdlhome area. 70 // => it should be whereever collecthome is set to 71 resolved_filename = filename_cat(collecthome, collection); 72 } 73 else { 74 // dbhome is explicitly set to something other than gsdlhome 75 // => use dbhome 76 resolved_filename = filename_cat(dbhome, "collect", collection); 77 } 78 79 return resolved_filename; 80 } 81 63 82 text_t filterclass::resolve_db_filename(const text_t& idx, 64 83 const text_t& file_ext) 65 84 { 85 /* 66 86 text_t resolved_filename; 67 87 … … 77 97 resolved_filename = filename_cat(dbhome, "collect", collection, "index", "text", idx); 78 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"); 79 110 80 111 resolved_filename += file_ext;
Note:
See TracChangeset
for help on using the changeset viewer.