Changeset 751 for trunk/gsdl/src/recpt/hlistbrowserclass.cpp
- Timestamp:
- 1999-10-31T12:02:01+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/hlistbrowserclass.cpp
r747 r751 28 28 /* 29 29 $Log$ 30 Revision 1.5 1999/10/30 23:02:01 sjboddie 31 tidied up, fixed a small bug 32 30 33 Revision 1.4 1999/10/30 22:15:23 sjboddie 31 34 added a collection argument … … 58 61 text_t hlistbrowserclass::get_browser_name () { 59 62 return "HList"; 63 } 64 65 void hlistbrowserclass::load_metadata_defaults (text_tset &metadata) { 66 metadata.insert ("doctype"); 60 67 } 61 68 … … 99 106 100 107 int hlistbrowserclass::output_section_group (ResultDocInfo_t §ion, 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, 103 111 recptproto *collectproto, displayclass &disp, 104 outconvertclass &outconvert, ostream &textout, ostream &logout) { 112 outconvertclass &outconvert, ostream &textout, 113 ostream &logout) { 105 114 106 115 // expanded contents are going to cause some nasty recursions … … 138 147 bool highlight = false; 139 148 textout << "<td>"; 149 text_t &doctype = (*tsibling).metadata["doctype"].values[0]; 140 150 141 151 if ((*tsibling).OID == section.OID) { … … 144 154 } else { 145 155 link = "<a href=\"_httpdocument_"; 146 if (!arg_d.empty()) 156 if (doctype == "classify") 157 link += "&cl=" + (*tsibling).OID + "\">"; 158 else 147 159 link += "&cl=" + arg_cl + "&d=" + (*tsibling).OID + "\">"; 148 else149 link += "&cl=" + (*tsibling).OID + "\">";150 160 } 151 161 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); 153 164 154 165 textout << "</td>\n";
Note:
See TracChangeset
for help on using the changeset viewer.