Skip to content

Conversation

@mamrey
Copy link
Contributor

@mamrey mamrey commented Oct 15, 2025

Description

This MR excludes search fields included in the advanced search form from the constraints displayed on the advanced search page. The advanced search already populates the form search field controls with their respective field values. Preventing these fields from displaying in the constraints eliminates duplication and ensures there is no discrepancy between the constraints and the populated search values if the user goes on to edit them. The advanced search already excludes its filter fields from the constraints. These changes ensure that the advanced search treats the search fields in the same way.

Screenshots

path with incoming parameters: /catalog/advanced?op=must&clause[0][field]=all_fields&clause[0][query]=&clause[1][field]=title&clause[1][query]=medicine&clause[2][field]=author&clause[2][query]=&clause[3][field]=subject&clause[3][query]=&f_inclusive[format][]=Book&sort=relevance&commit=Search
Current behavior:

The advanced search includes the Title query "medicine" in the constraints, but excludes the format filter "Book". It populates the form with the expected values.

Screenshot 2025-10-15 at 11 15 03 AM

MR behavior:

The advanced search excludes both the Title query and the inclusive format filter from the constraints. It populates the form with the expected values.

Screenshot 2025-10-15 at 11 15 20 AM

closes #3301

@mamrey mamrey changed the title Resolve "3301 refine display of constraints in advanced search form" Resolve "Refine display of constraints in advanced search form" Oct 15, 2025
@seanaery seanaery merged commit 95700d7 into main Oct 15, 2025
12 checks passed
@seanaery seanaery deleted the 3301-refine-display-of-constraints-in-advanced-search-form branch October 15, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refine Display of Constraints in Advanced Search Form

2 participants