}
};
if ( $search->{authtypecode} ) {
$query->{query}->{bool}->{filter} = { term => { 'authtype' => lc $search->{authtypecode} } };
$query->{query}->{bool}->{filter} = { term => { 'authtype.raw' => $search->{authtypecode} } };
my %s;
-