Catmandu::Fix::Condition::marc_has
Test if a MARC (sub)field exists
- Provided by: libcatmandu-marc-perl (Version: 1.320-1)
- Report a bug
Test if a MARC (sub)field exists
# marc_has(MARC_PATH)
unless marc_has('245')
add_field('error.$append','no 245 value!')
end
Evaluate the enclosing fixes only if the MARC (sub)field exists.
Evaluates to true when the MARC_PATH values exists, false otherwise.
Catmandu::Fix::marc_has_many