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

(-)a/catalogue/search.pl (-4 / +4 lines)
Lines 557-569 for (my $i=0;$i<@servers;$i++) { Link Here
557
            my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
557
            my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
558
            my $views = { C4::Search::enabled_staff_search_views };
558
            my $views = { C4::Search::enabled_staff_search_views };
559
            if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) {
559
            if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) {
560
                print $cgi->redirect("/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=$biblionumber");
560
                print $cgi->redirect("/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=$biblionumber&found1=1");
561
            } elsif  ($defaultview eq 'marc' && $views->{can_view_MARC}) {
561
            } elsif  ($defaultview eq 'marc' && $views->{can_view_MARC}) {
562
                print $cgi->redirect("/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=$biblionumber");
562
                print $cgi->redirect("/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=$biblionumber&found1=1");
563
            } elsif  ($defaultview eq 'labeled_marc' && $views->{can_view_labeledMARC}) {
563
            } elsif  ($defaultview eq 'labeled_marc' && $views->{can_view_labeledMARC}) {
564
                print $cgi->redirect("/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=$biblionumber");
564
                print $cgi->redirect("/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=$biblionumber&found1=1");
565
            } else {
565
            } else {
566
                print $cgi->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber");
566
                print $cgi->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber&found1=1");
567
            } 
567
            } 
568
            exit;
568
            exit;
569
        }
569
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+7 lines)
Lines 1308-1313 Note that permanent location is a code, and location may be an authval. Link Here
1308
                }));
1308
                }));
1309
            [% END %]
1309
            [% END %]
1310
        });
1310
        });
1311
1312
        $(document).ready(function() {
1313
            var search_index = localStorage.getItem("cat_search_pulldown_selection");
1314
            var search_value = localStorage.getItem("searchbox_value");
1315
            if ( search_index ){ $('#cat-search-block select.advsearch').val(search_index)};
1316
            if ( search_value ){ $('#cat-search-block #search-form').val(search_value)};
1317
        });
1311
    </script>
1318
    </script>
1312
[% END %]
1319
[% END %]
1313
[% INCLUDE 'intranet-bottom.inc' %]
1320
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +7 lines)
Lines 149-154 $.fn.selectTabByID = function (tabID) { Link Here
149
            }
149
            }
150
        });
150
        });
151
        resetSearchContext();
151
        resetSearchContext();
152
        saveOrClearSimpleSearchParams();
152
    });
153
    });
153
    /* any link to launch a search except navigation links */
154
    /* any link to launch a search except navigation links */
154
    $("[href*='search.pl?']").not(".nav").not('.searchwithcontext').click(function(){
155
    $("[href*='search.pl?']").not(".nav").not('.searchwithcontext').click(function(){
Lines 341-343 function getContextBiblioNumbers() { Link Here
341
function resetSearchContext() {
342
function resetSearchContext() {
342
    setContextBiblioNumbers( new Array() );
343
    setContextBiblioNumbers( new Array() );
343
}
344
}
344
- 
345
346
function saveOrClearSimpleSearchParams() {
347
    // Simple masthead search - pass value for display on details page
348
    localStorage.setItem('cat_search_pulldown_selection', $("#cat-search-block select.advsearch").val() );
349
    localStorage.setItem('searchbox_value', $("#cat-search-block #search-form").val() );
350
}

Return to bug 23475