16 |
|
|
17 |
=head1 VERSION |
=head1 VERSION |
18 |
|
|
19 |
Version 0.02 |
Version 0.03 |
20 |
|
|
21 |
=cut |
=cut |
22 |
|
|
23 |
our $VERSION = '0.02'; |
our $VERSION = '0.03'; |
24 |
|
|
25 |
=head1 SYNOPSIS |
=head1 SYNOPSIS |
26 |
|
|
57 |
if (my $path = $self->{path}) { |
if (my $path = $self->{path}) { |
58 |
open($self->{fh}, '>', $path) || |
open($self->{fh}, '>', $path) || |
59 |
$log->logdie("can't open MARC output $path: $!"); |
$log->logdie("can't open MARC output $path: $!"); |
60 |
|
binmode($self->{fh}, ':utf8'); |
61 |
|
|
62 |
$log->info("Creating MARC export file $path", $self->{lint} ? ' (with lint)' : '', "\n"); |
$log->info("Creating MARC export file $path", $self->{lint} ? ' (with lint)' : '', "\n"); |
63 |
} else { |
} else { |
151 |
); |
); |
152 |
} |
} |
153 |
|
|
154 |
{ |
print {$self->{fh}} $marc->as_usmarc; |
|
use bytes; |
|
|
print {$self->{fh}} $marc->as_usmarc; |
|
|
} |
|
155 |
|
|
156 |
} |
} |
157 |
|
|