Description
Current Behavior
Any search from anywhere in ArcLight leads to a search results page in the flat All Results
view. A user can toggle over to Grouped by Collection
view.
Desired Behavior:
The Grouped by Collection
view should be the default view of search results. However, the flat All Results
view should be automatically applied if the query was specifically a within-collection search, e.g., a user has done a search from a collection or component page and their search scope is This Collection
rather than All Collections
.
It may also be useful to make this a configurable setting, especially to support any implementers who are using ArcLight for only a single collection, or who have a preference for keeping things ungrouped.
Rationale
As established in the Dec 2023 community sprint, the vast majority of current ArcLight implementers (using any version) have either already implemented or plan to implement custom local workarounds to get cross-collection results grouped by default.
Potential Solutions
Some implementers have already developed a workaround here for a 1.x-based application, so an approach for core may be informed by these implementations. Note that solutions for 1.x will be much different from any solutions for 0.x, especially given changes in how 1.x uses javascript and ViewComponents.