Lines 665-671
sub AddAuthority {
Link Here
|
665 |
my $value = $subfield->[1]; |
665 |
my $value = $subfield->[1]; |
666 |
$value =~ s/[\n\r]+/ /g; |
666 |
$value =~ s/[\n\r]+/ /g; |
667 |
$value =~ s/^\s+|\s+$|^\t+|\t+$//g; |
667 |
$value =~ s/^\s+|\s+$|^\t+|\t+$//g; |
668 |
$field->update( $key => $value ); |
668 |
$field->add_subfields( $key => $value ); # add subfield to the end of the subfield list |
|
|
669 |
$field->delete_subfield( pos => 0 ); # delete the subfield at the top of the subfield list |
669 |
} |
670 |
} |
670 |
} |
671 |
} |
671 |
} |
672 |
} |
672 |
- |
|
|