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

Download:
Catmandu-MARC-1.03.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.03   Source  

NAME ^

Catmandu::Fix::Condition::marc_match - Test if a MARC (sub)field matches a value

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.

METHODS ^

marc_match(MARC_PATH, REGEX)

Evaluates to true when the MARC_PATH values matches the REGEX, false otherwise.

SEE ALSO ^

Catmandu::Fix

syntax highlighting: