MARC::SubjectMap::Rules - storage for rules


MARC-SubjectMap documentation  | view source Contained in the MARC-SubjectMap distribution.

Index


NAME

Top

MARC::SubjectMap::Rules - storage for rules

SYNOPSIS

Top

    my $rules = MARC::SubjectMap->new();
    $rules->addRule( $rule );

DESCRIPTION

Top

Since there may be a very large set of translation rules in a given configuration the MARC::SubjectMap::Rules class allows the rules and lookup tables to stored on disk rather than memory.

METHODS

Top

new()

Create rule storage.

addRule()

Add a rule to the rules storage. A rule must be a MARC::SubjectMap::Rule object.

    $rules->addRule( $rule );

getRule()

Look up a rule in storage using the field, subfield and original text. If no rule is found you will be returned undef.

    my $rule = $rules->getRule( field => '600', subfield => 'a', 
        original => 'Africa' );


MARC-SubjectMap documentation  | view source Contained in the MARC-SubjectMap distribution.