Author: ssolsagl
Date: 2007-01-09 14:58:49 +0100 (Tue, 09 Jan 2007)
New Revision: 4292

Modified:
   
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/output/VelocityResultHandler.java
Log:

paging maxPage hardcoded to 10



Modified: 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/output/VelocityResultHandler.java
===================================================================
--- 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/output/VelocityResultHandler.java
    2007-01-09 13:45:46 UTC (rev 4291)
+++ 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/output/VelocityResultHandler.java
    2007-01-09 13:58:49 UTC (rev 4292)
@@ -53,6 +53,9 @@
     private static final String ERR_NP_WRITING_TO_STREAM 
             = "Possible client cancelled request. (NullPointerException 
writing to response's stream).";
     private static final String ERR_MERGE = "Error merging template ";
+    
+    /* This is the paging size when browsing resultset like <- 1 2 3 4 5 6 7 8 
9 10 ->  Hardcoded to max 10 and independent of the  pageSize */
+    private static final int PAGING_SIZE =  10;
 
     public void handleResult(final Context cxt, final Map parameters) {
 
@@ -185,12 +188,14 @@
         
         final SearchConfiguration config = 
cxt.getSearchResult().getSearchCommand().getSearchConfiguration();
 
+        final int navBarSize = 10;
+
         if (config.isPaging()) {
             final PagingDisplayHelper pager = new PagingDisplayHelper(
                     cxt.getSearchResult().getHitCount(),
-                    config.getResultsToReturn(),
-                    cxt.getSearchTab().getPageSize());
+                    config.getResultsToReturn(),   PAGING_SIZE);
 
+
             final Object v = parameters.get("offset");
             pager.setCurrentOffset(Integer.parseInt(v instanceof String[]
                     ? ((String[]) v)[0]

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to