(bug #3459) fix opac-topissue to take care of ccode
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Fri, 31 Jul 2009 15:05:27 +0000 (17:05 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:45 +0000 (23:19 +0200)
This bugfix, add a conditionnal sql request, that get the "ccode" document type if AdvancedSearchTypes is positionned to ccode.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
opac/opac-topissues.pl

index 48d1c6c..45130c7 100755 (executable)
@@ -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 $//;