NAME

MARC::Convert::Wikidata::Object::Series - Bibliographic Wikidata object for series defined by MARC record.

SYNOPSIS

use MARC::Convert::Wikidata::Object::Series;

my $obj = MARC::Convert::Wikidata::Object::Series->new(%params);
my $issn = $obj->issn;
my $name = $obj->name;
my $publisher = $obj->publisher;
my $series_ordinal = $obj->series_ordinal;

METHODS

new

my $obj = MARC::Convert::Wikidata::Object::Series->new(%params);

Constructor.

Returns instance of object.

  • issn

    ISSN of series.

    Parameter is optional.

  • name

    Name of book series.

    Parameter is required.

  • publisher

    Publishing house MARC::Convert::Wikidata::Object::Publisher object.

    Default value is undef.

  • series_ordinal

    Series ordinal.

    Default value is undef.

name

my $name = $obj->name;

Get name of book series.

Returns string.

publisher

my $place = $obj->publisher;

Get publishing house.

Returns MARC::Convert::Wikidata::Object::Publisher object.

series_ordinal

my $series_ordinal = $obj->series_ordinal;

Get series ordinal.

Returns string.

ERRORS

new():
        From Mo::utils::check_isa():
                Parameter 'publisher' must be a 'MARC::Convert::Wikidata::Object::Publisher' object.
                        Value: %s
                        Reference: %s
        From Mo::utils::check_required():
                Parameter 'name' is required.

EXAMPLE1

use strict;
use warnings;

use Data::Printer;
use MARC::Convert::Wikidata::Object::Publisher;
use MARC::Convert::Wikidata::Object::Series;
use Unicode::UTF8 qw(decode_utf8);

my $obj = MARC::Convert::Wikidata::Object::Series->new(
        'name' => decode_utf8('Malé encyklopedie'),
        'publisher' => MARC::Convert::Wikidata::Object::Publisher->new(
                'name' => decode_utf8('Mladá Fronta'),
        ),
        'series_ordinal' => 5,
);

p $obj;

# Output:
# MARC::Convert::Wikidata::Object::Series  {
#     Parents       Mo::Object
#     public methods (6) : BUILD, can (UNIVERSAL), DOES (UNIVERSAL), check_required (Mo::utils), isa (UNIVERSAL), VERSION (UNIVERSAL)
#     private methods (1) : __ANON__ (Mo::is)
#     internals: {
#         name             "Mal� encyklopedie",
#         publisher        MARC::Convert::Wikidata::Object::Publisher,
#         series_ordinal   5
#     }
# }

DEPENDENCIES

Mo, Mo::utils.

SEE ALSO

MARC::Convert::Wikidata

Conversion class between MARC record and Wikidata object.

REPOSITORY

https://github.com/michal-josef-spacek/MARC-Convert-Wikidata-Object

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© Michal Josef Špaček 2021-2024

BSD 2-Clause License

VERSION

0.09