/[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 657 by dpavlin, Mon Jan 31 12:08:35 2005 UTC revision 670 by dpavlin, Wed Feb 16 00:26:37 2005 UTC
# Line 328  sub show_results_list { Line 328  sub show_results_list {
328                  push @s_arr, $q->param("f$i")."_swish".$exact."=(".join(" or ",@swish_q).")";                  push @s_arr, $q->param("f$i")."_swish".$exact."=(".join(" or ",@swish_q).")";
329          }          }
330    
331          my $tmpl = $self->load_tmpl(url_ex($q,'results.html'), global_vars => 1);          my $tmpl = $self->load_tmpl(url_ex($q,'results.html'), global_vars => 1, die_on_bad_params => 0);
332    
333          $tmpl->param('url_params',"?".join("&",@url_params));          $tmpl->param('url_params',"?".join("&",@url_params));
334    
# Line 345  sub show_results_list { Line 345  sub show_results_list {
345                  push @persist_vars, "sort";                  push @persist_vars, "sort";
346          }          }
347    
348            my $sortby = $q->param("sortby");
349            if ($sortby) {
350                    $sort = $sortby;
351                    push @persist_vars, "sortby";
352            }
353            $tmpl->param('url_params_paths',"?".join("&",@url_params).'&'.join("&",map { my $t = $_; $t =~ s/\#/%23/g; "path=$t"; } @path_arr));
354    
355          # construct swish query          # construct swish query
356          my $sw_q = join(" and ",@s_arr);          my $sw_q = join(" and ",@s_arr);
357          if (@path_arr && $q->param('show_full')) {          if (@path_arr && $q->param('show_full')) {
# Line 462  sub show_index { Line 469  sub show_index {
469                  return $html;                  return $html;
470          }          }
471    
472          my $tmpl = $self->load_tmpl(url_ex($q,'index_res.html'), global_vars => 1);          my $tmpl = $self->load_tmpl(url_ex($q,'index_res.html'), global_vars => 1, die_on_bad_params => 0);
473          $tmpl->param('field',$field);          $tmpl->param('field',$field);
474          $tmpl->param('limit',$limit);          $tmpl->param('limit',$limit);
475          $tmpl->param('total',$total);          $tmpl->param('total',$total);

Legend:
Removed from v.657  
changed lines
  Added in v.670

  ViewVC Help
Powered by ViewVC 1.1.26