Changeset 30148


Ignore:
Timestamp:
08/31/15 14:31:26 (5 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

File:
1 edited

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;
Note: See TracChangeset for help on using the changeset viewer.