Skip to content

Default Sort Doesn't Apply to Initial Page of Results #561

@markpbaggett

Description

@markpbaggett

Describe the bug

By default, SAGE applies title sort to its list of results. From the backend, you can choose whether this should be ascending or descending. You can also update on the front end whether the sort should be something other than title. That being said, the default sort on the initial page is not title but rank. For instance, when SAGE loads Basbanes, it grabs these:

https://api.library.tamu.edu/solr/sage-core/select?indent=on&q=collection:%22https://api.library.tamu.edu/fcrepo/rest/3b/6f/c3/25/3b6fc325-f6ca-41d8-b91e-8c5db3be8c13/BasbanesEternalPassion_objects%22&wt=json&rows=10

Then, when you click the next page, it sorts by title. Because of this and the fact that you can't sort by rank, a user will never see all the images in a collection.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://library.tamu.edu/discovery/discovery-context/basbanes-eternal-passion
  2. Look at the first 10 items
  3. Click 'next'
  4. Notice that we are no longer seeing sort by rank and that there is no way to sort by rank. For this reason, items are repeated and you can't see all items.

Expected behavior

Ideally, the initial page should sort by title (the default sort that is applied). If not, by default, everything should sort by rank unless it is changed in the front end by the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions