Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: www_lsst_io
-
Labels:None
-
Story Points:3.3
-
Epic Link:
-
Team:SQuaRE
-
Urgent?:No
Description
For each document series, programatically create a pre-filtered listing of documents in that series.
By default, sort by handle, but also allow sorting by revision date.
This change will allow us to keep the default listing in the advanced search page empty (requested in DM-24956).
When the user starts typing a query term, though, we immediately switch the sorting to a relevance-based order because that provides the best search experience. This is implemented through a customized SortBy widget that connects to the SearchState widget. This AutoSortBy widget sets the default value of the underlying <select> element, so the user can still override the sorting and have that choice persist if the query text is deleted, for example.
See https://github.com/lsst-sqre/www_lsst_io/pull/16 for screenshots