Bug 1356 - Lose original search term when select "More options"
Summary: Lose original search term when select "More options"
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P3 enhancement (vote)
Assignee: Owen Leonard
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-24 09:14 UTC by Chris Cormack
Modified: 2019-05-05 21:38 UTC (History)
6 users (show)

See Also:
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 (4.34 KB, patch)
2017-03-03 02:00 UTC, Aleisha Amohia
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cormack 2010-05-21 00:29:30 UTC


---- 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.

Comment 1 Zeno Tajoli 2013-01-09 14:51:20 UTC
The bug is still present now
Comment 2 Zeno Tajoli 2013-01-09 14:58:38 UTC
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'
Comment 3 Marc Véron 2015-01-05 17:10:22 UTC
Bug 13307 creates links that populate the fields in Advanced search using jQuery. 
Maybe a solution could be based on the same mechanism.
Comment 4 Viktor Sarge 2016-12-28 08:47:55 UTC
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".
Comment 5 Aleisha Amohia 2017-03-03 02:00:41 UTC
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
Comment 6 Katrin Fischer 2019-05-04 15:36:26 UTC
Hi Aleisha, do you intend to continue working on this?
Comment 7 Aleisha Amohia 2019-05-05 21:38:02 UTC
(In reply to Katrin Fischer from comment #6)
> Hi Aleisha, do you intend to continue working on this?

Not at the moment.