When searching for linked records for an authority in OPAC's authority search the search is not exact. http://localhost/cgi-bin/koha/opac-search.pl?type=opac&q=1&idx=an Will bring up all records with an authority number starting with one. The link in intranet works correctly: http://localhost:8080/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=1 Changing the opac link accordingly brings up the right records: http://localhost/cgi-bin/koha/opac-search.pl?type=opac&q=1&idx=an,phr
Created attachment 4001 [details] [review] proposed patch
Created attachment 4018 [details] [review] patch signed-off
Pushed, please test
comment from hdl: imho, phr is not really what we would like. What would best fit is the usage of ext... But that would require a change in the koha-Auth-Number indexing and reindexing the biblios.... use elm xxx$9 Koha-Auth-Number:w,Koha-Auth-Number:p,Koha-Auth-Number:n n declaration should be optionnal. Which may not be what we want either. there are other places where this is required and needed xslt, opac-detail and intranet detail hope that helps.
I copied the search string from intranet to opac, because it worked like I expected it to work in intranet. The search link is constructed quite differently from other places in Koha, like the XSLT files. So I am not sure more changes are needed. I had tested a search for the author from the OPAC detail page and it seemed to work ok. This needs more testing, but I think the patch will fix the described problem in OPAC's authority search.