NAME
Data::MARC::Field008::ContinuingResource - Data object for MARC field 008 continuing resource material.
SYNOPSIS
use Data::MARC::Field008::ContinuingResource;
my $obj = Data::MARC::Field008::ContinuingResource->new(%params);
my $conference_publication = $obj->conference_publication;
my $entry_convention = $obj->entry_convention;
my $form_of_item = $obj->form_of_item;
my $form_of_original_item = $obj->form_of_original_item;
my $frequency = $obj->frequency;
my $government_publication = $obj->government_publication;
my $nature_of_content = $obj->nature_of_content;
my $nature_of_entire_work = $obj->nature_of_entire_work;
my $original_alphabet_or_script_of_title = $obj->original_alphabet_or_script_of_title;
my $raw = $obj->raw;
my $regularity = $obj->regularity;
my $type_of_continuing_resource = $obj->type_of_continuing_resource;
METHODS
new
my $obj = Data::MARC::Field008::ContinuingResource->new(%params);
Constructor.
conference_publicationConference publication. The length of the item is 1 character. Possible characters are '0', '1' or '|'.
It's required.
Default value is undef.
entry_conventionEntry convention. The length of the string is 1 character. Possible characters are '0', '1', '2' or '|'.
It's required.
Default value is undef.
form_of_itemForm of item. The length of the item is 1 character. Possible characters are ' ', 'a', 'b', 'c', 'd', 'f', 'o', 'q', 'r', 's' or '|'.
It's required.
Default value is undef.
form_of_original_itemForm of original item. The length of the string is 1 character. Possible characters are ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'o', 'q', 's' or '|'.
It's required.
Default value is undef.
frequencyFrequency. The length of the string is 1 character. Possible characters are ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'm', 'q', 's', 't', 'u', 'w', 'z' or '|'.
It's required.
Default value is undef.
government_publicationGovernment publication. The length of the string is 1 character. Possible characters are ' ', 'a', 'c', 'f', 'i', 'l', 'm', 'o', 's', 'u', 'z' or '|'.
It's required.
Default value is undef.
nature_of_contentNature of contents. The length of the string is 3 characters. Possible characters are ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'y', 'z', '5', '6' or '|||'.
It's required.
Default value is undef.
nature_of_entire_workNature of entire work. The length of the string is 1 character. Possible characters are ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'y', 'z', '5', '6' or '|'.
It's required.
Default value is undef.
original_alphabet_or_script_of_titleOriginal alphabet or script of title. The length of the string is 1 character. Possible characters are ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'u', 'z', '|'.
It's required.
Default value is undef.
rawRaw string of material. The length of the string is 17 characters.
It's optional.
Default value is undef.
regularityRegularity. The length of the string is 1 character. Possible characters are 'n', 'r', 'u', 'x' or '|'.
It's required.
Default value is undef.
type_of_continuing_resourceType of continuing resource. The length of the string is 1 character. Possible characters are ' ', 'd', 'g', 'h', 'j', 'l', 'm', 'n', 'p', 'r', 's', 't', 'w' or '|'.
It's required.
Default value is undef.
Returns instance of object.
conference_publication
my $conference_publication = $obj->conference_publication;
Get converence publication.
Returns string.
entry_convention
my $entry_convention = $obj->entry_convention;
Get entry convention.
Returns string.
form_of_item
my $form_of_item = $obj->form_of_item;
Get form of item.
Returns string.
form_of_original_item
my $form_of_original_item = $obj->form_of_original_item;
Get form of original item.
Returns string.
frequency
my $frequency = $obj->frequency;
Get frequency.
Returns string.
government_publication
my $government_publication = $obj->government_publication;
Get government publication.
Returns string.
nature_of_content
my $nature_of_content = $obj->nature_of_content;
Get nature of content.
Returns string.
nature_of_entire_work
my $nature_of_entire_work = $obj->nature_of_entire_work;
Get nature of entire work.
Returns string.
original_alphabet_or_script_of_title
my $original_alphabet_or_script_of_title = $obj->original_alphabet_or_script_of_title;
Get original alphabet or script of title.
Returns string.
raw
my $raw = $obj->form_of_item;
Get raw string of the block.
Returns string.
regularity
my $regularity = $obj->regularity;
Get regularity.
Returns string.
type_of_continuing_resource
my $type_of_continuing_resource = $obj->type_of_continuing_resource;
Get type of continuing resource.
Returns string.
ERRORS
new():
Couldn't create data object of continuing resource.
Raw string: %s
Parameter 'raw' has length different than '17'.
Value: %s
From Data::MARC::Field008::Utils::check_conference_publication():
Parameter 'conference_publication' has bad value.
Value: %s
Parameter 'conference_publication' is required.
Parameter 'conference_publication' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'conference_publication' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_continuing_resource_entry_convention():
Parameter 'entry_convention' has bad value.
Value: %s
Parameter 'entry_convention' is required.
Parameter 'entry_convention' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'entry_convention' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_continuing_resource_form_of_original_item():
Parameter 'form_of_original_item' has bad value.
Value: %s
Parameter 'form_of_original_item' is required.
Parameter 'form_of_original_item' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'form_of_original_item' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_continuing_resource_frequency():
Parameter 'frequency' has bad value.
Value: %s
Parameter 'frequency' is required.
Parameter 'frequency' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'frequency' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_continuing_resource_nature_of_content():
Parameter 'nature_of_content' has bad value.
Value: %s
Parameter 'nature_of_content' has value with pipe character.
Value: %s
Parameter 'nature_of_content' is required.
Parameter 'nature_of_content' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'nature_of_content' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_continuing_resource_nature_of_entire_work():
Parameter 'nature_of_entire_work' has bad value.
Value: %s
Parameter 'nature_of_entire_work' is required.
Parameter 'nature_of_entire_work' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'nature_of_entire_work' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_continuing_resource_original_alphabet_or_script():
Parameter 'original_alphabet_or_script_of_title' has bad value.
Value: %s
Parameter 'original_alphabet_or_script_of_title' is required.
Parameter 'original_alphabet_or_script_of_title' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'original_alphabet_or_script_of_title' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_continuing_resource_regularity():
Parameter 'regularity' has bad value.
Value: %s
Parameter 'regularity' is required.
Parameter 'regularity' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'regularity' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_continuing_resource_type():
Parameter 'type_of_continuing_resource' has bad value.
Value: %s
Parameter 'type_of_continuing_resource' is required.
Parameter 'type_of_continuing_resource' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'type_of_continuing_resource' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_government_publication():
Parameter 'government_publication' has bad value.
Value: %s
Parameter 'government_publication' is required.
Parameter 'government_publication' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'government_publication' must be a scalar value.
Reference: %s
From Data::MARC::Field008::Utils::check_item_form():
Parameter 'form_of_item' has bad value.
Value: %s
Parameter 'form_of_item' is required.
Parameter 'form_of_item' length is bad.
Length: %s
Value: %s
Expected length: 1
Parameter 'form_of_item' must be a scalar value.
Reference: %s
EXAMPLE
use strict;
use warnings;
use Data::Printer;
use Data::MARC::Field008::ContinuingResource;
# cnb000002514
my $obj = Data::MARC::Field008::ContinuingResource->new(
'conference_publication' => '0',
'entry_convention' => '|',
'form_of_item' => ' ',
'form_of_original_item' => ' ',
'frequency' => 'z',
'government_publication' => 'u',
'nature_of_content' => ' ',
'nature_of_entire_work' => ' ',
'original_alphabet_or_script_of_title' => ' ',
# 89012345678901234
'raw' => 'zr u0 |',
'regularity' => 'r',
'type_of_continuing_resource' => ' ',
);
# Print out.
p $obj;
# Output:
# Data::MARC::Field008::ContinuingResource {
# parents: Mo::Object
# public methods (16):
# BUILD
# Data::MARC::Field008::Utils:
# check_conference_publication, check_continuing_resource_entry_convention, check_continuing_resource_form_of_original_item, check_continuing_resource_frequency, check_continuing_resource_nature_of_content, check_continuing_resource_nature_of_entire_work, check_continuing_resource_original_alphabet_or_script, check_continuing_resource_regularity, check_continuing_resource_type, check_government_publication, check_item_form
# Error::Pure:
# err
# Error::Pure::Utils:
# err_get
# Mo::utils:
# check_length_fix, check_required
# private methods (0)
# internals: {
# conference_publication 0,
# entry_convention "|",
# form_of_item " ",
# form_of_original_item " ",
# frequency "z",
# government_publication "u",
# nature_of_content " ",
# nature_of_entire_work " ",
# original_alphabet_or_script_of_title " ",
# raw "zr u0 |",
# regularity "r",
# type_of_continuing_resource " "
# }
# }
DEPENDENCIES
Data::MARC::Field008::Utils, Error::Pure Error::Pure::Utils Mo, Mo::utils.
REPOSITORY
https://github.com/michal-josef-spacek/Data-MARC-Field008
AUTHOR
Michal Josef Špaček mailto:skim@cpan.org
LICENSE AND COPYRIGHT
© 2025 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.03