63 |
|
|
64 |
return $tpl if (! $base_path); |
return $tpl if (! $base_path); |
65 |
|
|
66 |
|
#warn "base_path: $base_path, p: $p, path: $path, tpl: $tpl\n"; |
67 |
|
|
68 |
|
$p =~ s#/[^/]*$##; |
69 |
|
|
70 |
# strip everything to and including base path, leaving only |
# strip everything to and including base path, leaving only |
71 |
# additional (virtual) path |
# additional (virtual) path |
72 |
if ($base_path eq "/") { |
if ($base_path eq "/") { |
421 |
my $hits = $results->Hits; |
my $hits = $results->Hits; |
422 |
|
|
423 |
$tmpl->param('hits',$hits); |
$tmpl->param('hits',$hits); |
424 |
|
$tmpl->param('hits_gt_2',$hits > 2); |
425 |
my $search_msg = $sw_q; |
my $search_msg = $sw_q; |
426 |
$search_msg .= '<em>'.$swish_msg.'</em>' if ($swish_msg); |
$search_msg .= '<em>'.$swish_msg.'</em>' if ($swish_msg); |
427 |
$tmpl->param('search', $search_msg); |
$tmpl->param('search', $search_msg); |