Changeset 297 for trunk/gsdl/src/recpt


Ignore:
Timestamp:
1999-06-28T09:49:03+12:00 (25 years ago)
Author:
sjboddie
Message:

fixed a couple of version conflicts - tidied up some small things

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/browsetools.cpp

    r293 r297  
    1212/*
    1313   $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
    1417   Revision 1.10  1999/06/26 01:07:21  rjmcnab
    1518   Fixed a small "bug" -- well I probably just covered another one...
     
    186189}
    187190
    188 // at the moment this just sets a _thisOID_ macro to archivedir
    189 // and writes out the html to display the cover image
     191// at the moment this just rites out the html to display
     192// the cover image (assuming it's called cover.jpg)
    190193// this whole thing should be done with a call to the collection
    191194// server which would send a link to the cover image if there
    192195// was one otherwise send title, author and stuff
    193 void output_cover_image (cgiargsclass &args, recptproto *collectproto,
     196void output_cover_image (cgiargsclass &args, recptproto */*collectproto*/,
    194197             displayclass &disp, outconvertclass &outconvert,
    195              ostream &textout, ostream &logout) {
     198             ostream &textout, ostream &/*logout*/) {
    196199
    197200  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";
    213204}
    214205
     
    288279  text_t doclink = "<a href=\"_httpdocument_&cl=" + arg_cl + "&d=";
    289280
    290   if (classifytitle != "Title") metadata.push_back (classifytitle);
     281  metadata.push_back (classifytitle);
    291282  metadata.push_back ("Title");
    292283
     
    295286    textout
    296287      << "\n<!-- Table of Contents produced by browsetools::output_list_toc "
    297       << "-->\n\n<table cellpadding=0 cellspacing=2>\n";
     288      << "-->\n\n<p>\n";
    298289
    299290    ResultDocInfo_tarray::const_iterator sechere = response.docInfo.begin();
     
    305296      const text_t &title = (*sechere).metadata[1].values[0];
    306297
    307       textout << outconvert << "<tr><td valign=top>";
    308298      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";
    312301      } 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      }
    318305      sechere ++;
    319306    }
    320     textout << outconvert << "</table>\n<!-- end of Table of Contents -->\n";
     307
     308    textout << "\n<!-- end of Table of Contents -->\n";
    321309  }
    322310}
     
    617605        tabcount ++;
    618606      else
    619         icontabs.erase (icontabs.begin(), icontabs.begin()+9);
     607        icontabs.erase (icontabs.begin(), icontabs.begin()+18);
    620608    }
    621609      }
     
    634622      } else {
    635623    text_t link;
    636     if (doctype == "classify") link = doclink + "&cl=" + *thisparent + ".pr";
     624    if (doctype == "classify") link = doclink + "&cl=" + *thisparent + ".pr\">";
    637625    else
    638626      if (is_top (*thisparent))
  • trunk/gsdl/src/recpt/receptionist.cpp

    r296 r297  
    1212/*
    1313   $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
    1417   Revision 1.15  1999/06/26 01:14:32  rjmcnab
    1518   Made a couple of changes to handle different encodings.
     
    9497    else if (key == "collection") configinfo.collection = cfgline[0];
    9598    else if (key == "collectdir") configinfo.collectdir = cfgline[0];
     99    else if (key == "httpprefix") configinfo.httpprefix = cfgline[0];
    96100    else if (key == "httpimg") configinfo.httpimg = cfgline[0];
    97101    else if (key == "gwcgi") configinfo.gwcgi = cfgline[0];
     
    634638  disp.setmacro ("gwcgi", "Global", configinfo.gwcgi);
    635639  disp.setmacro ("httpimg", "Global", configinfo.httpimg);
     640  disp.setmacro ("httpprefix", "Global", configinfo.httpprefix);
    636641  disp.setmacro("compressedoptions", "Global", get_compressed_arg(args, outconvert, logout));
    637642
Note: See TracChangeset for help on using the changeset viewer.