Ignore:
Timestamp:
1999-10-10T21:14:12+13:00 (25 years ago)
Author:
sjboddie
Message:
  • metadata now returns mp rather than array
  • redesigned browsing support (although it's not finished so

won't currently work ;-)

File:
1 edited

Legend:

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

    r634 r649  
    2828/*
    2929   $Log$
     30   Revision 1.26  1999/10/10 08:14:10  sjboddie
     31   - metadata now returns mp rather than array
     32   - redesigned browsing support (although it's not finished so
     33   won't currently work ;-)
     34
    3035   Revision 1.25  1999/09/24 04:49:39  sjboddie
    3136   fixed up the query selection boxes to display properly if there's only
     
    517522
    518523    if (havequerylink)
    519       request.fields.push_back (querylinkmeta);
    520 
    521     int metasize = request.fields.size();
     524      request.fields.insert (querylinkmeta);
    522525
    523526    // do the query
     
    535538    // output the results
    536539    textout << "<table cellspacing=4>\n";
    537     ResultDocInfo_tarray::const_iterator this_doc = response.docInfo.begin();
    538     ResultDocInfo_tarray::const_iterator end_doc = response.docInfo.end();
     540    ResultDocInfo_tarray::iterator this_doc = response.docInfo.begin();
     541    ResultDocInfo_tarray::iterator end_doc = response.docInfo.end();
    539542
    540543    while (this_doc != end_doc) {
     
    544547      textout << "<tr>\n";
    545548      if (havequerylink) {
    546     const text_t &qlmeta = (*this_doc).metadata[metasize-1].values.back();
     549    const text_t &qlmeta = (*this_doc).metadata[querylinkmeta].values[0];
    547550    if (qlmeta.empty())
    548551      textout << outconvert << disp
Note: See TracChangeset for help on using the changeset viewer.