From f409df5878c70a2e30f4becd160394cf6397b553 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 --- authorities/ysearch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authorities/ysearch.pl b/authorities/ysearch.pl index c9e7c47063..65841232f9 100755 --- a/authorities/ysearch.pl +++ b/authorities/ysearch.pl @@ -69,9 +69,9 @@ my $i = 0; foreach my $result (@$results) { if($i > 0){ print ","; } my $value = ''; - my $authorized = $result->{'summary'}->{authorized}; + my $authorized = $result->{'summary'}->{'authorized'}; foreach my $heading (@$authorized) { - $value .= $heading . ' '; + $value .= $heading->{'heading'} . ' '; } $value = "{\"summary\":\"" . $value . "\"" . "}"; print nsb_clean($value) . "\n"; -- 2.39.5