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/vlistbrowserclass.cpp

    r9620 r10873  
    7474
    7575  text_t collink = collection;
    76   if (!collink.empty()) collink = "&c=" + collink;
     76  if (!collink.empty()) collink = "&c=" + collink;
    7777
    7878  get_link_icon (section, args, collink, link, icon);
     
    124124
    125125  text_t collink = collection;
    126   if (!collink.empty()) collink = "&c=" + collink;
     126  if (!collink.empty()) collink = "&c=" + collink;
    127127
    128128  if (colnumber > 0) {
     
    209209  link = "<a href=\"_httpdocument_" + collink;
    210210  text_t link_end = "\">";
    211   text_t detach_link_end = "&x=1\" target=\\_blank>"; // to detach the link, and x=1 signifies it is a detached page
     211  text_t detach_link_end = "&amp;x=1\" target=\\_blank>"; // to detach the link, and x=1 signifies it is a detached page
    212212  icon = "_document:icontext_";
    213213
     
    225225  if (args["a"] == "q") {
    226226    // query results list
    227     link += "&cl=search&d=" + section.OID;
     227    link += "&amp;cl=search&amp;d=" + section.OID;
    228228   
    229229    if (args["xx"] == "1") {
     
    243243    link = "<a href=\"_httpquery_\">";
    244244      }
    245       else link += "&cl=" + arg_cl + "\">";
     245      else link += "&amp;cl=" + arg_cl + "\">";
    246246     
    247247    } else if (haschildren == 1) {
     
    250250      (section.OID == arg_d)) {
    251251    icon = "_document:iconopenfolder_";
    252     link += "&cl=" + arg_cl + "&d=" + section.OID + ".pr\">";
     252    link += "&amp;cl=" + arg_cl + "&amp;d=" + section.OID + ".pr\">";
    253253      } else {
    254254    icon = "_document:iconclosedfolder_";
    255     link += "&cl=" + arg_cl + "&d=" + section.OID + "\">";
     255    link += "&amp;cl=" + arg_cl + "&amp;d=" + section.OID + "\">";
    256256      }
    257257    } else {
    258258      if (args["gt"] == "0") {
    259     link += "&cl=" + arg_cl + "&d=" + section.OID + "\">";
     259    link += "&amp;cl=" + arg_cl + "&amp;d=" + section.OID + "\">";
    260260      } else {
    261     link += "&cl=" + arg_cl + "&d=" + section.OID + "#" + section.OID + "\">";
     261    link += "&amp;cl=" + arg_cl + "&amp;d=" + section.OID + "#" + section.OID + "\">";
    262262      }
    263263    }
     
    271271        (section.OID == arg_cl)) {
    272272      icon = "_document:iconopenbookshelf_";
    273       link += "&cl=" + section.OID + ".pr\">";
     273      link += "&amp;cl=" + section.OID + ".pr\">";
    274274    } else {
    275275      icon = "_document:iconclosedbookshelf_";
    276       link += "&cl=" + section.OID + "\">";
     276      link += "&amp;cl=" + section.OID + "\">";
    277277    }
    278278      } else {
    279279   
    280280    icon = "_document:iconclosedbook_";
    281     link += "&cl=" + arg_cl + "&d=" + section.OID;
     281    link += "&amp;cl=" + arg_cl + "&amp;d=" + section.OID;
    282282    if (args["xx"] == "1") {
    283283      link +=  detach_link_end;
     
    290290      if (doctype == "classify") link = "";
    291291      else {
    292     link += "&cl=" + arg_cl + "&d=" + section.OID;
     292    link += "&amp;cl=" + arg_cl + "&amp;d=" + section.OID;
    293293    if (args["xx"] == "1") {
    294294      link +=  detach_link_end;
Note: See TracChangeset for help on using the changeset viewer.