Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
markpbaggett opened this issue Nov 18, 2024 · 0 comments
Open

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

markpbaggett opened this issue Nov 18, 2024 · 0 comments

Comments

@markpbaggett
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant