Ignore:
Timestamp:
2010-09-20T10:53:29+12:00 (14 years ago)
Author:
davidb
Message:

' and \n encoded as entites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/formattools.cpp

    r22810 r22924  
    19361936
    19371937
    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?
    19391941text_t format_text (const text_t& collection, recptproto* collectproto,
    19401942            ResultDocInfo_t &docinfo, displayclass &disp,
     
    19431945  text_t text;
    19441946
    1945   if(!options["text"].empty()) {
     1947  if (!options["text"].empty()) {
    19461948    text = options["text"];
    19471949  }
     
    19971999      // in practice, this would not happen, because text is only
    19982000      // loaded with the [Text] command
    1999     textToSummarise = options["text"];
     2001      textToSummarise = options["text"];
    20002002    }
    20012003   
    20022004    disp.expandstring("_cgiargq_",query);
    20032005    summary = summarise(textToSummarise,query,80);
    2004   }
     2006    //summary = substr(textToSummarise.begin(),textToSummarise.begin()+80);
     2007  }
     2008
     2009  summary.replace("'","'");
     2010  summary.replace("\n","
");
    20052011
    20062012  if (metadata_spanwrap) {
Note: See TracChangeset for help on using the changeset viewer.