# construct swish query
my $sw_q = join(" and ",@s_arr);
- if (@path_arr && $q->param('show_full')) {
+ if (@path_arr) {
$sw_q .= "and (swishdocpath=\"";
$sw_q .= join("\" or swishdocpath=\"",@path_arr);
$sw_q .= "\")";
- $tmpl->param('full',1); # show full records
- } elsif ($q->param('show_full')) {
+ }
+
+ if ($q->param('show_full')) {
# just show full path, no path defined
$tmpl->param('full',1);
} else {