r1378@llin: dpavlin | 2007-10-30 21:32:15 +0100
[webpac2] / run.pl
diff --git a/run.pl b/run.pl
index 26c6b9a..fa58e14 100755 (executable)
--- a/run.pl
+++ b/run.pl
@@ -255,10 +255,7 @@ foreach my $database ( sort keys %{ $config->databases } ) {
 
                } elsif ($use_indexer eq 'kinosearch') {
 
-                       # open KinoSearch
-                       require WebPAC::Output::KinoSearch;
-                       $indexer_config->{clean} = 1 unless (-e $indexer_config->{index_path});
-                       $indexer = new WebPAC::Output::KinoSearch( %{ $indexer_config } );
+                       die "no longer supported";
 
                } else {
                        $log->logdie("unknown use_indexer: $use_indexer");
@@ -311,6 +308,8 @@ foreach my $database ( sort keys %{ $config->databases } ) {
                $module = 'WebPAC::Output::' . $module unless $module =~ m/::/;
                $log->debug("loading output module $module");
                eval "require $module";
+               $db_config->{output}->{database} = $database;
+               $log->debug("calling $module->new(",dump( $db_config->{output} ),")");
                my $out = new $module->new( $db_config->{output} );
                $out->init;
                push @outputs, $out;