kartoza / ckanext-dalrrd-emc-dcpr

Electronic Metadata Catalog for South Africa's Department of Agriculture, Land Reform and Rural Development
MIT License
4 stars 5 forks source link

search with a search term, then delete it and apply a filter and the search term reappears. It should remain deleted so the search is not reapplied. #372

Closed fanevanjanahary closed 1 year ago

Mohab25 commented 1 year ago

fixed with ##352

Jeremy-Prior commented 1 year ago

The way I interpret this issue is that a user types a term into the search bar and searches for it. The user then deletes the term in the search bar and applies a filter from the available options on the left hand side of the page. When the user deletes the search term and applies the filter the term should remain deleted so that the search condition is not reapplied. Currently when the user deletes the search term and applies a filter the search term reappears.

Mohab25 commented 1 year ago

the current behavior is that when a user clear the search term and subsequently applies a filter before click search or press enter, the search term is not appearing in the next search and only the filter applies: When the user deletes the search term and applies the filter the term should remain deleted so that the search condition is not reapplied. Currently when the user deletes the search term and applies a filter the search term reappears. e.g the following "version" search term is used and gives 68 results:

version-seach-term

once the term is deleted and a new facet is subsequently used before making a search, e.g. iso category "society" and then making a search, the previous term is deleted and the iso topic is searched, results are 16 (currently there is another irrelevant issue that the active search is not highlighted):

society-iso-topic

other suggestions are great, please open a new ticket with the next stabilisation milestone if you see they still hold.

Jeremy-Prior commented 1 year ago

When a user deletes the search term in search bar and then applies another filter, the site only returns results for the filter and doesn't apply the search term again. 4_fixed