From 6190a20d091ce9a6fceb160597a35b8052413a49 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Fri, 31 Jul 2009 17:05:27 +0200 Subject: [PATCH] (bug #3459) fix opac-topissue to take care of ccode This bugfix, add a conditionnal sql request, that get the "ccode" document type if AdvancedSearchTypes is positionned to ccode. Signed-off-by: Chris Cormack --- opac/opac-topissues.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-topissues.pl b/opac/opac-topissues.pl index 48d1c6cadc..45130c7791 100755 --- a/opac/opac-topissues.pl +++ b/opac/opac-topissues.pl @@ -57,7 +57,7 @@ my $limit = $input->param('limit') || 10; my $branch = $input->param('branch') || ''; my $itemtype = $input->param('itemtype') || ''; my $timeLimit = $input->param('timeLimit') || 3; -my $whereclause; +my $whereclause=''; $whereclause .= ' AND items.homebranch='.$dbh->quote($branch) if ($branch); $whereclause .= ' AND TO_DAYS(NOW()) - TO_DAYS(biblio.datecreated) <= '.($timeLimit*30) if $timeLimit < 999; $whereclause =~ s/ AND $//; -- 2.39.5