From: Jared Camins-Esakov <[email protected]>

Signed-off-by: Tomas Cohen Arazi <[email protected]>
---
 authorities/ysearch.pl |    4 ++--
 1 file 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.9.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to