DOKK / manpages / debian 12 / libcatmandu-marc-perl / Catmandu::Fix::marc_remove.3pm.en
Catmandu::Fix::marc_remove(3pm) User Contributed Perl Documentation Catmandu::Fix::marc_remove(3pm)

Catmandu::Fix::marc_remove - remove marc (sub)fields

    # remove all marc 600 fields
    marc_remove('600')
    # remove the 245-a subfield
    marc_remove('245a')

Remove (sub)fields in a MARC record

Delete the (sub)fields from the MARC record as indicated by the MARC_PATH.

This Fix can be used inline in a Perl script:

    use Catmandu::Fix::marc_remove as => 'marc_remove';
    my $data = { record => [...] };
    $data = marc_remove($data,'600');

Catmandu::Fix::marc_add, Catmandu::Fix::marc_copy, Catmandu::Fix::marc_cut, Catmandu::Fix::marc_paste, Catmandu::Fix::marc_set

2022-09-27 perl v5.34.0