|
Lines 82-88
subtest 'Templates applied using simple and advanced MARC Editor' => sub {
Link Here
|
| 82 |
); |
82 |
); |
| 83 |
my ($biblionumber) = AddBiblio($record, ''); |
83 |
my ($biblionumber) = AddBiblio($record, ''); |
| 84 |
|
84 |
|
| 85 |
my $saved_record = GetMarcBiblio($biblionumber, 0); |
85 |
my $saved_record = GetMarcBiblio({ biblionumber => $biblionumber, embed_items => 0 }); |
| 86 |
my $saved_record_250_field = $saved_record->field('250'); |
86 |
my $saved_record_250_field = $saved_record->field('250'); |
| 87 |
isa_ok($saved_record_250_field, 'MARC::Field', 'Field with tag 250 has been saved'); |
87 |
isa_ok($saved_record_250_field, 'MARC::Field', 'Field with tag 250 has been saved'); |
| 88 |
is($saved_record_250_field->subfield('a'), '250 bottles of beer on the wall', 'Field 250a has the same value passed to AddBiblio'); |
88 |
is($saved_record_250_field->subfield('a'), '250 bottles of beer on the wall', 'Field 250a has the same value passed to AddBiblio'); |
|
Lines 109-115
subtest 'Templates applied using simple and advanced MARC Editor' => sub {
Link Here
|
| 109 |
'Save bibliographic record using simple MARC editor' |
109 |
'Save bibliographic record using simple MARC editor' |
| 110 |
); |
110 |
); |
| 111 |
|
111 |
|
| 112 |
$saved_record = GetMarcBiblio($biblionumber, 0); |
112 |
$saved_record = GetMarcBiblio({ biblionumber => $biblionumber, embed_items => 0 }); |
| 113 |
$saved_record_250_field = $saved_record->field('250'); |
113 |
$saved_record_250_field = $saved_record->field('250'); |
| 114 |
is($saved_record_250_field->subfield('a'), '251 bottles of beer on the wall', 'Field with tag 250 has been modified by MARC modification template'); |
114 |
is($saved_record_250_field->subfield('a'), '251 bottles of beer on the wall', 'Field with tag 250 has been modified by MARC modification template'); |
| 115 |
|
115 |
|
| 116 |
- |
|
|