Changeset 16044
- Timestamp:
- 2008-06-18T14:21:44+12:00 (16 years ago)
- Location:
- gsdl/trunk/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/hlistbrowserclass.cpp
r16043 r16044 139 139 text_t icon, link; 140 140 141 while (tsibling != esibling) { 141 while (tsibling != esibling) 142 { 143 get_link_icon (*tsibling, args, link, icon); 142 144 143 145 bool highlight = false; 144 text_t &doctype = (*tsibling).metadata["doctype"].values[0]; 145 146 if ((*tsibling).OID == args["cl"] || is_child_of ((*tsibling).OID, args["cl"])) { 146 if ((*tsibling).OID == args["cl"] || is_child_of ((*tsibling).OID, args["cl"])) 147 { 147 148 link.clear(); 148 highlight = true; 149 } else { 150 link = "<a href=\"_httpdocument_"; 151 if (doctype == "classify") 152 link += "&cl=" + (*tsibling).OID + "\">"; 153 else { 154 link += "&cl=" + args["cl"] + "&d=" + (*tsibling).OID;// + "\">"; 155 // [modification to allow default document detach settings -- kjdon] 156 if (args["xx"]=="1") { 157 // documents should be detached 158 link += "&x=1\" target=\"_blank\">"; 159 } else { 160 link += "\">"; 161 } 162 } 149 highlight = true; 163 150 } 164 151 … … 192 179 return 0; 193 180 } 181 182 183 void hlistbrowserclass::get_link_icon (ResultDocInfo_t §ion, cgiargsclass &args, text_t &link, text_t &icon) 184 { 185 link = "<a href=\"_httpdocument_"; 186 187 text_t &doctype = section.metadata["doctype"].values[0]; 188 if (doctype == "classify") 189 { 190 link += "&cl=" + section.OID + "\">"; 191 } 192 else 193 { 194 link += "&cl=" + args["cl"] + "&d=" + section.OID; 195 196 // [modification to allow default document detach settings -- kjdon] 197 if (args["xx"] == "1") 198 { 199 // documents should be detached 200 link += "&x=1\" target=\"_blank\">"; 201 } 202 else 203 { 204 link += "\">"; 205 } 206 } 207 } -
gsdl/trunk/src/recpt/hlistbrowserclass.h
r7432 r16044 65 65 66 66 protected: 67 68 virtual void get_link_icon (ResultDocInfo_t §ion, cgiargsclass &args, text_t &link, text_t &icon); 69 67 70 receptionist *recpt; 68 71 };
Note:
See TracChangeset
for help on using the changeset viewer.