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 <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2015-09-04 13:00:48 +01:00 committed by Tomas Cohen Arazi
parent 0b392ab179
commit d1621fee0b
1 changed files with 1 additions and 1 deletions

View File

@ -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();