From 6c9320e82a37b32b99e70cece6c01f6016bdffac Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 27 Nov 2011 22:11:39 +0000 Subject: [PATCH] fix for latest navigation feature... git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8121 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacysearch.java | 2 +- htroot/yacysearchitem.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index 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.html index 0b2ae0783..9cf0a7385 100644 --- a/htroot/yacysearchitem.html +++ b/htroot/yacysearchitem.html @@ -56,7 +56,7 @@ #(/content)#