diff --git a/koha-tmpl/opac-tmpl/default/en/opac-search.tmpl b/koha-tmpl/opac-tmpl/default/en/opac-search.tmpl
index 68cf782055..1ab7e075c1 100644
--- a/koha-tmpl/opac-tmpl/default/en/opac-search.tmpl
+++ b/koha-tmpl/opac-tmpl/default/en/opac-search.tmpl
@@ -39,7 +39,7 @@ type=radio name=ttype value=exact>Exact
diff --git a/opac/opac-search.pl b/opac/opac-search.pl
index 824190457d..129c794892 100755
--- a/opac/opac-search.pl
+++ b/opac/opac-search.pl
@@ -5,6 +5,16 @@ require Exporter;
use C4::Output;
use CGI;
use C4::Auth;
+use C4::Context;
+
+my $classlist='';
+my $dbh=C4::Context->dbh();
+my $sth=$dbh->prepare("select groupname,itemtypes from itemtypesearchgroups order by groupname");
+$sth->execute;
+while (my ($groupname,$itemtypes) = $sth->fetchrow) {
+ $classlist.="