From f900ea03bf15746bd2c310b59f2fb06972f6bdee Mon Sep 17 00:00:00 2001 From: Liz Date: Wed, 24 Jun 2015 09:52:05 +0000 Subject: [PATCH] Bug 14450: itemsearch no longer working To test: Click Advanced search in staff client Click the link for "Go to Item Search" at the top of the page Do a search, you should get results. Try some combinations and make sure it works like it should. Signed-off-by: Jacek Ablewicz Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- catalogue/itemsearch.pl | 4 ++-- .../catalogue/{itemsearch.csv.tt => itemsearch_csv.tt} | 0 .../catalogue/{itemsearch.json.tt => itemsearch_json.tt} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/{itemsearch.csv.tt => itemsearch_csv.tt} (100%) rename koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/{itemsearch.json.tt => itemsearch_json.tt} (100%) diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl index e66aa4f498..d86d0b5c89 100755 --- a/catalogue/itemsearch.pl +++ b/catalogue/itemsearch.pl @@ -37,7 +37,7 @@ my %params = $cgi->Vars; my $format = $cgi->param('format'); my ($template_name, $content_type); if (defined $format and $format eq 'json') { - $template_name = 'catalogue/itemsearch.json.tt'; + $template_name = 'catalogue/itemsearch_json.tt'; $content_type = 'json'; # Map DataTables parameters with 'regular' parameters @@ -69,7 +69,7 @@ if (defined $format and $format eq 'json') { $cgi->param('op', @op); $cgi->param('c', @c); } elsif (defined $format and $format eq 'csv') { - $template_name = 'catalogue/itemsearch.csv.tt'; + $template_name = 'catalogue/itemsearch_csv.tt'; # Retrieve all results $cgi->param('rows', 0); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.csv.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch_csv.tt similarity index 100% rename from koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.csv.tt rename to koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch_csv.tt diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.json.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch_json.tt similarity index 100% rename from koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.json.tt rename to koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch_json.tt -- 2.39.5