Changeset 22924
- Timestamp:
- 2010-09-20T10:53:29+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/recpt/formattools.cpp
r22810 r22924 1936 1936 1937 1937 1938 // we have only preloaded the text in DocumentAction. But you may want to get the text in query. so copy what we have done with format_summary and get the text here. probably is quite expensive? 1938 // we have only preloaded the text in DocumentAction. But you may want 1939 // to get the text in query, so copy what we have done with 1940 // format_summary and get the text here. Probably is quite expensive? 1939 1941 text_t format_text (const text_t& collection, recptproto* collectproto, 1940 1942 ResultDocInfo_t &docinfo, displayclass &disp, … … 1943 1945 text_t text; 1944 1946 1945 if (!options["text"].empty()) {1947 if (!options["text"].empty()) { 1946 1948 text = options["text"]; 1947 1949 } … … 1997 1999 // in practice, this would not happen, because text is only 1998 2000 // loaded with the [Text] command 1999 textToSummarise = options["text"];2001 textToSummarise = options["text"]; 2000 2002 } 2001 2003 2002 2004 disp.expandstring("_cgiargq_",query); 2003 2005 summary = summarise(textToSummarise,query,80); 2004 } 2006 //summary = substr(textToSummarise.begin(),textToSummarise.begin()+80); 2007 } 2008 2009 summary.replace("'","'"); 2010 summary.replace("\n","
"); 2005 2011 2006 2012 if (metadata_spanwrap) {
Note:
See TracChangeset
for help on using the changeset viewer.