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.

METHODS

marc_match(MARC_PATH, REGEX)

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

SEE ALSO

Catmandu::Fix