Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4201

Starts_with parameter shouldn't be passed when browsing an item index


    • Type: Bug
    • Status: Code Review Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.3
    • Fix Version/s: 6.4
    • Component/s: XMLUI
    • Labels:
    • Attachments:
    • Comments:
    • Documentation Status:


      The configurable BrowseIndexes can be either

      • "item" indexes 
      • "metadata" indexes

      the browse behaviour is very different for the two types. Browsing a metadata index acts as a filter, meaning you browse in a subset of the entire index. And browsing an item index jumps to a point in the entire index.

      Passing the "starts_with" parameter, for paginating a metadata index is essential to maintain the subset being browsed. It is redundant however for item indexes to pass the parameter because the next page in the pagination is not contextual.

      In the following example, see screenshot, we click "Browse by year" and then choose "2014". We are "Now showing items 3111-3130 of 6027", starting with the first item from 2014.

      The previoues button generated links:

      However the page will only contain items from < 2014

      Passing the "starts_with" parameter for paginating an item index index also causes an ambiguity in pagination. Specifically when browsing to "offset=0" and passing  "starts_with" as well this will point to the first page starting with whatever value is passed but since it is an item index "offset=0" should be the absolute beginning position of the entire index.


          Issue Links



              • Assignee:
                hrafn.malmquist Hrafn Malmquist
                hrafn.malmquist Hrafn Malmquist
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: