2 # small script that dumps an iso2709 file.
8 use MARC::File::USMARC;
13 my ( $input_marc_file,$number) = ('',0);
16 'file:s' => \$input_marc_file,
21 if ($version || ($input_marc_file eq '')) {
23 small script to dump an iso2709 file.
25 \tv : this version/help screen
26 \tfile /path/to/file/to/dump : the file to dump
27 \tn : the number of the record to dump. If missing, all the file is dumped
28 SAMPLE : ./dumpmarc.pl -file /home/paul/koha.dev/local/npl -n 1
34 my $batch = MARC::Batch->new( 'USMARC', $input_marc_file );
35 $batch->warnings_off();
38 while ( my $record = $batch->next() ) {
39 print "\n".$record->as_formatted() if ($i eq $number || $number eq 0);