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

Unable to sort search result by Publication Date #492

Open
htpvu opened this issue Mar 18, 2022 · 1 comment
Open

Unable to sort search result by Publication Date #492

htpvu opened this issue Mar 18, 2022 · 1 comment

Comments

@htpvu
Copy link

htpvu commented Mar 18, 2022

addressing UAT-3, use case 3.6 https://docs.google.com/document/d/1-ZGnCSrrXFJZTvBqm4ytGfMO-2LMaf0T02BgnJnmgVg/edit

Moved to https://jhulibraries.atlassian.net/browse/LAGS-129

Publication Date is not offered as an option for "sort by".

Note that when search result set include both Collections and Repository items, Publication date is not expected to show up because it's not a common attribute between Collections and Repository Items. But if a search result set include only objects which all share a common attribute of "Publication Date", then Publication Date should be offered as a "sort by" parameter.

@jabrah
Copy link

jabrah commented Mar 22, 2022

Such a change would require changes in a couple of places:

  1. Manage > Structure > Views > Solr Search > REST Export
    We can add a sorting criteria here -- looks like Solr date field isn't available here
  2. IDC UI Theme js/packages/glimmer-idc/src/components/search-options.ts
    A caveat about setting the option here, the Sort By and Sort Order values are structured a little strangely -- the option value is exactly what would appear in a search request, thus the &sort_by=*

@htpvu htpvu added the launch label Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants