Catmandu::Fix::Condition::marc_spec_has(3pm)

Catmandu::Fix::Condition::marc_spec_has3pm

Test if a marcspec references data

Usage

   # marc_spec_has(MARCspec)
   unless marc_spec_has('LDR{/6=\a}{/7=\a|/7=\c|/7=\d|/7=\m}')
        set_field('type','Book')
   end

Overview

Evaluate the enclosing fixes only if the MARCspec does reference data.

Does the same like marc_has but uses MARCspec - A common MARC record path language.

See MARCspec - A common MARC record path language <http://marcspec.github.io/MARCspec/> for documentation on the path syntax.

Methods

marc_spec_has(MARCspec)

Evaluates to true when the MARCspec references data, false otherwise.

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.