Changeset 281 for trunk/gsdl/src/recpt
- Timestamp:
- 1999-06-17T11:53:15+12:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/browsetools.cpp
r279 r281 12 12 /* 13 13 $Log$ 14 Revision 1.7 1999/06/16 23:53:14 sjboddie 15 tidied a few things up. documentaction::define_external_macros now 16 resets the "c" arg if it's set to something stupid by the .xx suffixes 17 14 18 Revision 1.6 1999/06/16 04:03:47 sjboddie 15 19 Now sets "cl" arg to "search" when going to a document from a search … … 132 136 textout << outconvert << "<h4><i>" << author << "</i></h4>\n"; 133 137 134 textout << "</td></tr></table> \n";138 textout << "</td></tr></table></center>\n"; 135 139 textout << "\n<!-- end of Table of Contents -->\n"; 136 140 … … 269 273 text_tarray metadata; 270 274 FilterResponse_t response; 271 text_t doclink = "<a href=\"_httpdocument_&cl=" + args["cl"] + "&d="; 275 text_t &arg_cl = args["cl"]; 276 text_t doclink = "<a href=\"_httpdocument_&cl=" + arg_cl + "&d="; 272 277 bool iscreator = false; 273 278 if (classifytitle == "Creator") iscreator = true; … … 275 280 metadata.push_back ("Title"); 276 281 metadata.push_back ("Creator"); 277 if (get_children (arg s["cl"], args["c"], metadata, collectproto, response, logout)) {282 if (get_children (arg_cl, args["c"], metadata, collectproto, response, logout)) { 278 283 279 284 textout … … 286 291 while (sechere != secend) { 287 292 293 const text_t &title = (*sechere).metadata[0].values[0]; 294 const text_t &creator = (*sechere).metadata[1].values[0]; 295 288 296 if (iscreator) { 289 if (! ((*sechere).metadata[1].values[0].empty())) {297 if (!creator.empty()) { 290 298 textout << outconvert << disp << "<tr><td valign=top>" << doclink << (*sechere).OID 291 299 << "\">_iconclosedbook_</a></td><td>" 292 << (*sechere).metadata[1].values[0]<< "</td><td>";293 294 if (! ((*sechere).metadata[0].values[0].empty()))295 textout << outconvert << " " << (*sechere).metadata[0].values[0];300 << creator << "</td><td>"; 301 302 if (!title.empty()) 303 textout << outconvert << " " << title; 296 304 } 297 305 } else { 298 if (! ((*sechere).metadata[0].values[0].empty())) {306 if (!title.empty()) { 299 307 textout << outconvert << disp << "<tr><td valign=top>" << doclink << (*sechere).OID 300 << "\">_iconclosedbook_</a></td><td>" 301 << (*sechere).metadata[0].values[0] << "</td><td>"; 302 303 if (!((*sechere).metadata[1].values[0].empty())) 304 textout << outconvert << " " << (*sechere).metadata[1].values[0]; 308 << "\">_iconclosedbook_</a></td><td>" << title << "</td><td>"; 309 310 if (!creator.empty()) 311 textout << outconvert << " " << creator; 305 312 } 306 313 } -
trunk/gsdl/src/recpt/documentaction.cpp
r277 r281 12 12 /* 13 13 $Log$ 14 Revision 1.6 1999/06/16 23:53:15 sjboddie 15 tidied a few things up. documentaction::define_external_macros now 16 resets the "c" arg if it's set to something stupid by the .xx suffixes 17 14 18 Revision 1.5 1999/06/16 03:10:49 sjboddie 15 19 define_internal_macros() now sets _pagetitle_ macro to document's title … … 221 225 disp.setmacro ("cgiargd", "Global", arg_d); 222 226 } 227 // we'll also check here that the "cl" argument has a "classify" doctype 228 // (in case ".fc" or ".lc" have screwed up) 223 229 if (needs_translating (arg_cl)) { 230 request.fields.push_back("doctype"); 224 231 request.docSet.insert (arg_cl); 232 request.filterResultOptions = FRmetadata; 225 233 collectproto->filter (collection, request, response, err, logout); 226 arg_cl = response.docInfo[0].OID; 234 // set to original value (without .xx stuff) if doctype isn't "classify" 235 if (response.docInfo[0].metadata[0].values[0] != "classify") 236 strip_suffix (arg_cl); 237 else 238 arg_cl = response.docInfo[0].OID; 227 239 disp.setmacro ("cgiargcl", "Global", arg_cl); 228 240 }
Note:
See TracChangeset
for help on using the changeset viewer.