Bug 8209 follow-up: fix failing test in AuthorityFile suggestion plugin
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 13 Sep 2012 11:38:58 +0000 (07:38 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 13 Sep 2012 11:59:24 +0000 (13:59 +0200)
The BuildSummary output changed slightly, resulting in labels not
showing up and a test failing.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Koha/SuggestionEngine/Plugin/AuthorityFile.pm

index 2636f83..54a7248 100644 (file)
@@ -80,7 +80,7 @@ sub get_suggestions {
           {
             'search'  => "an=$auth->{'authid'}",
             relevance => $count--,
-            label     => $auth->{summary}->{mainentry}
+            label     => $auth->{summary}->{authorized}->[0]
           };
     }
     return \@results;