88 |
|
|
89 |
my ($isis_db, $mfn, $filter_coderef) = @_; |
my ($isis_db, $mfn, $filter_coderef) = @_; |
90 |
|
|
|
use Data::Dump qw/dump/; |
|
|
warn "fetch_rec filter_coderef = ", dump($filter_coderef), $/; |
|
|
|
|
91 |
my $rec = $isis_db->to_hash({ |
my $rec = $isis_db->to_hash({ |
92 |
mfn => $mfn, |
mfn => $mfn, |
93 |
include_subfields => 1, |
include_subfields => 1, |
94 |
hash_filter => sub { |
hash_filter => $filter_coderef, |
95 |
my ($l,$f) = @_; |
# hash_filter => sub { |
96 |
warn "## in hash_filter ($l,$f)\n"; |
# my ($l,$f) = @_; |
97 |
my $o = $filter_coderef->($l,$f); |
# warn "## in hash_filter ($l,$f)\n"; |
98 |
warn "## out hash_filter = $o\n"; |
# my $o = $filter_coderef->($l,$f) if ($filter_coderef); |
99 |
return $o; |
# warn "## out hash_filter = $o\n"; |
100 |
}, |
# return $o; |
101 |
|
# }, |
102 |
}); |
}); |
103 |
|
|
104 |
return $rec; |
return $rec; |