- push @{ $response->{protocolOp}->{searchResEntry}->{attributes} },
- { type => 'ffzg-datum_rodjenja', vals => [ '2009-01-01' ], }
- ;
+ warn "# ++ attrs ",dump( @attrs );
+
+ push @{ $response->{protocolOp}->{searchResEntry}->{attributes} }, $_ foreach @attrs;
+
+ my $path = $config->{yaml_dir} . "$uid.yaml";
+ if ( -e $path ) {
+ my $data = LoadFile($path);
+ warn "# yaml = ",dump($data);
+
+ foreach my $type ( keys %$data ) {
+
+ my $vals = $data->{$type};
+
+ push @{ $response->{protocolOp}->{searchResEntry}->{attributes} }, {
+ type => $config->{overlay_prefix} . $type,
+ vals => ref($vals) eq 'ARRAY' ? $vals : [ $vals ],
+ };
+ }
+ }