[Koha-patches] [PATCH] Bug 8520: fix authority display in autocomplete
Tomas Cohen Arazi
tomascohen at gmail.com
Tue Aug 7 17:00:08 CEST 2012
From: Jared Camins-Esakov <jcamins at cpbibliography.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
---
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
More information about the Koha-patches
mailing list