Changeset 19611 for gsdl/trunk/runtime-src/src/z3950
- Timestamp:
- 2009-05-27T11:45:40+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/z3950/z3950_to_gsdl.cpp
r15498 r19611 212 212 // read in the cfg file for Bib1_to_DCES 213 213 text_t col_filename = gsdlhome; 214 col_filename.appendcstr("/collect/"); 215 col_filename.append(collectionName); 216 col_filename.appendcstr("/etc/bib1_to_dces.cfg"); 214 col_filename = filename_cat(gsdlhome, "collect", collectionName, "etc", "bib1-mapping.txt"); 217 215 218 216 if (!bib1_to_dc_mapping(col_filename)) { 219 text_t site_filename = gsdlhome; 220 site_filename.appendcstr("/etc/bib1_to_dces.cfg"); 217 text_t site_filename = filename_cat(gsdlhome, "etc", "packages", "z3950", "bib1-mapping.txt"); 221 218 222 219 if (!bib1_to_dc_mapping(site_filename)) { 223 cerr << "Unable to find bib1 ->dublin core mapping for "220 cerr << "Unable to find bib1 attribute mapping for " 224 221 << collectionName << endl; 225 222 cerr << "Looked for:\n " << col_filename << "\n " … … 231 228 232 229 // read in the cfg file for mapping Dublin Core to Short (internal name) 233 text_t build_filename = gsdlhome; 234 build_filename.appendcstr("/collect/"); 235 build_filename.append(collectionName); 236 build_filename.appendcstr("/index/build.cfg"); 230 text_t build_filename = filename_cat(gsdlhome, "collect", collectionName, "index", "build.cfg"); 237 231 238 232 if (!dc_to_short_mapping(build_filename,collectionName)) { … … 274 268 this->gsdlhome = home; 275 269 //cerr << gsdlhome.getcstr() << endl; 276 dirname = filename_cat(gsdlhome, " /collect");270 dirname = filename_cat(gsdlhome, "collect"); 277 271 cdirname = dirname.getcstr(); 278 272 if (!read_dir (cdirname, collections)) { … … 295 289 comerror_t error = noError; 296 290 297 this->openLogfile("/etc/z3950out.txt", logout); 291 // openLogfile does a filename_cat with this path, changing 292 // the / appropriately. 293 this->openLogfile("/etc/packages/z3950/z3950out.txt", logout); 298 294 reply = protocol->init(error, logout); 299 295 logout.close();
Note:
See TracChangeset
for help on using the changeset viewer.