Koha::MarcOverlayRules - Koha MarcOverlayRules Object set class
Returns a list of all valid operations.
Returns a list of all modules in order of priority.
my $rules = Koha::MarcOverlayRules->context_rules($context);
Gets all MARC overlay rules for the supplied $context (hashref with { module => filter, ... } values).
my $merged_record = Koha::MarcOverlayRules->merge_records($old_record, $incoming_record, $context);
Overlay $old_record with $incoming_record applying overlay rules for $context. Returns merged record $merged_record. $old_record, $incoming_record and $merged_record are all MARC::Record objects.
Override find_or_create to clear marc overlay rules cache.
Override update to clear marc overlay rules cache.
Override delete to clear marc overlay rules cache.
Koha::MarcOverlayRules->validate($rule_data);
Validates $rule_data. Throws Koha::Exceptions::MarcOverlayRule::InvalidTagRegExp if $rule_data-{tag}> contains an invalid regular expression. Throws Koha::Exceptions::MarcOverlayRule::InvalidControlFieldActions if contains invalid combination of actions for control fields. Otherwise returns true.