MARC-Record
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/MARC/Field.pm view on Meta::CPAN
$field->update('IMchF');
Note: when doing subfield updates be aware that C<update()> will only
update the first occurrence. If you need to do anything more complicated
you will probably need to create a new field and use C<replace_with()>.
Returns the number of items modified.
=cut
sub update {
my $self = shift;
## tags 000 - 009 don't have indicators or subfields
if ( $self->is_control_field ) {
$self->{_data} = shift;
return(1);
}
## otherwise we need to update subfields and indicators
my @data = @{$self->{_subfields}};
lib/MARC/File/USMARC.pm view on Meta::CPAN
=head2 update_leader()
If any changes get made to the MARC record, the first 5 bytes of the
leader (the length) will be invalid. This function updates the
leader with the correct length of the record as it would be if
written out to a file.
=cut
sub update_leader {
my $self = shift;
my (undef,undef,$reclen,$baseaddress) = $self->_build_tag_directory();
$self->_set_leader_lengths( $reclen, $baseaddress );
}
=head2 _build_tag_directory()
Function for internal use only: Builds the tag directory that gets
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.185 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )