---- Reported by russel.garlick@liblime.com 2007-06-24 21:14:48 ---- On the advanced search page, if you enter a term into the keywords search box, and then scroll down and click "More options" then you lose the search term that you have already entered into the Keywords field. --- Bug imported by chris@bigballofwax.co.nz 2010-05-21 00:29 UTC --- This bug was previously known as _bug_ 1356 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=1356 Actual time not defined. Setting to 0.0 The original reporter of this bug does not have an account here. Reassigning to the person who moved it here: chris@bigballofwax.co.nz. Previous reporter was russel.garlick@liblime.com.
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.