Ignore:
Timestamp:
2005-11-08T17:30:57+13:00 (18 years ago)
Author:
jrm21
Message:

documentaction modified for new HTML4/CSS stuff (eg stop looking for
icon width macros). Other files modified to tidy up output (put tag
attribute values in quotes, use & instead of &, etc). Not quite
finished yet but it works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pageaction.cpp

    r9931 r10873  
    177177        if (cinfo->isPublic && (cinfo->buildDate > 0)) {
    178178
    179           text_t coll_type = "&ct=";
     179          text_t coll_type = "&ct=";
    180180          if ((cinfo->buildType == "mgpp") || (cinfo->buildType == "lucene")) {
    181181
     
    187187        }
    188188
    189         coll_type += "&qto=";
     189        coll_type += "&qto=";
    190190
    191191        // now we also want to check search types to set the qto arg
     
    210210            type_here = cinfo->searchTypes.begin();
    211211            if (*type_here == "form") {
    212               coll_type += "&qt=1"; // set the default to form
     212              coll_type += "&qt=1"; // set the default to form
    213213            }
    214214          }
     
    227227          text_t optsite = g_EmptyText;
    228228          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"];
    233233
    234234          // We are "dynamically" overriding so to speak the
     
    271271                 ostream &logout) {
    272272 
    273   text_t homeextra = "<center><table width=_pagewidth_><tr valign=top>\n";
     273  text_t homeextra = "<table class=\"collections\"><tr valign=\"top\">\n";
    274274  bool found_valid_col = false;
    275275  recptprotolistclass::iterator rprotolist_here = protos->begin();
     
    293293        if (cinfo->isPublic && (cinfo->buildDate > 0)) {
    294294
    295           text_t coll_type = "&ct=";
     295          text_t coll_type = "&amp;ct=";
    296296          if ((cinfo->buildType == "mgpp") || (cinfo->buildType == "lucene")) {
    297297
     
    303303        }
    304304
    305         coll_type += "&qto=";
     305        coll_type += "&amp;qto=";
    306306
    307307        // now we also want to check search types to set the qto arg
     
    326326            type_here = cinfo->searchTypes.begin();
    327327            if (*type_here == "form") {
    328               coll_type += "&qt=1"; // set the default to form
     328              coll_type += "&amp;qt=1"; // set the default to form
    329329            }
    330330          }
     
    369369       
    370370        collectionname
    371           = "<img width=150 border=1 src=\"" + iconurl + "\" alt=\"" + alt + "\">";
     371          = "<img width=\"150\" border=\"1\" src=\"" + iconurl + "\" alt=\"" + alt + "\">";
    372372          } else {
    373373        collectionname = alt;
     
    375375         
    376376          if ((count%configinfo.HomePageCols == 0) && (!first))
    377         homeextra += "</tr><tr valign=top>\n";
     377        homeextra += "</tr><tr valign=\"top\">\n";
    378378         
    379379          comerror_t err;
    380380          text_t optsite = g_EmptyText;
    381381          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+"&amp;"; }
     383
     384          text_t link = "<a href=\"_gwcgi_?"+optsite+"a=p&amp;p=about&amp;c=" + *collist_here + coll_type;
     385          link += "&amp;l=" + args["l"] + "&amp;w=" + args["w"] + "\">";
    386386         
    387387          if (!cinfo->receptionist.empty())
     
    400400      }
    401401    }
    402     homeextra += "</td></tr>\n<tr>\n";
     402    homeextra += "</tr>\n<tr>\n";
    403403    ++rprotolist_here;
    404404  }
     
    407407    homeextra += "<td>No valid (i.e. built and public) collections are available</td>\n";
    408408  }
    409   homeextra += "</tr></table></center>\n";
     409  homeextra += "</tr></table>\n";
    410410  disp.setmacro ("homeextra", "home", homeextra);
    411411}
     
    439439          ++count;
    440440
    441           text_t coll_type = "&ct=";
     441          text_t coll_type = "&amp;ct=";
    442442
    443443          if ((cinfo->buildType == "mgpp") || (cinfo->buildType == "lucene")) {
     
    450450        }
    451451
    452         coll_type += "&qto=";
     452        coll_type += "&amp;qto=";
    453453
    454454        // now we also want to check search types to set the qto arg
     
    474474            type_here = cinfo->searchTypes.begin();
    475475            if (*type_here == "form") {
    476               coll_type += "&qt=1"; // set the default to form
     476              coll_type += "&amp;qt=1"; // set the default to form
    477477            }
    478478          }
     
    490490          text_t optsite = g_EmptyText;
    491491          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+"&amp;"; }
    493493
    494494          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.