@@ -, +, @@ --- Koha/SuggestionEngine/Plugin/AuthorityFile.pm | 2 +- t/SuggestionEngine_AuthorityFile.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/Koha/SuggestionEngine/Plugin/AuthorityFile.pm +++ a/Koha/SuggestionEngine/Plugin/AuthorityFile.pm @@ -80,7 +80,7 @@ sub get_suggestions { { 'search' => "an=$auth->{'authid'}", relevance => $count--, - label => $auth->{summary}->{authorized}->[0] + label => $auth->{summary}->{authorized}->[0]->{heading} }; } return \@results; --- a/t/SuggestionEngine_AuthorityFile.t +++ a/t/SuggestionEngine_AuthorityFile.t @@ -22,7 +22,7 @@ $module->mock('SearchAuthorities', sub { 'reported_tag' => undef, 'even' => 0, 'summary' => { - 'authorized' => [ 'Cooking' ], + 'authorized' => [ { 'heading' => 'Cooking' } ], 'otherscript' => [], 'seefrom' => [ 'Cookery' ], 'notes' => [ 'Your quintessential poor heading selection' ], --