Similar to Bug 12405, but for the OPAC. Freshly migrated from Heritage to Koha: https://library.celt.dias.ie If a call number contains "(" or ")", the "q=callnum" query doesn't work in the Debian packaged version 3.22 Example: https://library.celt.dias.ie/cgi-bin/koha/opac-search.pl?q=callnum:891.6205%20ITS%20(43iii) Solution is similar to Bug 12405, is to introduce %22 into the search query https://library.celt.dias.ie/cgi-bin/koha/opac-search.pl?q=callnum:%22891.6205%20ITS%20(43iii)%22 This can be done by changing: /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/en/modules/opac-results.tt on line 405: [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/opac-search.pl?q=callnum:%22[% available_items_loo.itemcallnumber |url %]%22">[% available_items_loo.itemcallnumber %]</a>][% END %]
Created attachment 46844 [details] [review] Bug 15468 - Search links on callnumber fails on opac results page To Test: 1-before plugin search in opac for a call number with either a "(" or a ")" in it 2-it should come back with no results 3-use plugin 4-re-search the call number with "(" or ")" 5-the search should come back with results
Created attachment 46903 [details] [review] [SIGNED-OFF] Bug 15468 - Search links on callnumbers with parentheses fails on OPAC results page To Test: 1-before plugin search in opac for a call number with either a "(" or a ")" in it 2-it should come back with no results 3-use plugin 4-re-search the call number with "(" or ")" 5-the search should come back with results Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 46957 [details] [review] [PASSED QA] Bug 15468 - Search links on callnumbers with parentheses fails on OPAC results page To Test: 1-before plugin search in opac for a call number with either a "(" or a ")" in it 2-it should come back with no results 3-use plugin 4-re-search the call number with "(" or ")" 5-the search should come back with results Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> It seems this only works with OPAC XSLT for results page turned off and OPACItemsResultsDisplay turned on. - Then the callnumbers in the result list will be linked for searching.
Pushed to master - Should be in the May 2016 release. Thanks!
Patch pushed to 3.22.x, will be in 3.22.3
This patch has been pushed to 3.20.x, will be in 3.20.9.