--- Webpacus/lib/Webpacus/Model/WebPAC.pm 2005/11/25 19:19:55 150 +++ Webpacus/lib/Webpacus/Model/WebPAC.pm 2005/11/26 01:54:42 155 @@ -11,6 +11,7 @@ use WebPAC::Output::TT; use WebPAC::Search::Estraier 0.02; use File::Slurp; +use Time::HiRes; =head1 NAME @@ -98,6 +99,12 @@ "'" ); + # save config parametars in object + foreach my $f (qw/hits_on_page/) { + $self->{$_} = $c->config->{$_}; + $log->debug("self->{$_} = " . $c->config->{$_}); + } + return $self; } @@ -126,10 +133,16 @@ my $m->search( phrase => 'query phrase', - template => 'result_template.tt', add_attr => \@add_attr + get_attr => [ '@uri' ], + max => 42, + template => 'result_template.tt', ); +All fields are standard C parametars except +C