Patrick Hochstenbach > Catmandu-MARC-0.219 > Catmandu::Fix::Condition::marc_match

Download:
Catmandu-MARC-0.219.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.219   Source   Latest Release: Catmandu-MARC-1.03

NAME ^

Catmandu::Fix::Condition::marc_match - Conditionals on MARC fields

SYNOPSIS ^

   # marc_match(MARC_PATH,REGEX)

   if marc_match('245','My funny title')
        add_field('my.funny.title','true')
   end

DESCRIPTION ^

Evaluate the enclosing fixes only if the MARC (sub)field matches a regular expression.

SEE ALSO ^

Catmandu::Fix

syntax highlighting: