mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
+ * Add "First" and "Last" arrows in the search result page (ID: 3442313)
This commit is contained in:
@ -43,6 +43,7 @@ namespace kiwix {
|
||||
estimatedResultCount(0),
|
||||
resultStart(0),
|
||||
resultEnd(0),
|
||||
resultRange(20),
|
||||
protocolPrefix("zim://"),
|
||||
searchProtocolPrefix("search://?") {
|
||||
}
|
||||
@ -213,6 +214,8 @@ namespace kiwix {
|
||||
oData["searchPattern"] = this->searchPattern;
|
||||
oData["resultStart"] = this->resultStart + 1;
|
||||
oData["resultEnd"] = (this->resultEnd > this->estimatedResultCount ? this->estimatedResultCount : this->resultEnd);
|
||||
oData["resultRange"] = this->resultRange;
|
||||
oData["resultLastPageStart"] = this->estimatedResultCount - this->resultRange;
|
||||
oData["protocolPrefix"] = this->protocolPrefix;
|
||||
oData["searchProtocolPrefix"] = this->searchProtocolPrefix;
|
||||
|
||||
|
@ -91,6 +91,7 @@ namespace kiwix {
|
||||
unsigned int resultEnd;
|
||||
std::string protocolPrefix;
|
||||
std::string searchProtocolPrefix;
|
||||
unsigned int resultRange;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user