From c8c4cc1d5400555f4592736a9481b4daddb5ae0f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 Apr 2016 08:11:11 +0100 Subject: [PATCH] Bug 12478: Define simple_search_compat for Zebra When Zebra is defined as the search engine, the authority search is broken (Can't locate object method "simple_search_compat" via package "Koha::SearchEngine::Zebra::Search" at /home/koha/koha/C4/AuthoritiesMarc.pm line 357.) simple_search_compat is not defined in Koha::SearchEngine::Zebra::Search, it should be a wrapper for C4::Search::SimpleSearch Signed-off-by: Nick Clemens Signed-off-by: Jesse Weaver Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- Koha/SearchEngine/Zebra/Search.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Koha/SearchEngine/Zebra/Search.pm b/Koha/SearchEngine/Zebra/Search.pm index 2e4aad36fb..76a9afff5a 100644 --- a/Koha/SearchEngine/Zebra/Search.pm +++ b/Koha/SearchEngine/Zebra/Search.pm @@ -59,6 +59,18 @@ sub search_compat { return getRecords(@_); } +=head2 simple_search_compat + +This passes straight through to C4::Search::SimpleSearch. + +=cut + + +sub simple_search_compat { + shift; + return C4::Search::SimpleSearch(@_); +} + =head search_auth_compat This passes the search query on to C4::AuthoritiesMarc::SearchAuthorities -- 2.39.5