Really use the rich abstracts
This commit is contained in:
parent
047c1ba1fa
commit
d242fe8665
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: reslist.cpp,v 1.6 2006-11-10 13:32:08 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: reslist.cpp,v 1.7 2006-11-10 17:53:54 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -376,7 +376,6 @@ void ResList::resultPageNext()
|
|||||||
// Abstract
|
// Abstract
|
||||||
string abst;
|
string abst;
|
||||||
plaintorich(doc.abstract, abst, qTerms, 0, true);
|
plaintorich(doc.abstract, abst, qTerms, 0, true);
|
||||||
LOGDEB1(("Abstract: {%s}\n", abst.c_str()));
|
|
||||||
|
|
||||||
// Links;
|
// Links;
|
||||||
string linksbuf;
|
string linksbuf;
|
||||||
@ -406,7 +405,7 @@ void ResList::resultPageNext()
|
|||||||
|
|
||||||
// Configurable stuff
|
// Configurable stuff
|
||||||
map<char,string> subs;
|
map<char,string> subs;
|
||||||
subs['A'] = !doc.abstract.empty() ? doc.abstract + "<br>" : "";
|
subs['A'] = !abst.empty() ? abst + "<br>" : "";
|
||||||
subs['D'] = datebuf;
|
subs['D'] = datebuf;
|
||||||
subs['K'] = !doc.keywords.empty() ? doc.keywords + "<br>" : "";
|
subs['K'] = !doc.keywords.empty() ? doc.keywords + "<br>" : "";
|
||||||
subs['L'] = linksbuf;
|
subs['L'] = linksbuf;
|
||||||
@ -422,6 +421,7 @@ void ResList::resultPageNext()
|
|||||||
|
|
||||||
result += "</p>\n";
|
result += "</p>\n";
|
||||||
|
|
||||||
|
LOGDEB2(("Chunk: [%s]\n", result.c_str()));
|
||||||
QString str = QString::fromUtf8(result.c_str(), result.length());
|
QString str = QString::fromUtf8(result.c_str(), result.length());
|
||||||
append(str);
|
append(str);
|
||||||
setCursorPosition(0,0);
|
setCursorPosition(0,0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user