+ * Add "First" and "Last" arrows in the search result page (ID: 3442313)

This commit is contained in:
kelson42
2011-12-04 13:40:22 +00:00
parent d851d065e8
commit aa9ebdb87e
3 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -91,6 +91,7 @@ namespace kiwix {
unsigned int resultEnd;
std::string protocolPrefix;
std::string searchProtocolPrefix;
unsigned int resultRange;
};
}