<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    MARC::Convert::Wikidata::Object - Bibliographic Wikidata object defined
    by MARC record.

SYNOPSIS
     use MARC::Convert::Wikidata::Object;

     my $obj = MARC::Convert::Wikidata::Object-&gt;new(%params);
     my $authors_ar = $obj-&gt;authors;
     my $authors_of_afterword_ar = $obj-&gt;authors_of_afterword;
     my $authors_of_introduction_ar = $obj-&gt;authors_of_introduction;
     my $ccnb = $obj-&gt;ccnb;
     my $compilers = $obj-&gt;compilers;
     my $cover = $obj-&gt;cover;
     my $directors_ar = $obj-&gt;directors;
     my $dml = $obj-&gt;dml;
     my $edition_number = $obj-&gt;edition_number;
     my $editors_ar = $obj-&gt;editors;
     my $end_time = $obj-&gt;end_time;
     my $full_name = $obj-&gt;full_name;
     my $illustrators_ar = $obj-&gt;illustrators;
     my $isbns_ar = $obj-&gt;isbns;
     my $issn = $obj-&gt;issn;
     my $kramerius_ar = $obj-&gt;krameriuses;
     my $languages_ar = $obj-&gt;languages;
     my $narrators_ar = $obj-&gt;narrators;
     my $number_of_pages = $obj-&gt;number_of_pages;
     my $oclc = $obj-&gt;oclc;
     my $photographers_ar = $obj-&gt;photographers;
     my $publication_date = $obj-&gt;publication_date;
     my $publishers_ar = $obj-&gt;publishers;
     my $series_ar = $obj-&gt;series;
     my $start_time = $obj-&gt;start_time;
     my $subtitles_ar = $obj-&gt;subtitles;
     my $title = $obj-&gt;title;
     my $translators_ar = $obj-&gt;translators;

