Lines 386-392
subtest 'copy_field' => sub {
Link Here
|
386 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
386 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
387 |
is_deeply( |
387 |
is_deeply( |
388 |
\@fields_651a, |
388 |
\@fields_651a, |
389 |
[ 'Computer programming.', 'Computer algorithms.' ], |
389 |
[ 'Computer algorithms.' , 'Computer programming.' ], |
390 |
'Copy multivalued field' |
390 |
'Copy multivalued field' |
391 |
); |
391 |
); |
392 |
delete_field( { record => $record, field => '651' } ); |
392 |
delete_field( { record => $record, field => '651' } ); |
Lines 447-453
subtest 'copy_field' => sub {
Link Here
|
447 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
447 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
448 |
is_deeply( |
448 |
is_deeply( |
449 |
\@fields_651a, |
449 |
\@fields_651a, |
450 |
[ 'The art of programming.', 'The art of algorithms.' ], |
450 |
[ 'The art of algorithms.', 'The art of programming.' ], |
451 |
'Copy field using regex' |
451 |
'Copy field using regex' |
452 |
); |
452 |
); |
453 |
delete_field( { record => $record, field => '651' } ); |
453 |
delete_field( { record => $record, field => '651' } ); |
Lines 466-472
subtest 'copy_field' => sub {
Link Here
|
466 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
466 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
467 |
is_deeply( |
467 |
is_deeply( |
468 |
\@fields_651a, |
468 |
\@fields_651a, |
469 |
[ 'The mistake of programming.', 'The mistake of algorithms.' ], |
469 |
[ 'The mistake of algorithms.', 'The mistake of programming.' ], |
470 |
'Copy fields using regex on existing fields' |
470 |
'Copy fields using regex on existing fields' |
471 |
); |
471 |
); |
472 |
delete_field( { record => $record, field => '651' } ); |
472 |
delete_field( { record => $record, field => '651' } ); |
Lines 485-491
subtest 'copy_field' => sub {
Link Here
|
485 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
485 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
486 |
is_deeply( |
486 |
is_deeply( |
487 |
\@fields_651a, |
487 |
\@fields_651a, |
488 |
[ 'The art of programming.', 'The art of algorithms.', ], |
488 |
[ 'The art of algorithms.', 'The art of programming.', ], |
489 |
'Copy all fields using regex' |
489 |
'Copy all fields using regex' |
490 |
); |
490 |
); |
491 |
delete_field( { record => $record, field => '651' } ); |
491 |
delete_field( { record => $record, field => '651' } ); |
Lines 533-539
subtest 'copy_field' => sub {
Link Here
|
533 |
read_field( { record => $record, field => '652', subfield => 'a' } ); |
533 |
read_field( { record => $record, field => '652', subfield => 'a' } ); |
534 |
is_deeply( |
534 |
is_deeply( |
535 |
\@fields_652a, |
535 |
\@fields_652a, |
536 |
[ 'Cfoomputer programming.', 'Cfoomputer algorithms.' ], |
536 |
[ 'Cfoomputer algorithms.', 'Cfoomputer programming.' ], |
537 |
'Copy field using regex' |
537 |
'Copy field using regex' |
538 |
); |
538 |
); |
539 |
|
539 |
|
Lines 551-557
subtest 'copy_field' => sub {
Link Here
|
551 |
read_field( { record => $record, field => '653', subfield => 'a' } ); |
551 |
read_field( { record => $record, field => '653', subfield => 'a' } ); |
552 |
is_deeply( |
552 |
is_deeply( |
553 |
\@fields_653a, |
553 |
\@fields_653a, |
554 |
[ 'Cfoomputer prfoogramming.', 'Cfoomputer algfoorithms.' ], |
554 |
[ 'Cfoomputer algfoorithms.', 'Cfoomputer prfoogramming.' ], |
555 |
'Copy field using regex' |
555 |
'Copy field using regex' |
556 |
); |
556 |
); |
557 |
|
557 |
|
Lines 569-575
subtest 'copy_field' => sub {
Link Here
|
569 |
read_field( { record => $record, field => '654', subfield => 'a' } ); |
569 |
read_field( { record => $record, field => '654', subfield => 'a' } ); |
570 |
is_deeply( |
570 |
is_deeply( |
571 |
\@fields_654a, |
571 |
\@fields_654a, |
572 |
[ 'Cfoomputer programming.', 'Cfoomputer algorithms.' ], |
572 |
[ 'Cfoomputer algorithms.', 'Cfoomputer programming.' ], |
573 |
'Copy field using regex' |
573 |
'Copy field using regex' |
574 |
); |
574 |
); |
575 |
|
575 |
|
Lines 587-593
subtest 'copy_field' => sub {
Link Here
|
587 |
read_field( { record => $record, field => '655', subfield => 'a' } ); |
587 |
read_field( { record => $record, field => '655', subfield => 'a' } ); |
588 |
is_deeply( |
588 |
is_deeply( |
589 |
\@fields_655a, |
589 |
\@fields_655a, |
590 |
[ 'Cfoomputer prfoogramming.', 'Cfoomputer algfoorithms.' ], |
590 |
[ 'Cfoomputer algfoorithms.', 'Cfoomputer prfoogramming.' ], |
591 |
'Copy field using regex' |
591 |
'Copy field using regex' |
592 |
); |
592 |
); |
593 |
|
593 |
|
Lines 981-987
subtest 'copy_and_replace_field' => sub {
Link Here
|
981 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
981 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
982 |
is_deeply( |
982 |
is_deeply( |
983 |
\@fields_651a, |
983 |
\@fields_651a, |
984 |
[ 'Computer programming.', 'Computer algorithms.' ], |
984 |
[ 'Computer algorithms.', 'Computer programming.' ], |
985 |
'Copy and replace multivalued field (same as copy)' |
985 |
'Copy and replace multivalued field (same as copy)' |
986 |
); |
986 |
); |
987 |
delete_field( { record => $record, field => '651' } ); |
987 |
delete_field( { record => $record, field => '651' } ); |
Lines 1041-1047
subtest 'copy_and_replace_field' => sub {
Link Here
|
1041 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
1041 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
1042 |
is_deeply( |
1042 |
is_deeply( |
1043 |
\@fields_651a, |
1043 |
\@fields_651a, |
1044 |
[ 'The art of programming.', 'The art of algorithms.' ], |
1044 |
[ 'The art of algorithms.', 'The art of programming.' ], |
1045 |
'Copy and replace field using regex (same as copy)' |
1045 |
'Copy and replace field using regex (same as copy)' |
1046 |
); |
1046 |
); |
1047 |
delete_field( { record => $record, field => '651' } ); |
1047 |
delete_field( { record => $record, field => '651' } ); |
Lines 1060-1066
subtest 'copy_and_replace_field' => sub {
Link Here
|
1060 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
1060 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
1061 |
is_deeply( |
1061 |
is_deeply( |
1062 |
\@fields_651a, |
1062 |
\@fields_651a, |
1063 |
[ 'The mistake of programming.', 'The mistake of algorithms.' ], |
1063 |
[ 'The mistake of algorithms.', 'The mistake of programming.' ], |
1064 |
'Copy and replace fields using regex on existing fields (same as copy)' |
1064 |
'Copy and replace fields using regex on existing fields (same as copy)' |
1065 |
); |
1065 |
); |
1066 |
delete_field( { record => $record, field => '651' } ); |
1066 |
delete_field( { record => $record, field => '651' } ); |
Lines 1079-1085
subtest 'copy_and_replace_field' => sub {
Link Here
|
1079 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
1079 |
read_field( { record => $record, field => '651', subfield => 'a' } ); |
1080 |
is_deeply( |
1080 |
is_deeply( |
1081 |
\@fields_651a, |
1081 |
\@fields_651a, |
1082 |
[ 'The art of programming.', 'The art of algorithms.', ], |
1082 |
[ 'The art of algorithms.', 'The art of programming.', ], |
1083 |
'Copy and replace all fields using regex (same as copy)' |
1083 |
'Copy and replace all fields using regex (same as copy)' |
1084 |
); |
1084 |
); |
1085 |
delete_field( { record => $record, field => '651' } ); |
1085 |
delete_field( { record => $record, field => '651' } ); |
Lines 1127-1133
subtest 'copy_and_replace_field' => sub {
Link Here
|
1127 |
read_field( { record => $record, field => '652', subfield => 'a' } ); |
1127 |
read_field( { record => $record, field => '652', subfield => 'a' } ); |
1128 |
is_deeply( |
1128 |
is_deeply( |
1129 |
\@fields_652a, |
1129 |
\@fields_652a, |
1130 |
[ 'Cfoomputer programming.', 'Cfoomputer algorithms.' ], |
1130 |
[ 'Cfoomputer algorithms.', 'Cfoomputer programming.' ], |
1131 |
'Copy and replace field using regex (same as copy)' |
1131 |
'Copy and replace field using regex (same as copy)' |
1132 |
); |
1132 |
); |
1133 |
|
1133 |
|
Lines 1145-1151
subtest 'copy_and_replace_field' => sub {
Link Here
|
1145 |
read_field( { record => $record, field => '653', subfield => 'a' } ); |
1145 |
read_field( { record => $record, field => '653', subfield => 'a' } ); |
1146 |
is_deeply( |
1146 |
is_deeply( |
1147 |
\@fields_653a, |
1147 |
\@fields_653a, |
1148 |
[ 'Cfoomputer prfoogramming.', 'Cfoomputer algfoorithms.' ], |
1148 |
[ 'Cfoomputer algfoorithms.', 'Cfoomputer prfoogramming.' ], |
1149 |
'Copy and replace field using regex (same as copy)' |
1149 |
'Copy and replace field using regex (same as copy)' |
1150 |
); |
1150 |
); |
1151 |
|
1151 |
|
Lines 1163-1169
subtest 'copy_and_replace_field' => sub {
Link Here
|
1163 |
read_field( { record => $record, field => '654', subfield => 'a' } ); |
1163 |
read_field( { record => $record, field => '654', subfield => 'a' } ); |
1164 |
is_deeply( |
1164 |
is_deeply( |
1165 |
\@fields_654a, |
1165 |
\@fields_654a, |
1166 |
[ 'Cfoomputer programming.', 'Cfoomputer algorithms.' ], |
1166 |
[ 'Cfoomputer algorithms.', 'Cfoomputer programming.' ], |
1167 |
'Copy and replace field using regex (same as copy)' |
1167 |
'Copy and replace field using regex (same as copy)' |
1168 |
); |
1168 |
); |
1169 |
|
1169 |
|
Lines 1181-1187
subtest 'copy_and_replace_field' => sub {
Link Here
|
1181 |
read_field( { record => $record, field => '655', subfield => 'a' } ); |
1181 |
read_field( { record => $record, field => '655', subfield => 'a' } ); |
1182 |
is_deeply( |
1182 |
is_deeply( |
1183 |
\@fields_655a, |
1183 |
\@fields_655a, |
1184 |
[ 'Cfoomputer prfoogramming.', 'Cfoomputer algfoorithms.' ], |
1184 |
[ 'Cfoomputer algfoorithms.', 'Cfoomputer prfoogramming.' ], |
1185 |
'Copy and replace field using regex (same as copy)' |
1185 |
'Copy and replace field using regex (same as copy)' |
1186 |
); |
1186 |
); |
1187 |
|
1187 |
|