[Koha-bugs] [Bug 21581] Matching rules for authorities do not respect 'Search index' setting

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 6 10:55:42 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21581

--- Comment #14 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
(In reply to Janusz Kaczmarek from comment #13)
> (In reply to Janusz Kaczmarek from comment #12)
> > It seems to me that this patch creates a problem with Zebra searches while
> > queryparser is off. 
> > 
> > Could you please verify the following scenario: search engine zebra, query
> > parser off, and let's do an authority search for e.g. authority number or
> > whatsoever with "Search entire record" (the forth option). Zebra gets the
> > query:
> > 
> > @or @attr 1=Heading @attr 7=1 0 @attr 4=6 @attr 5=1 @attr 1=all <search term>
> > 
> > and answers ERROR 114, that is unknown use attribute.  In fact, the attr-1
> > 'all' is not defined.  Before that patch 'all' was changed into @attr 1=Any.
> > Now it seems to create problems.
> > 
> > Tests were done with 18.05.06.
> > 
> > Thank you for verifying this.
> 
> My fast work around is:
> 
> --- a/C4/AuthoritiesMarc.pm
> +++ b/C4/AuthoritiesMarc.pm
> @@ -163,6 +163,9 @@ sub SearchAuthorities {
>                  elsif ( @$tags[$i] eq "thesaurus" ) {
>                      $attr = " \@attr 1=Subject-heading-thesaurus ";
>                  }
> +                elsif ( @$tags[$i] eq "all" ) {
> +                    $attr = " \@attr 1=Any ";
> +                }
>                  else {    # Use the index passed in params
>                      $attr = " \@attr 1=" . @$tags[$i] . " ";
>                  }
> 
> but I'm not sure if it wouldn't destruct the idea of the author of this
> patch, so I'm not submitting it.

Thanks for your work.
But please open a new bug report, this one is already pushed to git branches.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list