From: Shawn Boyette Date: Tue, 7 Oct 2008 17:53:01 +0000 (+0000) Subject: subfield should be specifiable as well X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=46b6d1113cda653e8be2c62f7f97ca88a6f593e5 subfield should be specifiable as well --- diff --git a/marc-cleanup b/marc-cleanup index a1616fd..8b139b2 100755 --- a/marc-cleanup +++ b/marc-cleanup @@ -231,7 +231,8 @@ sub write_record { # add 903(?) with new record id if ($conf->{'renumber-from'}) { - print $FH '', + print $FH '', + '', $conf->{'renumber-from'}, ''; print $FH "\n" unless $conf->{oneperline}; $conf->{'renumber-from'}++; @@ -479,6 +480,7 @@ sub initialize { 'renumber-from|rf=i', 'original-tag|ot=i', 'renumber-tag|rt=i', + 'renumber-subfield|rt=i', 'help|h', ); show_help() unless $rc; @@ -488,6 +490,7 @@ sub initialize { $c->{output} = 'incoming.cleaned.marc.xml' unless defined $c->{output}; $c->{exception} = 'incoming.exception.marc.xml' unless defined $c->{exception}; $c->{'renumber-tag'} = 903 unless defined $c->{'renumber-tag'}; + $c->{'renumber-subfield'} = 'a' unless defined $c->{'renumber-subfield'}; my @keys = keys %{$c}; show_help() unless (@ARGV and @keys);