Ignore:
Timestamp:
1999-11-05T09:29:53+13:00 (25 years ago)
Author:
sjboddie
Message:

small change to cross-collection searching

File:
1 edited

Legend:

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

    r770 r772  
    2828/*
    2929   $Log$
     30   Revision 1.29  1999/11/04 20:29:53  sjboddie
     31   small change to cross-collection searching
     32
    3033   Revision 1.28  1999/11/03 22:49:50  sjboddie
    3134   A few changes to cross-collection searching for fao
     
    135138#include "formattools.h"
    136139#include "cgiutils.h"
     140#include "OIDtools.h"
    137141
    138142void colinfo_t::clear () {
     
    705709  text_t freqmsg = "_textfreqmsg1_";
    706710  int numdocs = 0;
     711  text_tset colnamedata;
     712  colnamedata.insert ("collectionname");
     713
    707714  format_querystring (formattedstring, args.getintarg("b"));
    708715  set_queryfilter_options (request, formattedstring, args);
     
    764771    }
    765772
     773    text_t collectionname = *col_here;
     774    FilterResponse_t nresponse;
     775    if (get_info ("collection", *col_here, colnamedata, false, collectproto, nresponse, logout)) {
     776      if (!nresponse.docInfo[0].metadata["collectionname"].values[0].empty())
     777    collectionname = nresponse.docInfo[0].metadata["collectionname"].values[0];
     778    }
     779
    766780    TermInfo_tarray::const_iterator this_term = response.termInfo.begin();
    767781    TermInfo_tarray::const_iterator end_term = response.termInfo.end();
    768     freqmsg += "<br><b>" + *col_here + "</b>: ";
     782    freqmsg += "<br><b>" + collectionname + "</b>: ";
    769783    while (this_term != end_term) {
    770784      freqmsg += (*this_term).term + ": " + (*this_term).freq;
Note: See TracChangeset for help on using the changeset viewer.