fixing bug 567 : The same changes that were made to opac-search.pl need to be

applied to catalogue-search.pl so the intranet search will work properly.
This commit is contained in:
tipaul 2003-08-08 13:46:26 +00:00
parent a877e49d10
commit c60930eef1

View file

@ -23,7 +23,14 @@ my ($template, $loggedinuser, $cookie)
my ($branchcount,@branches)=branches();
my ($itemtypecount,@itemtypes)=getitemtypes();
my $classlist='';
my $classlist='';
my $dbh=C4::Context->dbh;
my $sth=$dbh->prepare("select description,itemtype from itemtypes order by description");
$sth->execute;
while (my ($description,$itemtype) = $sth->fetchrow) {
$classlist.="<option value=\"$itemtype\">$description\n";
}
$template->param(classlist => $classlist,
type => 'intranet',
branches=>\@branches,