Bug 29625: Fix var name in Koha::BiblioUtils get_all_biblios_iterator

In Koha::BiblioUtils, get_all_biblios_iterator method is a class level method like get_from_biblionumber.
So its first arg should be named $class instead of $self.
Even if this var in not used.

Test plan :
1) Run Elasticsearch full rebuild with and without patch
2) Check all biblio records are in index

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Fridolin Somers 2021-12-02 12:21:45 -10:00 committed by Kyle Hall
parent e79a1723c6
commit b3aa9102bb
1 changed files with 2 additions and 2 deletions

View File

@ -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";