mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Make the search_rendered handle multizim search.
This introduce a intermediate mustache object to store information about the request made by the user.
This commit is contained in:
@ -81,9 +81,9 @@ class SearchRenderer
|
||||
void setSearchPattern(const std::string& pattern);
|
||||
|
||||
/**
|
||||
* Set the search content id.
|
||||
* Set the book names used to do the search.
|
||||
*/
|
||||
void setSearchContent(const std::string& name);
|
||||
void setSearchBookIds(const std::set<std::string>& bookIds);
|
||||
|
||||
/**
|
||||
* Set protocol prefix.
|
||||
@ -112,7 +112,7 @@ class SearchRenderer
|
||||
zim::SearchResultSet m_srs;
|
||||
NameMapper* mp_nameMapper;
|
||||
Library* mp_library;
|
||||
std::string searchContent;
|
||||
std::set<std::string> searchBookIds;
|
||||
std::string searchPattern;
|
||||
std::string protocolPrefix;
|
||||
std::string searchProtocolPrefix;
|
||||
|
Reference in New Issue
Block a user