Search loses advanced search limiters after changing sort method or further limiting the search
Bug #788629 reported by
Kathy Lussier
This bug affects 8 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
After applying limiters to a search from the advanced search page, if a user then tries to sort the results, tries to limit to available items, or tries to limit by applying a facet, the previously-applied limiters are no longer retained in the search. For example, in a case where a user searches for "solar system" and limits the search to juvenile books, if the user then tries to sort by pubdate on the search results page, the limiters for juvenile and non-fiction are no longer applied. Instead, the catalog will retrieve all "solar system" material and sort it by pubdate.
This was tested in a 2.1 system, but I saw the same behavior in other 2.0 catalogs.
Changed in evergreen: | |
assignee: | nobody → Jason Stephenson (jstephenson) |
status: | New → In Progress |
Changed in evergreen: | |
importance: | Undecided → Medium |
Changed in evergreen: | |
status: | In Progress → New |
Changed in evergreen: | |
milestone: | none → 2.2.0beta1 |
Changed in evergreen: | |
milestone: | 2.2.0beta1 → 2.2.0rc1 |
Changed in evergreen: | |
milestone: | 2.2.0rc1 → 2.2.0 |
Changed in evergreen: | |
milestone: | 2.2.0 → 2.2.1 |
Changed in evergreen: | |
milestone: | 2.2.2 → 2.2.3 |
no longer affects: | evergreen/2.1 |
no longer affects: | evergreen/2.0 |
Changed in evergreen: | |
milestone: | 2.2.3 → none |
importance: | Medium → Undecided |
To post a comment you must log in.
I can confirm that this is occurring in the following system.
Evergreen 2.0.8
OpenSRF 2.0.1
PostgreSQL 9.0.4
Ubuntu 10.04
I have attached a patch that fixes this problem in 2.0.8 system. Most of the code was already in existence to fix this issue. When sorting, the function called to execute the sort is searchBarSubmit. When searchBarSubmit is called by the sorting UI, the UI passes a value of isFilterSort = true.
Inside searchBarSubmit there is a call to opac_utils.js clearSearchParams function. By wraping the call to clearSearchParams in check to make sure isFilterSort is not true, we can preserve the serach options when performing a sort operation.