Add option to show current search string in facet summary

Created on 12 June 2018, over 6 years ago
Updated 23 May 2023, over 1 year ago

Problem/Motivation

As discussed in #2735891: Introducing the current search/summary block β†’ , it would be great if Facet summary had an option to display the current search string (like the D7 Current Search module does).

Currently, it looks like Facet summary only supports displaying facets, and not 'random' (non-facet) query parameters. Roughly, what would be the way to include the search string in the facet summary?

Proposed resolution

Admin UI

Provide the following configuration:

  • Display the current search string in the summary and default to the current behavior (not displayed).
  • Add an option to clear the current search string if 'Adds reset facets link.' is enabled.

Frontend

Add a new processor for the current search string.

Remaining tasks

Frontend

  • Display the current search string above the selected facets summary
  • Template suggestions for facets-summary-string

Admin UI

Other

  • Update facets_summary.processor.schema
  • Update facets_summary.facets_summary.schema
  • Rename ResetFacetsProcessor by ResetProcessor
  • Upgrade path for renaming ResetFacetsProcessor by ResetProcessor
  • Unit tests
  • Review with ✨ Extend Reset Facet processor functionality Needs review
✨ Feature request
Status

Needs work

Version

2.0

Component

Facet summary

Created by

πŸ‡¨πŸ‡¦Canada brunodbo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024