--- trunk/run.pl 2006/05/16 15:23:12 516 +++ trunk/run.pl 2006/05/21 19:29:26 523 @@ -202,11 +202,13 @@ my $lookup = new WebPAC::Lookup( lookup_file => $input->{lookup}, - ); + ) if ($input->{lookup}); my $input_module = $config->{webpac}->{inputs}->{$type}; - $log->info("working on input '$input->{name}' in $input->{path} [type: $input->{type}] using $input_module lookup '$input->{lookup}'"); + $log->info("working on input '$input->{name}' in $input->{path} [type: $input->{type}] using $input_module", + $input->{lookup} ? "lookup '$input->{lookup}'" : "" + ); my $input_db = new WebPAC::Input( module => $input_module, @@ -222,12 +224,13 @@ my $maxmfn = $input_db->open( path => $input->{path}, code_page => $input->{encoding}, # database encoding + %{ $input }, ); my $n = new WebPAC::Normalize::XML( # filter => { 'foo' => sub { shift } }, db => $db, - lookup_regex => $lookup->regex, + lookup_regex => $lookup ? $lookup->regex : undef, lookup => $lookup, prefix => $input->{name}, ); @@ -288,7 +291,7 @@ $ds = WebPAC::Normalize::Set::data_structure( row => $row, rules => $rules, - lookup => $lookup->lookup_hash, + lookup => $lookup ? $lookup->lookup_hash : undef, ); $db->save_ds(