add book titles to search results

This commit is contained in:
Tristan Havelick
2022-02-06 18:53:48 -07:00
committed by Kelson
parent 62ba2f4861
commit 58be502f3f
4 changed files with 22 additions and 3 deletions

View File

@ -22,6 +22,7 @@
#include <string>
#include <zim/search.h>
#include <library.h>
namespace kiwix
{
@ -50,10 +51,12 @@ class SearchRenderer
*
* @param srs The `SearchResultSet` to render.
* @param mapper The `NameMapper` to use to do the rendering.
* @param library The `Library` to use to look up book details for search
* results
* @param start The start offset used for the srs.
* @param estimatedResultCount The estimatedResultCount of the whole search
*/
SearchRenderer(zim::SearchResultSet srs, NameMapper* mapper,
SearchRenderer(zim::SearchResultSet srs, NameMapper* mapper, Library* library,
unsigned int start, unsigned int estimatedResultCount);
~SearchRenderer();
@ -91,6 +94,7 @@ class SearchRenderer
std::string beautifyInteger(const unsigned int number);
zim::SearchResultSet m_srs;
NameMapper* mp_nameMapper;
Library* mp_library;
std::string searchContent;
std::string searchPattern;
std::string protocolPrefix;