[Koha-bugs] [Bug 34021] Add option to search within results in the OPAC
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 1 06:28:42 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34021
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Passed QA |Failed QA
--- Comment #8 from David Cook <dcook at prosentient.com.au> ---
I hate failing my own stuff, but I noticed a problem.
If you do a search like this one:
http://localhost:8080/cgi-bin/koha/opac-search.pl?idx=&q=an%3A104&weight_search=1
You can try to "Search within results" using "Alcestis" but it won't work.
The reason is that this URL is the one that is constructed:
http://localhost:8080/cgi-bin/koha/opac-search.pl?q=ccl%3Dan%3A104&idx=kw&q=Alcestis&sort_by=relevance&addto=Add+to...
The an:104 has a ccl= prefix which causes the rest of the query string to be
ignored.
So either Search.pm needs a change or this change needs to be changed.
--
It looks like a fix could be to follow the code from bug 27546 and instead of
adding a "idx=kw and q=X" just add a "limit=X". At a glance, that looks like it
would work.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list