Changeset 30147


Ignore:
Timestamp:
08/31/15 14:30:11 (6 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
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2LuceneSearch.java

    r30145 r30147  
    183183        }
    184184        // set up start and end results if necessary
    185         int start_results = 1;
     185        // start results always start at 0
     186        int start_results = 0;
    186187        if (start_page > 1 && hits_per_page > 0)
    187188        {
    188             start_results = ((start_page - 1) * hits_per_page) + 1;
     189          start_results = ((start_page - 1) * hits_per_page) ;
    189190        }
    190191        int end_results = Integer.MAX_VALUE;
Note: See TracChangeset for help on using the changeset viewer.