Changeset 30148

Show
Ignore:
Timestamp:
31.08.2015 14:31:26 (4 years ago)
Author:
kjdon
Message:

making start_results always start at 0, as sometimes it was 1, sometimes it was 0, and it was too confusing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/service/GS2SolrSearch.java

    r30146 r30148  
    297297        } 
    298298        // set up start and end results if necessary 
    299         int start_results = 1; 
     299        int start_results = 0; 
    300300        if (start_page != 1) 
    301301        { 
    302             start_results = ((start_page - 1) * hits_per_page) + 1; 
     302            start_results = ((start_page - 1) * hits_per_page) ; 
    303303        } 
    304304        int end_results = hits_per_page * start_page;