NAME
MARC::Convert::Wikidata::Object::Publisher - Bibliographic Wikidata object for publisher defined by MARC record.
SYNOPSIS
use MARC::Convert::Wikidata::Object::Publisher;
my $obj = MARC::Convert::Wikidata::Object::Publisher->new(%params);
my $id = $obj->id;
my $name = $obj->name;
my $place = $obj->place;
METHODS
new
my $obj = MARC::Convert::Wikidata::Object::Publisher->new(%params);
Constructor.
Returns instance of object.
id
Id of publishing house.
Parameter is optional.
Default value is undef.
name
Name of publishing house.
Parameter is required.
Default value is undef.
place
Location of publishing house.
Default value is undef.
id
my $id = $obj->id;
Get id of publishing house.
Returns string.
name
my $name = $obj->name;
Get name of publishing house.
Returns string.
place
my $place = $obj->place;
Get place of publishing house.
Returns string.
ERRORS
new():
Parameter 'name' is required.
EXAMPLE1
use strict;
use warnings;
use Data::Printer;
use MARC::Convert::Wikidata::Object::Publisher;
my $obj = MARC::Convert::Wikidata::Object::Publisher->new(
'id' => '000010003',
'name' => 'Academia',
'place' => 'Praha',
);
p $obj;
# Output:
# MARC::Convert::Wikidata::Object::Publisher {
# Parents Mo::Object
# public methods (4) : can (UNIVERSAL), DOES (UNIVERSAL), isa (UNIVERSAL), VERSION (UNIVERSAL)
# private methods (1) : __ANON__ (Mo::is)
# internals: {
# id "000010003",
# name "Academia",
# place "Praha"
# }
# }
DEPENDENCIES
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
LICENSE AND COPYRIGHT
© Michal Josef Špaček 2021-2024
BSD 2-Clause License
VERSION
0.07