Skip to content

Conversation

@moseshll
Copy link
Contributor

@moseshll moseshll commented Jan 16, 2026

  • When you do an advanced catalog search and then remove the filter that correspondings to the advanced search terms, currently the adv=1 flag is still present in the URL.
  • This changes SearchStructure->asWildcardURL(...) -- which is only used for filter removal URLs -- not to include adv.

To test:
https://catalog.hathitrust.org/Search/Home?type%5B%5D=author&lookfor%5B%5D=jones&bool%5B%5D=AND&type%5B%5D=title&lookfor%5B%5D=sanskrit&filter%5B%5D=language%3AEnglish&pagesize=100&ft=ft&adv=1

If you inspect the "remove filter" X button for the "Author: jones AND Title: sanskrit" facet in production, adv=1 is present, and if you click it then the advanced search terms are gone but the "Revise this advanced search" button is still there.

Contrast with:
https://dev-2.catalog.hathitrust.org/Search/Home?type%5B%5D=author&lookfor%5B%5D=jones&bool%5B%5D=AND&type%5B%5D=title&lookfor%5B%5D=sanskrit&filter%5B%5D=language%3AEnglish&pagesize=100&ft=ft&adv=1

- When you do an advanced catalog search and then remove the filter that correspondings to the advanced search terms,
currently the adv=1 flag is still present in the URL.
- This changes `SearchStructure->asWildcardURL(...)` -- which is only used for filter removal URLs -- not to include `adv`.
@moseshll moseshll requested a review from carylwyatt January 16, 2026 19:01
Copy link
Member

@carylwyatt carylwyatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, works as expected! Approve.

@moseshll moseshll merged commit 08a99cd into main Jan 16, 2026
2 checks passed
@moseshll moseshll deleted the ETT-1253_remove_adv branch January 16, 2026 20:57
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.

3 participants