Summary: | Lose original search term when select "More options" | ||
---|---|---|---|
Product: | Koha | Reporter: | Chris Cormack <chris> |
Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | aleisha, EvroOfranto20, katrin.fischer, veron, viktor.sarge, ztajoli |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13307 | ||
Change sponsored?: | Sponsored | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Attachments: | Bug 1356: Use JS to show more/less options in advanced search |
Description
Chris Cormack
2010-05-21 00:29:30 UTC
The bug is still present now The problem is in the logic of the links ""More options/Fewer options". In fact they are two different link to the cgi script, so clicking them is like clear the form. We can: -- use javascript to have the effect -- close the bug with a 'WONTFIX' Bug 13307 creates links that populate the fields in Advanced search using jQuery. Maybe a solution could be based on the same mechanism. Problem is still present in master. Had a quick look as I've seen the problem before. There is a URL parameter &returntosearch=1 from the search result that seems to use jquery.cookie to restore the last search. This works rather well and even restores when you add more search fields than the original three. I guess the logic used here could be applied to more/less options too if clicking the button saved a cookie and triggered the "return to search". Created attachment 60804 [details] [review] Bug 1356: Use JS to show more/less options in advanced search Patch for STAFF SIDE ONLY. Not ready for sign-off. Sponsored-by: Catalyst IT Hi Aleisha, do you intend to continue working on this? (In reply to Katrin Fischer from comment #6) > Hi Aleisha, do you intend to continue working on this? Not at the moment. |