/[webpac]/trunk/WebPac.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/WebPac.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 638 by dpavlin, Tue Jan 18 17:07:14 2005 UTC revision 639 by dpavlin, Wed Jan 19 22:34:31 2005 UTC
# Line 270  sub show_results_list { Line 270  sub show_results_list {
270    
271                  if ($q->param("e$i")) {                  if ($q->param("e$i")) {
272                          push @url_params,"e$i=".$q->url_param("e$i");                          push @url_params,"e$i=".$q->url_param("e$i");
273                          push @url_params_persist,"e$i=".$q->url_param("e$i");  #                       push @url_params_persist,"e$i=".$q->url_param("e$i");
274                  }                  }
275    
276                  my $wc="*";     # swish wildcard                  my $wc="*";     # swish wildcard
# Line 361  sub show_results_list { Line 361  sub show_results_list {
361    
362          # create new swish instance          # create new swish instance
363          my $swish = SWISH::API->new($INDEX);          my $swish = SWISH::API->new($INDEX);
364          $swish->AbortLastError if $swish->Error;          die $swish->ErrorString.": ".$swish->LastErrorMsg if $swish->Error;
365    
366          # execute query and get number of results from SWISH-E          # execute query and get number of results from SWISH-E
367          my $search = $swish->New_Search_Object;          my $search = $swish->New_Search_Object;
# Line 369  sub show_results_list { Line 369  sub show_results_list {
369          $search->SetSort($sort);          $search->SetSort($sort);
370    
371          my $results = $search->Execute($sw_q);          my $results = $search->Execute($sw_q);
372          $swish->AbortLastError if $swish->Error;          die $swish->ErrorString.": ".$swish->LastErrorMsg if $swish->Error;
373    
374          my $hits = $results->Hits;          my $hits = $results->Hits;
375    

Legend:
Removed from v.638  
changed lines
  Added in v.639

  ViewVC Help
Powered by ViewVC 1.1.26