View | Details | Raw Unified | Return to bug 14351
Collapse All | Expand All

(-)a/opac/opac-search.pl (-8 / +8 lines)
Lines 189-201 if ($cgi->param("returntosearch")) { Link Here
189
}
189
}
190
if ($cgi->cookie("search_path_code")) {
190
if ($cgi->cookie("search_path_code")) {
191
    my $pathcode = $cgi->cookie("search_path_code");
191
    my $pathcode = $cgi->cookie("search_path_code");
192
    given ($pathcode)
192
    if ($pathcode eq '"ads"') {
193
    {
193
        $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?returntosearch=1');
194
        when ('"ads"') { $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?returntosearch=1'); }
194
    }
195
        when ('"exs"') {
195
    elsif ($pathcode eq '"exs"') {
196
            $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?expanded_options=1&returntosearch=1');
196
         $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?expanded_options=1&returntosearch=1');
197
        }
197
    }
198
        default {warn "ReturnPath swith error";}
198
    else {
199
        warn "ReturnPath switch error";
199
    }
200
    }
200
}
201
}
201
202
202
- 

Return to bug 14351