@@ -, +, @@ links - Turn on the AuthorityFile und ExplodedTerms plugins for the OPAC from the "Did you mean" section of the administration module - Search a term in your OPAC where one or several authorities exist. A last name or a place name might work well. - Verify that there are suggestions displayed on top of your result list. - Verify that the link created is something like: /cgi-bin/koha/opac-search.pl?q=an=14084 - Apply patch. - Verify the link has changed a little and still works correctly: /cgi-bin/koha/opac-search.pl?q=an:14084 --- Koha/SuggestionEngine/Plugin/AuthorityFile.pm | 2 +- Koha/SuggestionEngine/Plugin/ExplodedTerms.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/Koha/SuggestionEngine/Plugin/AuthorityFile.pm +++ a/Koha/SuggestionEngine/Plugin/AuthorityFile.pm @@ -94,7 +94,7 @@ sub get_suggestions { foreach my $auth (@$searchresults) { push @results, { - 'search' => "an=$auth->{'authid'}", + 'search' => "an:$auth->{'authid'}", relevance => $count--, label => $auth->{summary}->{authorized}->[0]->{heading} }; --- a/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm +++ a/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm @@ -85,7 +85,7 @@ sub get_suggestions { my @results; foreach my $index (@indexes) { my $thissearch = $search; - $thissearch = "$index=$thissearch" + $thissearch = "$index:$thissearch" unless ( $thissearch =~ s/OP!/$index=/g ); $template->{VARS}->{index} = $index; my $label = $template->output; --