jhu-idc / iDC-general

Contains non-code-base specific tickets relating to the Islandora8 for Digital Collection project
0 stars 0 forks source link

Unable to sort search result by Publication Date #492

Open htpvu opened 2 years ago

htpvu commented 2 years ago

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 commented 2 years ago

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=*