From: Galen Charlton Date: Mon, 12 Oct 2009 14:23:33 +0000 (+0000) Subject: fixed minor errors in extract_loadset that prevent it from functioning X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=a380fedaa1169291647cf2881c5041485d1b34de fixed minor errors in extract_loadset that prevent it from functioning --- diff --git a/extract_loadset b/extract_loadset index a4f41ac..9b116cc 100755 --- a/extract_loadset +++ b/extract_loadset @@ -12,13 +12,15 @@ initialize($conf); open FP, '<', shift or die "Can't open matchset file: $!\n"; my %exclude = (); while () { + chomp; my ($lead,$sub) = split /\t/; + $sub =~ s/\s//g; # any whitespace is extraneous $exclude{$sub} = 1 unless ($sub < $conf->{lowerbound}); } close FP; # strip exclusions from marcxml file -open MI, '<', $conf->{marc} or die "Can't open input file: $!\n"; +open MI, '<', $conf->{input} or die "Can't open input file: $!\n"; open MO, '>', $conf->{output} or die "Can't open output file: $!\n"; while () { m/tag="$conf->{tag}",+?(\d+)