Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Fixed start record on the last api table results page
luccioman65451a3d6210
diff --git a/htroot/Table_API_p.java b/htroot/Table_API_p.javaindex 52cade26c..c70d8343b 100644--- a/htroot/Table_API_p.java+++ b/htroot/Table_API_p.java@@ -452,7 +452,7 @@ public class Table_API_p {if (filteredSize > maximumRecords) {prop.put("showtable_navigation", 1);prop.put("showtable_navigation_startRecord", startRecord);- prop.put("showtable_navigation_to", Math.min(tablesize, startRecord + maximumRecords));+ prop.put("showtable_navigation_to", Math.min(filteredSize, startRecord + table.size()));prop.put("showtable_navigation_of", filteredSize);prop.put("showtable_navigation_left", startRecord == 0 ? 0 : 1);prop.put("showtable_navigation_left_startRecord", Math.max(0, startRecord - maximumRecords));@@ -463,7 +463,7 @@ public class Table_API_p {prop.put("showtable_navigation_left", startRecord == 0 ? 0 : 1);prop.put("showtable_navigation_filter", typefilter.pattern());prop.put("showtable_navigation_right", startRecord + maximumRecords >= filteredSize ? 0 : 1);- prop.put("showtable_navigation_right_startRecord", Math.min(filteredSize - maximumRecords, startRecord + maximumRecords));+ prop.put("showtable_navigation_right_startRecord", startRecord + maximumRecords);prop.put("showtable_navigation_right_maximumRecords", maximumRecords);prop.put("showtable_navigation_right_inline", (inline) ? 1 : 0);prop.put("showtable_navigation_right_filter", typefilter.pattern());