Provided by: libcatmandu-marc-perl_1.320-1_all 

NAME
Catmandu::Fix::Condition::marc_all_match - Test if a MARC (sub)field matches a value
SYNOPSIS
# marc_all_match(MARC_PATH,REGEX)
# Match when 245 contains the value "My funny title"
if marc_all_match('245','My funny title')
add_field('my.funny.title','true')
end
# Match when 245a contains the value "My funny title"
if marc_all_match('245a','My funny title')
add_field('my.funny.title','true')
end
# Match when all 650 fields contain digits
if marc_all_match('650','[0-9]')
add_field('has_digits','true')
end
DESCRIPTION
Evaluate the enclosing fixes only if the MARC (sub)field matches a regular expression. When the MARC
field is a repeated fiels, then all the MARC fields should match the regular expression.
METHODS
marc_all_match(MARC_PATH, REGEX)
Evaluates to true when all MARC_PATH values matches the REGEX, false otherwise.
SEE ALSO
Catmandu::Fix::Condition::marc_any_match
perl v5.38.2 2024-08-03 Catmandu::Fix::...:marc_all_match(3pm)