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:
parent
a877e49d10
commit
c60930eef1
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue