Changeset 12380 for trunk/gsdl/src/recpt/queryaction.cpp
- Timestamp:
- 2006-08-02T16:30:23+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/queryaction.cpp
r12276 r12380 1225 1225 ++this_term; 1226 1226 } 1227 1227 1228 1228 if (response.numDocs > 0) { 1229 1229 numdocs += response.numDocs; … … 1578 1578 // define_single_query_macros sets the extra macros for search_single_coll 1579 1579 // that couldn't be set until the query had been done. Those macros are 1580 // _freqmsg_ ,1580 // _freqmsg_ and _stopwordsmsg_ 1581 1581 void queryaction::define_single_query_macros (cgiargsclass &args, 1582 1582 displayclass &disp, 1583 1583 const FilterResponse_t &response) { 1584 // set up _freqmsg_ macros1584 // set up _freqmsg_ and _stopwordsmsg_ macros 1585 1585 1586 1586 text_t freqmsg = ""; … … 1594 1594 ++this_term; 1595 1595 } 1596 1597 1596 disp.setmacro ("freqmsg", "query", freqmsg); 1597 1598 text_t stopwordsmsg = "_textstopwordsmsg_ "; 1599 text_tset::const_iterator stopwords_iterator = response.stopwords.begin(); 1600 while (stopwords_iterator != response.stopwords.end()) { 1601 if (stopwordsmsg != "_textstopwordsmsg_ ") { 1602 stopwordsmsg += ", "; 1603 } 1604 stopwordsmsg += (*stopwords_iterator); 1605 ++stopwords_iterator; 1606 } 1607 disp.setmacro("stopwordsmsg", "query", stopwordsmsg); 1598 1608 } 1599 1609
Note:
See TracChangeset
for help on using the changeset viewer.