Lines 611-617
sub LinkBibHeadingsToAuthorities {
Link Here
|
611 |
# be included in the authority record. Strip those before creation |
611 |
# be included in the authority record. Strip those before creation |
612 |
next unless @auth_subfields; # Don't try to create a record if we have no fields; |
612 |
next unless @auth_subfields; # Don't try to create a record if we have no fields; |
613 |
my $last_sub = pop @auth_subfields; |
613 |
my $last_sub = pop @auth_subfields; |
614 |
$last_sub =~ s/[\s]*[,.:=;!%\/][\s]*$//; |
614 |
$last_sub =~ s/[\s]*[-,.:=;!%\/][\s]*$//; |
615 |
push @auth_subfields, $last_sub; |
615 |
push @auth_subfields, $last_sub; |
616 |
my $authfield = MARC::Field->new( $authority_type->auth_tag_to_report, '', '', @auth_subfields ); |
616 |
my $authfield = MARC::Field->new( $authority_type->auth_tag_to_report, '', '', @auth_subfields ); |
617 |
$marcrecordauth->insert_fields_ordered($authfield); |
617 |
$marcrecordauth->insert_fields_ordered($authfield); |