--- trunk/lib/WebPAC/Input/MARC.pm 2006/11/03 20:56:21 774 +++ trunk/lib/WebPAC/Input/MARC.pm 2007/10/29 23:20:13 908 @@ -5,6 +5,7 @@ use MARC::Fast 0.03; use base qw/WebPAC::Common/; +use Carp qw/confess/; =head1 NAME @@ -12,11 +13,11 @@ =head1 VERSION -Version 0.08 +Version 0.09 =cut -our $VERSION = '0.08'; +our $VERSION = '0.09'; =head1 SYNOPSIS @@ -82,8 +83,10 @@ if ($mfn > $self->{_marc_size}) { $self->_get_logger()->warn("seek beyond database size $self->{_marc_size} to $mfn"); } else { - my $row = $self->{_marc_db}->to_hash($mfn); + my $marc = $self->{_marc_db} || confess "no _marc_db?"; + my $row = $marc->to_hash($mfn); push @{$row->{'000'}}, $mfn; + push @{$row->{'leader'}}, $marc->last_leader; return $row; } }