|
Lines 222-228
subtest 'export without record_type' => sub {
Link Here
|
| 222 |
}; |
222 |
}; |
| 223 |
|
223 |
|
| 224 |
subtest '_get_biblio_for_export' => sub { |
224 |
subtest '_get_biblio_for_export' => sub { |
| 225 |
plan tests => 4; |
225 |
plan tests => 5; |
| 226 |
|
226 |
|
| 227 |
my $biblio = $builder->build_sample_biblio( |
227 |
my $biblio = $builder->build_sample_biblio( |
| 228 |
{ |
228 |
{ |
|
Lines 281-286
subtest '_get_biblio_for_export' => sub {
Link Here
|
| 281 |
@items = $record->field($item_field_tag); |
281 |
@items = $record->field($item_field_tag); |
| 282 |
is( scalar @items, 0, "We should not have any items if we don't request items and pass a branch"); |
282 |
is( scalar @items, 0, "We should not have any items if we don't request items and pass a branch"); |
| 283 |
|
283 |
|
|
|
284 |
$record = Koha::Exporter::Record::_get_biblio_for_export( |
| 285 |
{ |
| 286 |
biblionumber => $biblionumber, |
| 287 |
export_items => 1, |
| 288 |
itemnumbers => [$item_branch_a->itemnumber], |
| 289 |
} |
| 290 |
); |
| 291 |
@items = $record->field($item_field_tag); |
| 292 |
is( scalar @items, 1, "We should have only items requested if we pass itemnumbers"); |
| 293 |
|
| 284 |
}; |
294 |
}; |
| 285 |
|
295 |
|
| 286 |
subtest '_get_record_for_export MARC field conditions' => sub { |
296 |
subtest '_get_record_for_export MARC field conditions' => sub { |
| 287 |
- |
|
|