Changeset 10873 for trunk/gsdl/src/recpt/pageaction.cpp
- Timestamp:
- 2005-11-08T17:30:57+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r9931 r10873 177 177 if (cinfo->isPublic && (cinfo->buildDate > 0)) { 178 178 179 text_t coll_type = "& ct=";179 text_t coll_type = "&ct="; 180 180 if ((cinfo->buildType == "mgpp") || (cinfo->buildType == "lucene")) { 181 181 … … 187 187 } 188 188 189 coll_type += "& qto=";189 coll_type += "&qto="; 190 190 191 191 // now we also want to check search types to set the qto arg … … 210 210 type_here = cinfo->searchTypes.begin(); 211 211 if (*type_here == "form") { 212 coll_type += "& qt=1"; // set the default to form212 coll_type += "&qt=1"; // set the default to form 213 213 } 214 214 } … … 227 227 text_t optsite = g_EmptyText; 228 228 text_t site_name = (*rprotolist_here).p->get_site_name (err); 229 if (!site_name.empty()) { optsite = "site="+site_name+"& "; }230 231 text_t link = "_gwcgi_?"+optsite+"a=p& p=about&c=" + *collist_here + coll_type;232 link += "& l=" + args["l"] + "&w=" + args["w"];229 if (!site_name.empty()) { optsite = "site="+site_name+"&"; } 230 231 text_t link = "_gwcgi_?"+optsite+"a=p&p=about&c=" + *collist_here + coll_type; 232 link += "&l=" + args["l"] + "&w=" + args["w"]; 233 233 234 234 // We are "dynamically" overriding so to speak the … … 271 271 ostream &logout) { 272 272 273 text_t homeextra = "< center><table width=_pagewidth_><tr valign=top>\n";273 text_t homeextra = "<table class=\"collections\"><tr valign=\"top\">\n"; 274 274 bool found_valid_col = false; 275 275 recptprotolistclass::iterator rprotolist_here = protos->begin(); … … 293 293 if (cinfo->isPublic && (cinfo->buildDate > 0)) { 294 294 295 text_t coll_type = "& ct=";295 text_t coll_type = "&ct="; 296 296 if ((cinfo->buildType == "mgpp") || (cinfo->buildType == "lucene")) { 297 297 … … 303 303 } 304 304 305 coll_type += "& qto=";305 coll_type += "&qto="; 306 306 307 307 // now we also want to check search types to set the qto arg … … 326 326 type_here = cinfo->searchTypes.begin(); 327 327 if (*type_here == "form") { 328 coll_type += "& qt=1"; // set the default to form328 coll_type += "&qt=1"; // set the default to form 329 329 } 330 330 } … … 369 369 370 370 collectionname 371 = "<img width= 150 border=1src=\"" + iconurl + "\" alt=\"" + alt + "\">";371 = "<img width=\"150\" border=\"1\" src=\"" + iconurl + "\" alt=\"" + alt + "\">"; 372 372 } else { 373 373 collectionname = alt; … … 375 375 376 376 if ((count%configinfo.HomePageCols == 0) && (!first)) 377 homeextra += "</tr><tr valign= top>\n";377 homeextra += "</tr><tr valign=\"top\">\n"; 378 378 379 379 comerror_t err; 380 380 text_t optsite = g_EmptyText; 381 381 text_t site_name = (*rprotolist_here).p->get_site_name (err); 382 if (!site_name.empty()) { optsite = "site="+site_name+"& "; }383 384 text_t link = "<a href=\"_gwcgi_?"+optsite+"a=p& p=about&c=" + *collist_here + coll_type;385 link += "& l=" + args["l"] + "&w=" + args["w"] + "\">";382 if (!site_name.empty()) { optsite = "site="+site_name+"&"; } 383 384 text_t link = "<a href=\"_gwcgi_?"+optsite+"a=p&p=about&c=" + *collist_here + coll_type; 385 link += "&l=" + args["l"] + "&w=" + args["w"] + "\">"; 386 386 387 387 if (!cinfo->receptionist.empty()) … … 400 400 } 401 401 } 402 homeextra += "</t d></tr>\n<tr>\n";402 homeextra += "</tr>\n<tr>\n"; 403 403 ++rprotolist_here; 404 404 } … … 407 407 homeextra += "<td>No valid (i.e. built and public) collections are available</td>\n"; 408 408 } 409 homeextra += "</tr></table> </center>\n";409 homeextra += "</tr></table>\n"; 410 410 disp.setmacro ("homeextra", "home", homeextra); 411 411 } … … 439 439 ++count; 440 440 441 text_t coll_type = "& ct=";441 text_t coll_type = "&ct="; 442 442 443 443 if ((cinfo->buildType == "mgpp") || (cinfo->buildType == "lucene")) { … … 450 450 } 451 451 452 coll_type += "& qto=";452 coll_type += "&qto="; 453 453 454 454 // now we also want to check search types to set the qto arg … … 474 474 type_here = cinfo->searchTypes.begin(); 475 475 if (*type_here == "form") { 476 coll_type += "& qt=1"; // set the default to form476 coll_type += "&qt=1"; // set the default to form 477 477 } 478 478 } … … 490 490 text_t optsite = g_EmptyText; 491 491 text_t site_name = (*rprotolist_here).p->get_site_name (err); 492 if (!site_name.empty()) { optsite = "site="+site_name+"& "; }492 if (!site_name.empty()) { optsite = "site="+site_name+"&"; } 493 493 494 494 text_t link = "<a href=\"_gwcgi_?"+optsite+"a=p&p=about&c=" + *collist_here + coll_type+"\">";
Note:
See TracChangeset
for help on using the changeset viewer.