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 <abl@biblos.pk.edu.pl> Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
cbf3c9aa40
commit
f900ea03bf
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue