From e74e5a504c958b06dc1e55e76ed8c2f4a42a643e Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Wed, 4 Mar 2015 18:19:25 +1300 Subject: [PATCH] Bug 12478: make authid get to the templates properly Signed-off-by: Nick Clemens Signed-off-by: Jesse Weaver Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Brendan Gallagher --- Koha/SearchEngine/Elasticsearch/Search.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/SearchEngine/Elasticsearch/Search.pm b/Koha/SearchEngine/Elasticsearch/Search.pm index d48bdcdfb1..e91e4f1fb4 100644 --- a/Koha/SearchEngine/Elasticsearch/Search.pm +++ b/Koha/SearchEngine/Elasticsearch/Search.pm @@ -161,7 +161,9 @@ sub search_auth_compat { # I wonder if these should be real values defined in the mapping # rather than hard-coded conversions. - $result{authid} = $record->{ Local-Number }; + # Our results often come through as nested arrays, to fix this + # requires changes in catmandu. + $result{authid} = $record->{ 'Local-Number' }[0][0]; # TODO put all this info into the record at index time so we # don't have to go and sort it all out now. -- 2.20.1