X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=extract_loadset;h=9b116cc33459552c09bc53e27fdaf1f4e6b724d3;hp=a4f41accb46024e3c59d37c41c042c06ffcf704c;hb=a380fedaa1169291647cf2881c5041485d1b34de;hpb=76574ae0d301dd1441181e47540c3e274caf4609 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+)