diff --git a/Koha/BiblioUtils.pm b/Koha/BiblioUtils.pm index 1ece4a8317..8301210de4 100644 --- a/Koha/BiblioUtils.pm +++ b/Koha/BiblioUtils.pm @@ -123,7 +123,7 @@ records instead of all. =cut sub get_all_biblios_iterator { - my ($self, %options) = @_; + my ($class, %options) = @_; my $search_terms = {}; my ($slice_modulo, $slice_count); @@ -153,7 +153,7 @@ sub get_all_biblios_iterator { biblionumber => $row->biblionumber, embed_items => 1 }); my $next = eval { - __PACKAGE__->new($marc, $row->biblionumber); + $class->new($marc, $row->biblionumber); }; if ($@) { warn "Something went wrong reading record for biblio $row->biblionumber: $@\n";