From a60d7cd7f2d6261d4dd37227dbf84e620665ae92 Mon Sep 17 00:00:00 2001 From: Liz Date: Wed, 24 Jun 2015 09:52:05 +0000 Subject: [PATCH] [SIGNED-OFF] 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 --- catalogue/itemsearch.pl | 4 ++-- .../en/modules/catalogue/{itemsearch.csv.tt => itemsearch_csv.tt} | 0 .../modules/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 e66aa4f..d86d0b5 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 -- 1.7.10.4