METHODS
  "new"
     my $obj = MARC::Convert::Wikidata::Object-&gt;new(%params);

    Constructor.

    Returns instance of object.

    *       "authors"

            List of authors. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "authors_of_afterword"

            List of authors of afterword. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "authors_of_introduction"

            List of authors of introduction. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "ccnb"

            ÄÄNB (ÄeskĂĄ nĂĄrodnĂ­ bibliografie) id.

            Default value is undef.

    *       "compilers"

            List of compilers. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "cover"

            Book cover. Possible values: * hardback * paperback

            Default value is undef.

    *       "directors"

            List of directors. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "dml"

            DML id.

            Default value is undef.

    *       "edition_number"

            Edition number.

            Default value is undef.

    *       "editors"

            List of editors. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "end_time"

            End time.

            Default value is undef.

    *       "illustrators"

            List of illustrators. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "isbns"

            List of ISBNs. Reference to array with
            MARC::Convert::Wikidata::Object::ISBN instances.

            Default value is reference to blank array.

    *       "issn"

            ISSN number.

            Default value is undef.

    *       "krameriuses"

            List of Kramerius systems with digitized scan. Reference to
            array with MARC::Convert::Wikidata::Object::Kramerius instances.

            Default value is reference to blank array.

    *       "languages"

            List of languages of book edition (TODO Format)

            Default value is reference to blank array.

    *       "narrators"

            List of narrators. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "number_of_pages"

            Number of pages.

            Default value is undef.

    *       "oclc"

            OCLC control number.

            Default value is undef.

    *       "photographers"

            List of photographers. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

    *       "publication_date"

            Publication date.

            Default value is undef.

    *       "publishers"

            List of Publishers. Reference to array with
            MARC::Convert::Wikidata::Object::Publisher instances.

            Default value is [].

    *       "series"

            List of book series. Reference to array with
            MARC::Convert::Wikidata::Object::Series instances.

            Default value is [].

    *       "start_time"

            Start time.

            Default value is undef.

    *       "subtitles"

            List of subtitles. Reference to array with strings.

            Default value is [].

    *       "title"

            Title of book edition.

            Default value is undef.

    *       "translators"

            List of translators. Reference to array with
            MARC::Convert::Wikidata::Object::People instances.

            Default value is reference to blank array.

  "authors"
     my $authors_ar = $obj-&gt;authors;

    Get reference to array with author objects.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "authors_of_afterword"
     my $authors_of_afterword_ar = $obj-&gt;authors_of_afterword;

    Get reference to array with author of afterword objects.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "authors_of_introduction"
     my $authors_of_introduction_ar = $obj-&gt;authors_of_introduction;

    Get reference to array with author of introduction objects.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "ccnb"
     my $ccnb = $obj-&gt;ccnb;

    Get ÄÄNB (ÄeskĂĄ nĂĄrodnĂ­ bibliografie) ID.

    Returns string.

  "compilers"
     my $compilers_ar = $obj-&gt;compilers;

    Get list of compilers.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "cover"
     my $cover = $obj-&gt;cover;

    Get book cover.

    Returns string (hardback or paperback).

  "directors"
     my $directors_ar = $obj-&gt;directors;

    Get list of directors.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "dml"
     my $dml = $obj-&gt;dml;

    Get DML id.

    Returns number.

  "edition_number"
     my $edition_number = $obj-&gt;edition_number;

    Get edition number.

    Returns number.

  "editors"
     my $editors_ar = $obj-&gt;editors;

    Get list of editors.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "end_time"
     my $end_time = $obj-&gt;end_time;

    Get end time.

    Returns number.

  "full_name"
     my $full_name = $obj-&gt;full_name;

    Get full name of edition in format '__TITLE__: __SUBTITLE__'.

    Returns string.

  "illustrators"
     my $illustrators_ar = $obj-&gt;illustrators;

    Get list of illustrators.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "isbns"
     my $isbns_ar = $obj-&gt;isbns;

    Get list of ISBNs.

    Returns reference to array of MARC::Convert::Wikidata::Object::ISBN
    instances.

  "issn"
     my $issn = $obj-&gt;issn;

    Get ISSN number.

    Returns string.

  c&lt;krameriuses&gt;
     my $kramerius_ar = $obj-&gt;krameriuses;

    Get reference to array with Kramerius item objects.

    Returns reference to array of MARC::Convert::Wikidata::Object::Kramerius
    instances.

  "languages"
     my $languages_ar = $obj-&gt;languages;

    TODO

  "narrators"
     my $narrators_ar = $obj-&gt;narrators;

    Get list of narrators.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "number_of_pages"
     my $number_of_pages = $obj-&gt;number_of_pages;

    TODO

  "oclc"
     my $oclc = $obj-&gt;oclc;

    Get OCLC control number.

    Returns string.

  "photographers"
     my $photographers_ar = $obj-&gt;photographers;

    Get reference to array with photographers objects.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

  "publication_date"
     my $publication_date = $obj-&gt;publication_date;

    TODO

  "publishers"
     my $publishers_ar = $obj-&gt;publishers;

    Get list of publishing houses.

    Returns reference to array of MARC::Convert::Wikidata::Object::Publisher
    instances.

  "series"
     my $series_ar = $obj-&gt;series;

    Get reference to array with Serie item objects.

    Returns reference to array of MARC::Convert::Wikidata::Object::Series
    instances.

  "start_time"
     my $start_time = $obj-&gt;start_time;

    Get start time.

    Returns number.

  "subtitle"
     my $subtitles_ar = $obj-&gt;subtitles;

    Get reference to array with subtitles.

    Returns reference to array of strings.

  "title"
     my $title = $obj-&gt;title;

    Get title.

    Returns string.

  "translators"
     my $translators_ar = $obj-&gt;translators;

    Get list of translators.

    Returns reference to array of MARC::Convert::Wikidata::Object::People
    instances.

ERRORS
     new():
             From Mo::utils::check_array_object():
                     Author isn't 'MARC::Convert::Wikidata::Object::People' object.
                     Author of afterword isn't 'MARC::Convert::Wikidata::Object::People' object.
                     Author of introduction isn't 'MARC::Convert::Wikidata::Object::People' object.
                     Book series isn't 'MARC::Convert::Wikidata::Object::Series' object.
                     Book cover '%s' doesn't exist.
                     Compiler isn't 'MARC::Convert::Wikidata::Object::People' object.
                     Director isn't 'MARC::Convert::Wikidata::Object::People' object.
                     Editor isn't 'MARC::Convert::Wikidata::Object::People' object.
                     Illustrator isn't 'MARC::Convert::Wikidata::Object::People' object.
                     Narrator isn't 'MARC::Convert::Wikidata::Object::People' object.
                     Parameter 'authors' must be a array.
                     Parameter 'authors_of_afterword' must be a array.
                     Parameter 'authors_of_introduction' must be a array.
                     Parameter 'compilers' must be a array.
                     Parameter 'directors' must be a array.
                     Parameter 'editors' must be a array.
                     Parameter 'end_time' must be a number.
                     Parameter 'illustrators' must be a array.
                     Parameter 'languages' must be a array.
                     Parameter 'narrators' must be a array.
                     Parameter 'publishers' must be a array.
                     Parameter 'series' must be a array.
                     Parameter 'start_time' must be a number.
                     Parameter 'translators' must be a array.
                     Publisher isn't 'MARC::Convert::Wikidata::Object::Publisher' object.
                     Translator isn't 'MARC::Convert::Wikidata::Object::People' object.

             From Mo::utils::check_number():
                     Parameter '%s' must a number.
                             Value: %s

