Changeset 772 for trunk/gsdl/src/recpt/queryaction.cpp
- Timestamp:
- 1999-11-05T09:29:53+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/queryaction.cpp
r770 r772 28 28 /* 29 29 $Log$ 30 Revision 1.29 1999/11/04 20:29:53 sjboddie 31 small change to cross-collection searching 32 30 33 Revision 1.28 1999/11/03 22:49:50 sjboddie 31 34 A few changes to cross-collection searching for fao … … 135 138 #include "formattools.h" 136 139 #include "cgiutils.h" 140 #include "OIDtools.h" 137 141 138 142 void colinfo_t::clear () { … … 705 709 text_t freqmsg = "_textfreqmsg1_"; 706 710 int numdocs = 0; 711 text_tset colnamedata; 712 colnamedata.insert ("collectionname"); 713 707 714 format_querystring (formattedstring, args.getintarg("b")); 708 715 set_queryfilter_options (request, formattedstring, args); … … 764 771 } 765 772 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 766 780 TermInfo_tarray::const_iterator this_term = response.termInfo.begin(); 767 781 TermInfo_tarray::const_iterator end_term = response.termInfo.end(); 768 freqmsg += "<br><b>" + *col_here + "</b>: ";782 freqmsg += "<br><b>" + collectionname + "</b>: "; 769 783 while (this_term != end_term) { 770 784 freqmsg += (*this_term).term + ": " + (*this_term).freq;
Note:
See TracChangeset
for help on using the changeset viewer.