@@ -, +, @@ --- Koha/Biblio.pm | 2 +- misc/search_tools/rebuild_elastic_search.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/Koha/Biblio.pm +++ a/Koha/Biblio.pm @@ -93,7 +93,7 @@ It will return C if the biblio doesn't exist. sub get_from_biblionumber { my ($class, $bibnum, %options) = @_; - my $marc = get_marc_biblio($bibnum, %options); + my $marc = $class->get_marc_biblio($bibnum, %options); return $class->new($marc, $bibnum); } --- a/misc/search_tools/rebuild_elastic_search.pl +++ a/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(); --