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 $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.

  • name

    Name of book series.

    Parameter is required.

  • publisher

    Name of publishing house.

    Default value is undef.

  • series_ordinal

    Series ordinal.

    Default value is undef.

name

my $name = $obj->name;

Get name of book series.

Returns string.

place

my $place = $obj->publisher;

Get name of publishing house.

Returns string.

series_ordinal

my $series_ordinal = $obj->series_ordinal;

Get series ordinal.

Returns string.

ERRORS

new():
        Parameter 'name' is required.

EXAMPLE1

use strict;
use warnings;

use Data::Printer;
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' => 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        "Mlad� Fronta",
#         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-2023

BSD 2-Clause License

VERSION

0.02