forgot to put runtype in defaults set
[migration-tools.git] / fingerprinter
index ecc14aa..cbcc9f9 100755 (executable)
@@ -22,10 +22,11 @@ binmode(XF, ':utf8');
 
 for my $file (@ARGV) {
     print XF "Processing $file\n";
-    open my $records, '<:utf8', $file;
+    #open my $records, '<:utf8', $file; # This hack dosn't play nice with the use MARC::File::XML ( BinaryEncoding => 'utf-8' ); hack
     my $batch = undef; my $record = undef;
 
-    $batch = MARC::Batch->new('XML', $records);
+    #$batch = MARC::Batch->new('XML', $records); # The other part of the hack
+    $batch = MARC::Batch->new('XML', $file);
     $batch->strict_off();
     $batch->warnings_off();
 
@@ -305,11 +306,13 @@ sub initialize {
         $c->{subfield} = 'a' unless defined $c->{subfield};
         $c->{output} = 'incoming.fp' unless defined $c->{output};
         $c->{exception} = 'incoming.ex' unless defined $c->{exception};
+        $c->{runtype} = 'full' unless defined $c->{runtype};
     } elsif ($c->{incumbent}) {
         $c->{tag} = 901 unless defined $c->{tag};
         $c->{subfield} = 'c' unless defined $c->{subfield};
         $c->{output} = 'incumbent.fp' unless defined $c->{output};
         $c->{exception} = 'incumbent.ex' unless defined $c->{exception};
+        $c->{runtype} = 'full' unless defined $c->{runtype};
     }
 
     my @keys = keys %{$c};