EXAMPLE1
     use strict;
     use warnings;

     use Data::Printer;
     use MARC::Convert::Wikidata::Object;
     use MARC::Convert::Wikidata::Object::ISBN;
     use MARC::Convert::Wikidata::Object::People;
     use MARC::Convert::Wikidata::Object::Publisher;
     use Unicode::UTF8 qw(decode_utf8);
 
     my $aut = MARC::Convert::Wikidata::Object::People-&gt;new(
             'date_of_birth' =&gt; '1952-12-08',
             'name' =&gt; decode_utf8('JiĹĂ­'),
             'nkcr_aut' =&gt; 'jn20000401266',
             'surname' =&gt; 'Jurok',
     );

     my $publisher = MARC::Convert::Wikidata::Object::Publisher-&gt;new(
             'name' =&gt; decode_utf8('MÄsto PĹĂ­bor'),
             'place' =&gt; decode_utf8('PĹĂ­bor'),
     );

     my $isbn = MARC::Convert::Wikidata::Object::ISBN-&gt;new(
             'isbn' =&gt; '80-238-9541-9',
             'publisher' =&gt; $publisher,
     );

     my $obj = MARC::Convert::Wikidata::Object-&gt;new(
             'authors' =&gt; [$aut],
             'ccnb' =&gt; 'cnb001188266',
             'date_of_publication' =&gt; 2002,
             'edition_number' =&gt; 2,
             'isbns' =&gt; [$isbn],
             'number_of_pages' =&gt; 414,
             'publishers' =&gt; [$publisher],
     );
 
     p $obj;

     # Output:
     # MARC::Convert::Wikidata::Object  {
     #     Parents       Mo::Object
     #     public methods (11) : BUILD, can (UNIVERSAL), DOES (UNIVERSAL), err (Error::Pure), full_name, check_array (Mo::utils), check_array_object (Mo::utils), isa (UNIVERSAL), none (List::MoreUtils::XS), Readonly (Readonly), VERSION (UNIVERSAL)
     #     private methods (1) : __ANON__ (Mo::is)
     #     internals: {
     #         authors                   [
     #             [0] MARC::Convert::Wikidata::Object::People
     #         ],
     #         authors_of_introduction   [],
     #         ccnb                      "cnb001188266",
     #         compilers                 [],
     #         date_of_publication       2002,
     #         edition_number            2,
     #         editors                   [],
     #         illustrators              [],
     #         isbns                     [
     #             [0] MARC::Convert::Wikidata::Object::ISBN
     #         ],
     #         krameriuses               [],
     #         number_of_pages           414,
     #         publishers                [
     #             [0] MARC::Convert::Wikidata::Object::Publisher
     #         ],
     #         series                    [],
     #         translators               []
     #     }
     # }

DEPENDENCIES
    Error::Pure, List::MoreUtils, Mo, Mo::utils, Readonly.

SEE ALSO
    MARC::Convert::Wikidata
        Conversion class between MARC record and Wikidata object.

REPOSITORY
    &lt;https://github.com/michal-josef-spacek/MARC-Convert-Wikidata-Object&gt;

AUTHOR
    Michal Josef Ĺ&nbsp;paÄek &lt;mailto:skim@cpan.org&gt;

    &lt;http://skim.cz&gt;

LICENSE AND COPYRIGHT
    ÂŠ Michal Josef Ĺ&nbsp;paÄek 2021-2024

    BSD 2-Clause License

VERSION
    0.04

</pre></body></html>