The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catmandu::Fix::marc_append - add a value at the end of a MARC field

SYNOPSIS

    # Append a period at the end of the 100 field
    marc_append(100,".")

DESCRIPTION

Append a value at the end of a MARC (sub)field

METHODS

marc_append(MARC_PATH , VALUE)

For each (sub)field matching the MARC_PATH append the VALUE to the last subfield. This value can be a literal or reference an existing field in the record using the dollar JSON_PATH syntax.

INLINE

This Fix can be used inline in a Perl script:

    use Catmandu::Fix::marc_replace_all as => 'marc_replace_all';

    my $data = { record => [...] };

    $data = marc_replace_all($data, '245a', 'test' , 'rest');

SEE ALSO

Catmandu::Fix