108 |
foreach my $type ( keys %$data ) { |
foreach my $type ( keys %$data ) { |
109 |
|
|
110 |
my $vals = $data->{$type}; |
my $vals = $data->{$type}; |
|
$vals =~ s{#\s*$}{}; |
|
|
|
|
|
my @vals = split(/\s*#\s*/, $vals); |
|
111 |
|
|
112 |
push @{ $response->{protocolOp}->{searchResEntry}->{attributes} }, |
push @{ $response->{protocolOp}->{searchResEntry}->{attributes} }, { |
113 |
{ type => $config->{overlay_prefix} . $type, vals => [ @vals ] }; |
type => $config->{overlay_prefix} . $type, |
114 |
|
vals => ref($vals) eq 'ARRAY' ? $vals : [ $vals ], |
115 |
|
}; |
116 |
} |
} |
117 |
} |
} |
118 |
|
|