From 825c88a15dbb43d77d4554cdef12ae9c44e636a9 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Tue, 7 Aug 2012 10:49:44 -0400 Subject: [PATCH] Bug 8520: fix authority display in autocomplete Signed-off-by: Tomas Cohen Arazi Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- authorities/ysearch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authorities/ysearch.pl b/authorities/ysearch.pl index 561ae4e5d5..b5967d4a26 100755 --- a/authorities/ysearch.pl +++ b/authorities/ysearch.pl @@ -64,9 +64,9 @@ if ( $auth_status ne "ok" ) { my ( $results, $total ) = SearchAuthorities( \@marclist, \@and_or, \@excluding, \@operator, \@value, $startfrom * $resultsperpage, $resultsperpage, $authtypecode, $orderby ); foreach my $result (@$results) { my $value = ''; - my $authorized = $result->{'summary'}->{authorized}; + my $authorized = $result->{'summary'}->{'authorized'}; foreach my $heading (@$authorized) { - $value .= $heading . ' '; + $value .= $heading->{'heading'} . ' '; } # Removes new lines $value =~ s/
/ /g; -- 2.39.5