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