Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Properly fill current page number to new server side pagination template
luccioman093ea9586c2e
diff --git a/htroot/yacysearch.html b/htroot/yacysearch.htmlindex 4d8cb281c..bea0a9265 100644--- a/htroot/yacysearch.html+++ b/htroot/yacysearch.html@@ -255,7 +255,7 @@ document.getElementById("Enter").innerHTML = "search again";#(resultTable)#::</table>::</table>#(/resultTable)#<!-- linklist end -->-<!--#include virtual="yacysearchpagination.html?eventID=#[eventID]#&maximumRecords=#[count]#&jsResort=#(jsResort)#false::true#(/jsResort)##(authSearch)#::&auth#(/authSearch)#" -->+<!--#include virtual="yacysearchpagination.html?eventID=#[eventID]#&maximumRecords=#[count]#&offset=#[offset]#&jsResort=#(jsResort)#false::true#(/jsResort)##(authSearch)#::&auth#(/authSearch)#" --></div> <!-- close main -->diff --git a/htroot/yacysearchpagination.java b/htroot/yacysearchpagination.javaindex 52ba39c26..1a41b5f61 100644--- a/htroot/yacysearchpagination.java+++ b/htroot/yacysearchpagination.java@@ -81,7 +81,7 @@ public class yacysearchpagination {prop.put("pagination_pages", 0);prop.put("pagination_nextDisabled", true);} else {- final int startRecord = post.getInt("startRecord", post.getInt("offset", post.getInt("start", 0)));+ final int startRecord = post.getInt("offset", 0);final int totalCount = theSearch.getResultCount();final int activePage = (int) Math.floor(startRecord / (double) itemsPerPage);