From 029a685b77be4f7ff0a3f228fd30934182afb0eb Mon Sep 17 00:00:00 2001
From: Jared Camins-Esakov <jcamins@cpbibliography.com>
Date: Tue, 7 Aug 2012 10:49:44 -0400
Subject: [PATCH] Bug 8520: fix authority display in autocomplete
Content-Type: text/plain; charset="UTF-8"

---
 authorities/ysearch.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/authorities/ysearch.pl b/authorities/ysearch.pl
index c9e7c47..6584123 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";
-- 
1.7.2.5