Changeset 13982 for trunk/gsdl/src
- Timestamp:
- 2007-03-15T13:21:55+13:00 (17 years ago)
- Location:
- trunk/gsdl/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/collectserver.cpp
r12867 r13982 61 61 // configure should be called for each line in the 62 62 // configuration files to configure the collection server and everything 63 // it contains. The configuration should take place just before initialisation .63 // it contains. The configuration should take place just before initialisationhttps://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%3Fui%3Dhtml%26zy%3Dl<mpl=ca_tlsosm_video<mplcache=2&hl=en. 64 64 void collectserver::configure (const text_t &key, const text_tarray &cfgline) { 65 65 if (cfgline.size() >= 1) { 66 66 const text_t &value = cfgline[0]; 67 if (key == "gsdlhome") configinfo.gsdlhome = value; 67 if (key == "plugin") 68 { 69 //get the plugin name 70 const text_t &name = cfgline[0]; 71 72 if (name == "HTMLPlug") 73 { 74 for (int hI = 1; hI < cfgline.size(); hI++) 75 { 76 const text_t &plugOption = cfgline[hI]; 77 78 if (plugOption == "-tidy_html") 79 { 80 collectinfo.useBook = true; 81 break; 82 } 83 } 84 } 85 } 86 else if (key == "gsdlhome") configinfo.gsdlhome = value; 68 87 else if (key == "gdbmhome") configinfo.gdbmhome = value; 69 88 else if (key == "collection") { … … 143 162 text_tmap params_map = collectinfo.collection_macros[meta_name]; 144 163 145 if (cfgline.size() == 2) {// no params for this macro 164 if (cfgline.size() == 2) {// no params for this macrohttp://uk.sports.yahoo.com/13032007/13/news-brief.html 146 165 params_map[g_EmptyText] = cfgline[1]; 147 166 } -
trunk/gsdl/src/colservr/corbaServer.mpp
r8186 r13982 268 268 cout << "NumBytes = " << response.numBytes << endl; 269 269 cout << "NumWords = " << response.numWords << endl; 270 270 cout << "UseBook = " << ((response.useBook) ?"True":"False") << endl; 271 272 corbaResponse.useBook = response.useBook; 271 273 corbaResponse.isPublic = response.isPublic; 272 274 corbaResponse.isBeta = response.isBeta; -
trunk/gsdl/src/colservr/z3950explain.cpp
r10437 r13982 101 101 docinfo.metadata["isBeta"].values.push_back("false"); 102 102 } 103 if (collectinfo.useBook == true) { 104 docinfo.metadata["useBook"].values.push_back("true"); 105 } else { 106 docinfo.metadata["useBook"].values.push_back("false"); 107 } 103 108 docinfo.metadata["buildDate"].values.push_back(collectinfo.buildDate); 104 109 text_tarray::iterator TEXTT_HERE = collectinfo.ccsCols.begin(); -
trunk/gsdl/src/recpt/comtypes.cpp
r12863 r13982 51 51 void ColInfoResponse_t::clear () { 52 52 shortInfo.clear(); 53 useBook=false; 53 54 isPublic=true; 54 55 isBeta=false; -
trunk/gsdl/src/recpt/comtypes.h
r12863 r13982 84 84 85 85 ShortColInfo_t shortInfo; 86 bool useBook; //whether we want to display the book 86 87 bool isPublic; 87 88 bool isBeta; -
trunk/gsdl/src/recpt/corbaproto.mpp
r2261 r13982 582 582 583 583 // convert the response back to normal form 584 collectinfo.useBook = corbaCollectInfo.useBook; 584 585 collectinfo.isPublic = corbaCollectInfo.isPublic; 585 586 collectinfo.isBeta = corbaCollectInfo.isBeta; -
trunk/gsdl/src/recpt/pageaction.cpp
r13967 r13982 638 638 cinfo = recpt->get_collectinfo_ptr (collectproto, arg_c, logout); 639 639 640 //set the tidyoption 641 if (cinfo->useBook == false) 642 { 643 disp.setmacro ("tidyoption", displayclass::defaultpackage, "untidy"); 644 } 645 else 646 { 647 disp.setmacro ("tidyoption", displayclass::defaultpackage, "tidy"); 648 } 649 640 650 disp.setmacro ("numdocs", displayclass::defaultpackage, cinfo->numDocs); 641 651 disp.setmacro ("numsections", displayclass::defaultpackage, cinfo->numSections);
Note:
See TracChangeset
for help on using the changeset viewer.