given ($pathcode) { when ('"ads"') { $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?returntosearch=1'); } when ('"exs"') { $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?expanded_options=1&returntosearch=1'); } default {warn "ReturnPath swith error";} }
Created attachment 39964 [details] [review] Bug 14351: Remove given-when from opac-search.pl Reformats given-when to if-elsif-else in opac-search.pl to remove the experimental feature and with it a lot of warnings from the logs. To test: - Do several different advanced searches with and without expanded search options - Verify the link back to the search appears above the results list and works correctly See also: test plan on bug 13307
Comment on attachment 39964 [details] [review] Bug 14351: Remove given-when from opac-search.pl Review of attachment 39964 [details] [review]: ----------------------------------------------------------------- Lovely code clean up that improves readability!
Created attachment 40115 [details] [review] Bug 14351: Remove given-when from opac-search.pl Reformats given-when to if-elsif-else in opac-search.pl to remove the experimental feature and with it a lot of warnings from the logs. To test: - Do several different advanced searches with and without expanded search options - Verify the link back to the search appears above the results list and works correctly See also: test plan on bug 13307 NOTE: Even installed firefox plug in to edit cookies to trigger else case. :) Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Created attachment 40162 [details] [review] Bug 14351: Remove given-when from opac-search.pl Reformats given-when to if-elsif-else in opac-search.pl to remove the experimental feature and with it a lot of warnings from the logs. To test: - Do several different advanced searches with and without expanded search options - Verify the link back to the search appears above the results list and works correctly See also: test plan on bug 13307 NOTE: Even installed firefox plug in to edit cookies to trigger else case. :) Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Patch pushed to master. Thanks Katrina!
Pushed to 3.20.x will be in 3.20.1
Hi, This patch doesn't apply cleanly to 3.18.x. If you feel it should be included, please provide a version for 3.18.x. Cheers, Liz
Bug 13307 is not in 3.18, so this is not needed.