MARC::Spec::Indicator(3pm)

MARC::Spec::Indicator3pm

Indicator specification

Usage

    use MARC::Spec::Indicator;
    
    my $indicator = MARC::Spec::Indicator->new('2');
    say ref $indicator;           # MARC::Spec::Indicator
    say $field->position;         # 2

Overview

MARC::Spec::Indicator is the indicator specification of a MARC::Spec.

See MARCspec - A common MARC record path language <http://marcspec.github.io/MARCspec/> for further details on the syntax.

Methods

new(Str)

Create a new MARC::Spec::Indicator instance. Parameter must be a valid MARCspec indicatorPosition.

add_subspec(MARC::Spec::Subspec)

Appends a subspec to the array of the attribute subspecs. Parameter must be an instance of MARC::Spec::Subspec.

add_subspecs(ArrayRef[MARC::Spec::Subspec])

Appends subspecs to the array of the attribute subspecs. Parameter must be an ArrayRef and elements must be instances of MARC::Spec::Subspec.

to_string

Returns the spec as a string.

Predicates

has_position

True if attribute position has an value and false otherwise.

has_subspecs

Returns true if attribute subspecs has an value and false otherwise.

Attributes

Some attributes are inherited from MARC::Spec::Structure.

base

Obligatory. Scalar. The base Field spec without subspecs.

position

Obligatory. The indicator position.

subspecs

Optional. An array of instances of MARC::Spec::Subspec, thus all subspecs in this array MUST be validated as a combination with the boolean 'AND', and/or an array of arrays (AoA) of instances of MARC::Spec::Subspec, thus all subspecs in this AoA must be validated as a combination with the boolean 'OR'.

See MARC::Spec::Subspec for description of attributes of MARC::Spec::Subspec.

Contributors

•

Johann Rolschewski, "<jorol at cpan>"

Releases

4 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10–11
  2. 12–13

Author

Carsten Klee "<klee at cpan.org>"

Bugs

Please report any bugs to <https://github.com/MARCspec/MARC-Spec/issues>

From libmarc-spec-perl 2.0.3-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.