4 use MARC::File::XML ( BinaryEncoding => 'utf-8' );
6 use Unicode::Normalize;
10 binmode(STDOUT, ':utf8');
11 binmode(STDIN, ':utf8');
31 "checkin-in/check-out note"
34 foreach my $argnum ( 0 .. $#ARGV ) {
36 print STDERR "Processing " . $ARGV[$argnum] . "\n";
38 my $batch = MARC::Batch->new('XML',$ARGV[$argnum]);
40 $batch->warnings_off();
42 while ( my $record = $batch->next() ) {
46 print STDERR "WARNINGS: Record $count : " . join(":",@warnings) . " : continuing...\n" if ( @warnings );
47 my $my_903a = $record->field('903')->subfield('a'); # target bib id's here
48 my @tags = $record->field('949');
49 foreach my $tag ( @tags ) {
52 $tag->subfield('a') || '', # collection code
53 $tag->subfield('b') || '', # prefix
54 $tag->subfield('c') || '', # call number
55 $tag->subfield('d') || '', # cutter number
56 $tag->subfield('g') || '', # barcode
57 $tag->subfield('h') || '', # serial year
58 $tag->subfield('i') || '', # volume number
59 $tag->subfield('j') || '', # part subdivision 1
60 $tag->subfield('k') || '', # part subdivision 2
61 $tag->subfield('l') || '', # part subdivision 3
62 $tag->subfield('m') || '', # part subdivision 4
63 $tag->subfield('n') || '', # copy number
64 $tag->subfield('o') || '', # accession number
65 $tag->subfield('p') || '', # price
66 $tag->subfield('q') || '', # condition
67 $tag->subfield('5') || '', # magnetic media
68 $tag->subfield('7') || '' # checkin-in/check-out note
73 print STDERR "Processed $count records\n";