Lines 84-93
sub print_collection {
Link Here
|
84 |
$end = MARC::File::XML::footer(); |
84 |
$end = MARC::File::XML::footer(); |
85 |
} |
85 |
} |
86 |
while ( my $element = $self->next ) { |
86 |
while ( my $element = $self->next ) { |
87 |
my $metadata = $element->metadata; |
87 |
my $schema = C4::Context->preference("marcflavour"); |
88 |
MARC::File::XML->default_record_format( $metadata->schema // C4::Context->preference("marcflavour") ) |
88 |
if ($element->can('record_schema')) { |
|
|
89 |
$schema = $element->record_schema; |
90 |
} |
91 |
MARC::File::XML->default_record_format( $schema ) |
89 |
if $format eq 'marcxml'; |
92 |
if $format eq 'marcxml'; |
90 |
push @parts, $serializers{$format}->( $metadata->record ); |
93 |
push @parts, $serializers{$format}->( $element->record ); |
91 |
} |
94 |
} |
92 |
return |
95 |
return |
93 |
( defined $start ? $start : '' ) |
96 |
( defined $start ? $start : '' ) |