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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-2 / +2 lines)
Lines 521-529 $(document).ready(function() { Link Here
521
        ];
521
        ];
522
        Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/'});
522
        Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/'});
523
        [% IF ( expanded_options ) %]
523
        [% IF ( expanded_options ) %]
524
            Cookies.set("search_path_code", JSON.stringify('exs'), { path: '/'});
524
            Cookies.set("search_path_code", 'exs', { path: '/'});
525
        [% ELSE %]
525
        [% ELSE %]
526
            Cookies.set("search_path_code", JSON.stringify('ads'), { path: '/'});
526
            Cookies.set("search_path_code", 'ads', { path: '/'});
527
        [% END %]
527
        [% END %]
528
    });
528
    });
529
529
(-)a/opac/opac-search.pl (-3 / +2 lines)
Lines 205-214 if ($cgi->param("returntosearch")) { Link Here
205
}
205
}
206
if ($cgi->cookie("search_path_code")) {
206
if ($cgi->cookie("search_path_code")) {
207
    my $pathcode = $cgi->cookie("search_path_code");
207
    my $pathcode = $cgi->cookie("search_path_code");
208
    if ($pathcode eq '"ads"') {
208
    if ($pathcode eq 'ads') {
209
        $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?returntosearch=1');
209
        $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?returntosearch=1');
210
    }
210
    }
211
    elsif ($pathcode eq '"exs"') {
211
    elsif ($pathcode eq 'exs') {
212
         $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?expanded_options=1&returntosearch=1');
212
         $template->param('ReturnPath' => '/cgi-bin/koha/opac-search.pl?expanded_options=1&returntosearch=1');
213
    }
213
    }
214
    else {
214
    else {
215
- 

Return to bug 29940