NAME

PICA::Data::Field - PICA+ Field

DESCRIPTION

A PICA::Data::Field is a blessed array reference with tag, occurrence, subfields, and optional annotation.

METHODS

new( $tag, [$occ,] @subfields [,$annotation] )

Create a new PICA+ field. Will die on invalid tag, occurrence, subfield code or annotation.

level

Get the record level (0, 1, or 2).

tag( [$value] )

Get or set the tag.

occurrence( [$value] )

Get or set the occurrence.

id

Get the field identifier (tag and optional occurrence).

subfields( [ $code => $value, ...] )

Set all subfields if arguments are given. Otherwise return a Hash::MultiValue of all subfields. Use it's getter methods to access subfield values. Changing subfields this way won't work!

set( $code => $value )

Set or append a subfield.

equal( $field )

Check whether the field is equal to another field.

clone

Return a copy of this field.

SEE ALSO

Full records are processed as PICA::Data objects.