Changeset 1759 for trunk/gsdl/src/recpt/pageaction.cpp
- Timestamp:
- 2000-12-07T13:06:32+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r1667 r1759 31 31 pageaction::pageaction () { 32 32 33 status_disabled = true; 34 collector_disabled = true; 33 35 recpt = NULL; 34 36 … … 97 99 bool first = true; 98 100 while (collist_here != collist_end) { 99 100 101 ColInfoResponse_t *cinfo = recpt->get_collectinfo_ptr ((*rprotolist_here).p, *collist_here, logout); 101 102 … … 117 118 118 119 if (!response.docInfo[0].metadata["iconcollectionsmall"].values[0].empty()) 119 120 121 120 collectionname = "<img width=150 border=1 src=\"" 121 + response.docInfo[0].metadata["iconcollectionsmall"].values[0] 122 + "\" alt=\"" + alt + "\">"; 122 123 else if (!response.docInfo[0].metadata["iconcollection"].values[0].empty()) 123 124 collectionname = "<img width=150 border=1 src=\"" … … 126 127 else collectionname = alt; 127 128 } 128 129 129 if ((count%3 == 0) && (!first)) 130 130 homeextra += "</tr><tr valign=top>\n"; … … 145 145 } 146 146 } 147 148 147 collist_here ++; 149 148 } … … 162 161 homeextra += "</tr></table></center>\n"; 163 162 disp.setmacro ("homeextra", "home", homeextra); 164 165 163 } 166 164 … … 208 206 // _textreadingdocs_ collection it is (e.g. html collection, bibliographic collection etc.) 209 207 // _texthelpreadingdocs_ 208 209 // _textgocollector_ set to "" if collector is disabled in main.cfg 210 // _textgoadmin_ set to "" if status is disabled in main.cfg 210 211 211 212 … … 231 232 } 232 233 233 if (arg_p == "home") set_homeextra_macro (disp, protos, logout); 234 if (arg_p == "home") { 235 set_homeextra_macro (disp, protos, logout); 236 if (status_disabled) disp.setmacro ("textgoadmin", "home", ""); 237 if (collector_disabled) disp.setmacro ("textgocollector", "home", ""); 238 } 234 239 235 240 else if (arg_p == "preferences") { … … 433 438 return true; 434 439 } 440 441 void pageaction::configure (const text_t &key, const text_tarray &cfgline) { 442 if ((key == "status") && (cfgline.size() == 1) && 443 (cfgline[0] == "true" || cfgline[0] == "on" || cfgline[0] == "enabled")) { 444 status_disabled = false; 445 } else if ((key == "collector") && (cfgline.size() == 1) && 446 (cfgline[0] == "true" || cfgline[0] == "on" || cfgline[0] == "enabled")) { 447 collector_disabled = false; 448 } else { 449 // call the parent class to deal with the things which 450 // are not dealt with here 451 action::configure (key, cfgline); 452 } 453 }
Note:
See TracChangeset
for help on using the changeset viewer.