The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MARC::SubjectMap::Field - represent field/subfield combinations to examine

SYNOPSIS

DESCRIPTION

The MARC::SubjectMap configuration includes information about which field/subfield combinations to examine. This is contained in the configuration as a list of MARC::SubjectMap::Field objects which individually bundle up the information.

METHODS

new()

The constructor. Optionally you can supply tag, translate and copy during the constructor call instead of using the setters.

    my $f = MARC::Subject::Field->new( { tag => '650', copy => ['a','b'] } )

tag()

Returns the tag for the field, for example: 600 or 650.

translate()

Gets a list of subfields to translate in the field.

addTranslate()

Adds a subfield to translate.

copy()

Gets a list of subfields to copy in the field.

addCopy()

Adds a subfield to copy.

sourceSubfield()

When a new subfield is constructed for this field the $2 or source for the heading will be determined by the source for a particular subfield rule that was used when building the new field. Since subfield components could potentially have different sources sourceSubfield() lets you specify which subfield to pull the source from. If unspecified sourceSubfield() will always return 'a'.

indicator1()

Specify a value to limit by for the 1st indicator. Using this will mean that *only* fields with 1st indicator of this value will get processed. By default records will not be limited if this value is unspecified.

indicator2()

Same as indicator1() but for the 2nd indicator.