From 25801b44bb8d0c81b05230488842c05906b9d412 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 25 Aug 2016 13:43:44 +0100 Subject: [PATCH] Bug 10455: (follow-up 3) Remove biblioitems.marc Signed-off-by: Mason James Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall --- Koha/BiblioUtils/Iterator.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Koha/BiblioUtils/Iterator.pm b/Koha/BiblioUtils/Iterator.pm index bc0003617f..ecc3727644 100644 --- a/Koha/BiblioUtils/Iterator.pm +++ b/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; -- 2.39.5