Changeset 16043 for gsdl/trunk
- Timestamp:
- 2008-06-18T13:23:27+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/hlistbrowserclass.cpp
r15418 r16043 25 25 26 26 #include "hlistbrowserclass.h" 27 #include <assert.h>27 #include "OIDtools.h" 28 28 #include "recptprototools.h" 29 29 … … 94 94 recptproto *collectproto, displayclass &disp, 95 95 outconvertclass &outconvert, ostream &textout, 96 ostream &logout) {97 96 ostream &logout) 97 { 98 98 // expanded contents are going to cause some nasty recursions 99 99 // so we'll only continue if being passed the current section … … 102 102 // get all siblings 103 103 FilterResponse_t response; 104 text_t &arg_cl = args["cl"];105 104 get_children (section.OID + ".pr", args["c"], args["l"], metadata, getParents, 106 105 collectproto, response, logout); 107 106 107 return output_section_group (response, args, collection, colnumber, formatlistptr, use_table, metadata, getParents, collectproto, disp, outconvert, textout, logout); 108 } 109 110 int hlistbrowserclass::output_section_group (FilterResponse_t &response, cgiargsclass &args, 111 const text_t &collection, int colnumber, 112 format_t * formatlistptr, bool use_table, 113 text_tset &metadata, bool &getParents, 114 recptproto * collectproto, displayclass &disp, 115 outconvertclass &outconvert, ostream &textout, 116 ostream &logout) 117 { 108 118 /* use_table is set to true if the format string starts with <td> */ 109 119 if (use_table || colnumber > 0) { … … 134 144 text_t &doctype = (*tsibling).metadata["doctype"].values[0]; 135 145 136 if ((*tsibling).OID == section.OID) {146 if ((*tsibling).OID == args["cl"] || is_child_of ((*tsibling).OID, args["cl"])) { 137 147 link.clear(); 138 148 highlight = true; … … 142 152 link += "&cl=" + (*tsibling).OID + "\">"; 143 153 else { 144 link += "&cl=" + arg _cl+ "&d=" + (*tsibling).OID;// + "\">";154 link += "&cl=" + args["cl"] + "&d=" + (*tsibling).OID;// + "\">"; 145 155 // [modification to allow default document detach settings -- kjdon] 146 156 if (args["xx"]=="1") { … … 182 192 return 0; 183 193 } 184 185 int hlistbrowserclass::output_section_group (FilterResponse_t &/*sections*/, cgiargsclass &/*args*/,186 const text_t &/*collection*/, int /*colnumber*/,187 format_t * /*formatlistptr*/, bool /*use_table*/,188 text_tset &/*metadata*/, bool &/*getParents*/,189 recptproto * /*collectproto*/, displayclass &/*disp*/,190 outconvertclass &/*outconvert*/, ostream &/*textout*/,191 ostream &/*logout*/) {192 return 0;193 }
Note:
See TracChangeset
for help on using the changeset viewer.