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:
parent
e79a1723c6
commit
b3aa9102bb
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue