Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for latest navigation feature...
orbiter6c9320e82a37
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.javaindex d5a78374c..f01329ebc 100644--- a/htroot/yacysearch.java+++ b/htroot/yacysearch.java@@ -740,7 +740,7 @@ public class yacysearch {}final int indexcount = theSearch.getRankingResult().getLocalIndexCount() - theSearch.getRankingResult().getMissCount() - theSearch.getRankingResult().getSortOutCount() + theSearch.getRankingResult().getRemoteIndexCount();- prop.put("num-results_offset", offset + 1);+ prop.put("num-results_offset", offset == 0 ? 0 : offset + 1);prop.put("num-results_itemscount", Formatter.number(offset + theSearch.getQuery().itemsPerPage > indexcount ? offset + indexcount % theSearch.getQuery().itemsPerPage : offset + theSearch.getQuery().itemsPerPage, true));prop.put("num-results_itemsPerPage", itemsPerPage);prop.put("num-results_totalcount", Formatter.number(indexcount, true));diff --git a/htroot/yacysearchitem.html b/htroot/yacysearchitem.htmlindex 0b2ae0783..9cf0a7385 100644--- a/htroot/yacysearchitem.html+++ b/htroot/yacysearchitem.html@@ -56,7 +56,7 @@#(/content)#<script type="text/javascript">-statistics("#[offset]#", "#[itemscount]#", "#[itemsperpage]#", "#[totalcount]#", "#[localResourceSize]#", "#[remoteResourceSize]#", "#[remoteIndexCount]#", "#[remotePeerCount]#", #[navurlBase]#);+statistics("#[offset]#", "#[itemscount]#", "#[itemsperpage]#", "#[totalcount]#", "#[localResourceSize]#", "#[remoteResourceSize]#", "#[remoteIndexCount]#", "#[remotePeerCount]#", "#[navurlBase]#");progressbar.step(1);</script>