Bug 10455: (follow-up 3) Remove biblioitems.marc
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 25 Aug 2016 12:43:44 +0000 (13:43 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Oct 2016 14:35:00 +0000 (14:35 +0000)
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/BiblioUtils/Iterator.pm

index bc00036..ecc3727 100644 (file)
@@ -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<DBIx::Class::ResultSet> that provides a C<biblionumber>, and
-C<marc> or C<marcxml> column from the biblioitems table.
+C<marcxml> 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;