127 |
|
|
128 |
} |
} |
129 |
} |
} |
130 |
|
|
131 |
|
sub test_marc_clone { |
132 |
|
my $rec = shift; |
133 |
|
|
134 |
|
ok( _clean_ds(), '_clean_ds' ); |
135 |
|
ok( _set_ds( $rec ), '_set_ds' ); |
136 |
|
|
137 |
|
ok( marc_clone, 'marc_clone' ); |
138 |
|
|
139 |
|
ok(my $marc = WebPAC::Normalize::MARC::_get_marc_fields(), "_get_marc_fields"); |
140 |
|
diag "rec = ",dump( $rec ); |
141 |
|
diag "marc = ",dump( $marc ); |
142 |
|
|
143 |
|
is_deeply( $rec, $marc, 'same' ); |
144 |
|
|
145 |
|
} |
146 |
|
|
147 |
|
test_marc_clone( { |
148 |
|
'900' => [{ 'a' => '900a', 'b' => '900b', subfields => [ qw/a 0 b 0/ ] }], |
149 |
|
'901' => [{ 'c' => '901c', subfields => [ qw/c 0/ ] }], |
150 |
|
} ); |
151 |
|
|