Changeset 297 for trunk/gsdl/src/recpt
- Timestamp:
- 1999-06-28T09:49:03+12:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/browsetools.cpp
r293 r297 12 12 /* 13 13 $Log$ 14 Revision 1.11 1999/06/27 21:49:01 sjboddie 15 fixed a couple of version conflicts - tidied up some small things 16 14 17 Revision 1.10 1999/06/26 01:07:21 rjmcnab 15 18 Fixed a small "bug" -- well I probably just covered another one... … … 186 189 } 187 190 188 // at the moment this just sets a _thisOID_ macro to archivedir189 // and writes out the html to display the cover image191 // at the moment this just rites out the html to display 192 // the cover image (assuming it's called cover.jpg) 190 193 // this whole thing should be done with a call to the collection 191 194 // server which would send a link to the cover image if there 192 195 // was one otherwise send title, author and stuff 193 void output_cover_image (cgiargsclass &args, recptproto * collectproto,196 void output_cover_image (cgiargsclass &args, recptproto */*collectproto*/, 194 197 displayclass &disp, outconvertclass &outconvert, 195 ostream &textout, ostream & logout) {198 ostream &textout, ostream &/*logout*/) { 196 199 197 200 if (args["d"].empty()) return; 198 199 FilterResponse_t response; 200 text_tarray metadata; 201 metadata.push_back ("archivedir"); 202 203 text_t top; 204 get_top (args["d"], top); 205 if (get_info (top, args["c"], metadata, false, collectproto, response, logout)) { 206 207 text_t &archivedir = response.docInfo[0].metadata[0].values[0]; 208 disp.setmacro ("thisOID", "Global", archivedir); 209 210 textout << outconvert << disp << 211 "<img src=\"_httpcollection_/archives/_thisOID_/cover.jpg\"><br>\n"; 212 } 201 202 textout << outconvert << disp << 203 "<img src=\"_httpcollection_/archives/_thisOID_/cover.jpg\"><br>\n"; 213 204 } 214 205 … … 288 279 text_t doclink = "<a href=\"_httpdocument_&cl=" + arg_cl + "&d="; 289 280 290 if (classifytitle != "Title")metadata.push_back (classifytitle);281 metadata.push_back (classifytitle); 291 282 metadata.push_back ("Title"); 292 283 … … 295 286 textout 296 287 << "\n<!-- Table of Contents produced by browsetools::output_list_toc " 297 << "-->\n\n< table cellpadding=0 cellspacing=2>\n";288 << "-->\n\n<p>\n"; 298 289 299 290 ResultDocInfo_tarray::const_iterator sechere = response.docInfo.begin(); … … 305 296 const text_t &title = (*sechere).metadata[1].values[0]; 306 297 307 textout << outconvert << "<tr><td valign=top>";308 298 if (!ctitle.empty()) { 309 textout << outconvert << disp << doclink << (*sechere).OID 310 << "\">_document:iconclosedbook_</a></td><td>" 311 << ctitle << "</td><td>"; 299 textout << outconvert << disp << "<br>" << doclink << (*sechere).OID 300 << "\">" + ctitle + "</a>\n"; 312 301 } else if (!title.empty()) { 313 textout << outconvert << disp << doclink << (*sechere).OID 314 << "\">_document:iconclosedbook_</a></td><td>" << title << "</td><td>"; 315 } 316 textout << outconvert << "</td></tr>\n"; 317 302 textout << outconvert << disp << "<br>" << doclink << (*sechere).OID 303 << "\">" + title + "</a>\n"; 304 } 318 305 sechere ++; 319 306 } 320 textout << outconvert << "</table>\n<!-- end of Table of Contents -->\n"; 307 308 textout << "\n<!-- end of Table of Contents -->\n"; 321 309 } 322 310 } … … 617 605 tabcount ++; 618 606 else 619 icontabs.erase (icontabs.begin(), icontabs.begin()+ 9);607 icontabs.erase (icontabs.begin(), icontabs.begin()+18); 620 608 } 621 609 } … … 634 622 } else { 635 623 text_t link; 636 if (doctype == "classify") link = doclink + "&cl=" + *thisparent + ".pr ";624 if (doctype == "classify") link = doclink + "&cl=" + *thisparent + ".pr\">"; 637 625 else 638 626 if (is_top (*thisparent)) -
trunk/gsdl/src/recpt/receptionist.cpp
r296 r297 12 12 /* 13 13 $Log$ 14 Revision 1.16 1999/06/27 21:49:03 sjboddie 15 fixed a couple of version conflicts - tidied up some small things 16 14 17 Revision 1.15 1999/06/26 01:14:32 rjmcnab 15 18 Made a couple of changes to handle different encodings. … … 94 97 else if (key == "collection") configinfo.collection = cfgline[0]; 95 98 else if (key == "collectdir") configinfo.collectdir = cfgline[0]; 99 else if (key == "httpprefix") configinfo.httpprefix = cfgline[0]; 96 100 else if (key == "httpimg") configinfo.httpimg = cfgline[0]; 97 101 else if (key == "gwcgi") configinfo.gwcgi = cfgline[0]; … … 634 638 disp.setmacro ("gwcgi", "Global", configinfo.gwcgi); 635 639 disp.setmacro ("httpimg", "Global", configinfo.httpimg); 640 disp.setmacro ("httpprefix", "Global", configinfo.httpprefix); 636 641 disp.setmacro("compressedoptions", "Global", get_compressed_arg(args, outconvert, logout)); 637 642
Note:
See TracChangeset
for help on using the changeset viewer.