From ef7c96ed44449c2d4cef52bdc8a48cda149b7f48 Mon Sep 17 00:00:00 2001 From: Shawn Boyette Date: Tue, 16 Dec 2008 16:24:25 +0000 Subject: [PATCH] changed default XML exception file name --- marc-cleanup | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/marc-cleanup b/marc-cleanup index 8003ad1..3680815 100755 --- a/marc-cleanup +++ b/marc-cleanup @@ -180,10 +180,14 @@ sub do_automated_cleanups { sub stow_record_data { # get tag data if we're looking at it - if ($record[$ptr] =~ m/{'original-subfield'} and $1 == $conf->{'original-tag'}) { + if ($conf->{'original-subfield'} and + $recmeta{tag} == $conf->{'original-tag'}) { my $line = $record[$ptr]; my $lptr = $ptr; my $osub = $conf->{'original-subfield'}; $recmeta{oid} = 'NONE'; @@ -351,7 +356,7 @@ sub print_fullcontext { print $OUT $conf->{editmsg},"\n"; print $OUT "\r Tag:",$recmeta{tag}, " Ind1:'", $recmeta{ind1},"' Ind2:'", $recmeta{ind2}, "'"; - print $OUT " @ ", $conf->{ricount}, "/", $conf->{rocount} + 1,"\n"; + print $OUT " @ ", $conf->{ricount}, "/", $conf->{rocount} + 1; print_context(); return 0; } @@ -667,7 +672,7 @@ sub initialize { # defaults if ($c->{prefix}) { $c->{output} = join('.',$c->{prefix},'marc','xml'); - $c->{exception} = join('.',$c->{prefix},'ex','xml'); + $c->{exception} = join('.',$c->{prefix},'marc','ex'); } $c->{'renumber-tag'} = 903 unless defined $c->{'renumber-tag'}; $c->{'renumber-subfield'} = 'a' unless defined $c->{'renumber-subfield'}; -- 1.7.2.5