Created attachment 2986 [details] [review] Fixes the search queries of the SearchAuthorities subroutine. With some types of authority searches, a ZOOM error is sent : Example 1: In /koha/authorities/authorities-home.pl , If I search for a "Corporate Name" without entering any search term, I get the error : ZOOM error 20003 "can't set prefix query" (addinfo: "@or @attr 7=1 @attr 1=Heading 0 @and @attr 1=authtype @attr 5=100 CORPO_NAME") from diag-set 'ZOOM' Example 2: When adding or modifying a MARC record, click on the "..." next to the 100$a field to do an authority search. In the search window, any search with 0 or more than 1 search term returns a ZOOM error : ZOOM error 20003 "can't set prefix query" (addinfo: "@or @attr 7=1 @attr 1=Heading 0 @and @attr 1=authtype @attr 5=100 PERSO_NAME @attr 1=Heading @attr 5=1 @attr 4=6 "test" @attr 1=Heading @attr 5=1 @attr 4=6 "test"") from diag-set 'ZOOM' There was a problem in the way the SearchAuthorities subroutine in C4/AuthoritiesMarc.pm created its search queries. Patch attached to correct the problem.
I confirm this bug. I send a patch since I can't sign on the previous one. http://lists.koha-community.org/pipermail/koha-patches/2011-January/013677.html Please, Frédérick, test it and put a signed-off on it.
(In reply to comment #1) > I confirm this bug. I send a patch since I can't sign on the previous one. > > http://lists.koha-community.org/pipermail/koha-patches/2011-January/013677.html > > Please, Frédérick, test it and put a signed-off on it. I tested your version of the patch, but there is a small problem with it : If I do an empty search or a search sorted by "No order", I still get errors. I think the patch I attached with my bug report fixes the problem better. Still waiting for somebody to test it and sign off.
*** This bug has been marked as a duplicate of bug 4309 ***