Ignore:
Timestamp:
1999-10-31T12:02:01+13:00 (25 years ago)
Author:
sjboddie
Message:

tidied up, fixed a small bug

File:
1 edited

Legend:

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

    r747 r751  
    2828/*
    2929   $Log$
     30   Revision 1.5  1999/10/30 23:02:01  sjboddie
     31   tidied up, fixed a small bug
     32
    3033   Revision 1.4  1999/10/30 22:15:23  sjboddie
    3134   added a collection argument
     
    5861text_t hlistbrowserclass::get_browser_name () {
    5962  return "HList";
     63}
     64
     65void hlistbrowserclass::load_metadata_defaults (text_tset &metadata) {
     66  metadata.insert ("doctype");
    6067}
    6168
     
    99106
    100107int hlistbrowserclass::output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
    101                          const text_t /*collection*/, int colnumber, format_t *formatlistptr,
    102                          bool use_table, text_tset &metadata, bool &getParents,
     108                         const text_t &/*collection*/, int colnumber,
     109                         format_t *formatlistptr, bool use_table,
     110                         text_tset &metadata, bool &getParents,
    103111                         recptproto *collectproto, displayclass &disp,
    104                          outconvertclass &outconvert, ostream &textout, ostream &logout) {
     112                         outconvertclass &outconvert, ostream &textout,
     113                         ostream &logout) {
    105114
    106115  // expanded contents are going to cause some nasty recursions
     
    138147    bool highlight = false;
    139148    textout << "<td>";
     149    text_t &doctype = (*tsibling).metadata["doctype"].values[0];
    140150
    141151    if ((*tsibling).OID == section.OID) {
     
    144154    } else {
    145155      link = "<a href=\"_httpdocument_";
    146       if (!arg_d.empty())
     156      if (doctype == "classify")
     157    link += "&cl=" + (*tsibling).OID + "\">";
     158      else
    147159    link += "&cl=" + arg_cl + "&d=" + (*tsibling).OID + "\">";
    148       else
    149     link += "&cl=" + (*tsibling).OID + "\">";
    150160    }
    151161
    152     textout << outconvert << disp << get_formatted_string (*tsibling, formatlistptr, link, icon, highlight);
     162    textout << outconvert << disp
     163        << get_formatted_string (*tsibling, formatlistptr, link, icon, highlight);
    153164
    154165    textout << "</td>\n";
Note: See TracChangeset for help on using the changeset viewer.