From 2aa72529c0b411bf1b8367293ac885f836759a49 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 4 Sep 2015 13:00:48 +0100 Subject: [PATCH] Bug 12478: Fix error on indexing a specific record % perl misc/search_tools/rebuild_elastic_search.pl -bn 42 Can't locate object method "idnumber" via package "MARC::Record" at misc/search_tools/rebuild_elastic_search.pl line 171. 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 --- misc/search_tools/rebuild_elastic_search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/search_tools/rebuild_elastic_search.pl b/misc/search_tools/rebuild_elastic_search.pl index 9e15edb102..804bb64f68 100755 --- a/misc/search_tools/rebuild_elastic_search.pl +++ b/misc/search_tools/rebuild_elastic_search.pl @@ -125,7 +125,7 @@ if ($index_biblios) { $next = sub { my $r = shift @biblionumbers; return () unless defined $r; - return ($r, Koha::Biblio->get_marc_biblio($r, item_data => 1)); + return ($r, Koha::Biblio->get_from_biblionumber($r, item_data => 1 )); }; } else { my $records = Koha::Biblio->get_all_biblios_iterator(); -- 2.39.5