<<

NAME

Koha::MarcOverlayRules - Koha MarcOverlayRules Object set class

API

Class methods

operations

Returns a list of all valid operations.

context_rules

    my $rules = Koha::MarcOverlayRules->context_rules($context);

Gets all MARC overlay rules for the supplied $context (hashref with { module => filter, ... } values).

merge_records

    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.

find_or_create

Override find_or_create to clear marc overlay rules cache.

update

Override update to clear marc overlay rules cache.

delete

Override delete to clear marc overlay rules cache.

validate

    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.

object_class

<<