If you set a CCODE value which contains parentheses like "S(B)" then when you search against it the parentheses confuse the search query parser per: opac-search.pl: WARNING: query problem with (mc-ccode=S(B)) ZOOM error 10014 "CCL parsing error" (addinfo: "')' expected") from diag-set 'ZOOM' at /home/reed/Catalyst/koha/koha/C4/Search.pm line 346. Patch provide wraps the mc-ccode value in quotes to get around this.
Created attachment 3065 [details] [review] patch to wrap mc-ccode search limit in quotes
Work is sponsored by Opus
This bug is mentioned in: bug 5693 - mc-ccode parens fix http://lists.koha-community.org/pipermail/koha-patches/2011-February/013766.html
Pushed, please test and mark resolved
This now ends up with a url like this a href="/cgi-bin/koha/opac-search.pl?idx=kw&q=a&limit=mc-ccode:"AF"&sort_by=relevance&limit=su-geo:Alabama." title="Alabama.">Alabama.</a> With the "AF" breaking it obviously, working on a follow up patch to escape the html where limit_cgi is used in the templates
Follow up patch submitted
Created attachment 3296 [details] [review] Follow up fix
Follow up patch pushed, please test and mark resolved
This bug is mentioned in: bug 5693 - mc-ccode parens fix http://lists.koha-community.org/pipermail/koha-patches/2011-March/013985.html Bug 5693 : Follow up patch, escaping HTML in limit_cgi so "" dont break hrefs http://lists.koha-community.org/pipermail/koha-patches/2011-March/014046.html Bug 5693 : Follow up patch, escaping HTML in limit_cgi so "" dont break hrefs http://lists.koha-community.org/pipermail/koha-patches/2011-March/014048.html