68 |
|
|
69 |
$self->{est} = new WebPAC::Search::Estraier( %{ $est_cfg } ); |
$self->{est} = new WebPAC::Search::Estraier( %{ $est_cfg } ); |
70 |
|
|
71 |
my $db_path = $c->config->{webpac}->{db_path}; |
# save config parametars in object |
72 |
my $template_path = $c->config->{webpac}->{template_path}; |
foreach my $f (qw/db_path template_path hits_on_page/) { |
73 |
$self->{template_path} = $template_path; |
$self->{$f} = $c->config->{hyperestraier}->{$f} || |
74 |
|
$c->config->{webpac}->{$f}; |
75 |
|
$log->debug("self->{$f} = " . $self->{$f}); |
76 |
|
} |
77 |
|
my $db_path = $self->{db_path}; |
78 |
|
my $template_path = $self->{template_path}; |
79 |
|
|
80 |
$log->debug("using db path '$db_path', template path '$template_path'"); |
$log->debug("using db path '$db_path', template path '$template_path'"); |
81 |
|
|
104 |
"'" |
"'" |
105 |
); |
); |
106 |
|
|
|
# save config parametars in object |
|
|
foreach my $f (qw/hits_on_page/) { |
|
|
$self->{$f} = $c->config->{hyperestraier}->{$f}; |
|
|
$log->debug("self->{$f} = " . $self->{$f}); |
|
|
} |
|
107 |
|
|
108 |
return $self; |
return $self; |
109 |
|
|