Lines 635-653
sub generate_deleted_marc_records {
Link Here
|
635 |
} |
635 |
} |
636 |
|
636 |
|
637 |
sub get_corrected_marc_record { |
637 |
sub get_corrected_marc_record { |
638 |
my ($record_type, $record_number) = @_; |
638 |
my ( $record_type, $record_number ) = @_; |
639 |
|
639 |
|
640 |
my $marc = get_raw_marc_record($record_type, $record_number); |
640 |
my $marc = get_raw_marc_record( $record_type, $record_number ); |
641 |
|
641 |
|
642 |
if (defined $marc) { |
642 |
if ( defined $marc ) { |
643 |
fix_leader($marc); |
643 |
fix_leader($marc); |
644 |
if ($record_type eq 'authority') { |
644 |
if ( $record_type eq 'authority' ) { |
645 |
fix_authority_id($marc, $record_number); |
645 |
fix_authority_id( $marc, $record_number ); |
646 |
} elsif ($record_type eq 'biblio' && C4::Context->preference('IncludeSeeFromInSearches')) { |
646 |
} |
647 |
my $normalizer = Koha::RecordProcessor->new( { filters => 'EmbedSeeFromHeadings' } ); |
647 |
elsif ( $record_type eq 'biblio' ) { |
|
|
648 |
|
649 |
my @filters; |
650 |
push @filters, 'EmbedItemsAvailability'; |
651 |
push @filters, 'IncludeSeeFromInSearches' |
652 |
if C4::Context->preference('IncludeSeeFromInSearches'); |
653 |
|
654 |
my $normalizer = Koha::RecordProcessor->new( { filters => \@filters } ); |
648 |
$marc = $normalizer->process($marc); |
655 |
$marc = $normalizer->process($marc); |
649 |
} |
656 |
} |
650 |
if (C4::Context->preference("marcflavour") eq "UNIMARC") { |
657 |
if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) { |
651 |
fix_unimarc_100($marc); |
658 |
fix_unimarc_100($marc); |
652 |
} |
659 |
} |
653 |
} |
660 |
} |
654 |
- |
|
|