@@ -, +, @@ --- Koha/BiblioUtils/Iterator.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) --- a/Koha/BiblioUtils/Iterator.pm +++ a/Koha/BiblioUtils/Iterator.pm @@ -27,7 +27,7 @@ Koha::BiblioUtils::Iterator - iterates over biblios provided by a DBIx::Class::R This provides an iterator that gives the MARC::Record of each biblio that's returned by a L that provides a C, and -C or C column from the biblioitems table. +C column from the biblioitems table. =head1 SYNOPSIS @@ -92,14 +92,11 @@ sub next { my $marc; my $row = $self->{rs}->next(); return if !$row; - if ( $row->marc ) { - $marc = MARC::Record->new_from_usmarc( $row->marc ); - } - elsif ( $row->marcxml ) { + if ( $row->marcxml ) { $marc = MARC::Record->new_from_xml( $row->marcxml ); } else { - confess "No marc or marcxml column returned in the request."; + confess "No marcxml column returned in the request."; } my $bibnum; --