From d2734f139e89c6d52c23f7e88fa35498c673aee5 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 18 Nov 2020 13:53:17 +0000 Subject: [PATCH] Bug 23475: (follow-up) Fix selectors and stray use statements --- catalogue/detail.pl | 3 --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 893ea41fc0..7b7f4d2944 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -21,7 +21,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use HTML::Entities; use Try::Tiny; -use Encode qw( decode_utf8 ); use C4::Auth; use C4::Context; use C4::Koha; @@ -52,8 +51,6 @@ use Koha::Virtualshelves; use Koha::Plugins; use Koha::SearchEngine::Search; -use URI::Escape; - my $query = CGI->new(); my $analyze = $query->param('analyze'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 0b1f261e1b..fc6745156f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1312,8 +1312,8 @@ Note that permanent location is a code, and location may be an authval. $(document).ready(function() { var search_index = localStorage.getItem("cat_search_pulldown_selection"); var search_value = localStorage.getItem("searchbox_value"); - if ( search_index ){ $('.advsearch[name="idx"]').val(search_index)}; - if ( search_value ){ $('#search-form').val(search_value)}; + if ( search_index ){ $('#cat-search-block select.advsearch').val(search_index)}; + if ( search_value ){ $('#cat-search-block #search-form').val(search_value)}; }); [% END %] -- 2.11.0