Catmandu::Fix::marc_append(3pm)

Catmandu::Fix::marc_append3pm

Add a value at the end of a marc field

Usage

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

Overview

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_append as => 'marc_append';
    my $data = { record => [...] };
    $data = marc_append($data, '100', '.');

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10–11
  2. 12
  3. 13

From libcatmandu-marc-perl 1.320-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.