1HTTP::OAI::Record(3pm)User Contributed Perl DocumentationHTTP::OAI::Record(3pm)
2
3
4

NAME

6       HTTP::OAI::Record - Encapsulates an OAI record
7

SYNOPSIS

9               use HTTP::OAI::Record;
10
11               # Create a new HTTP::OAI Record
12               my $r = new HTTP::OAI::Record();
13
14               $r->header->identifier('oai:myarchive.org:oid-233');
15               $r->header->datestamp('2002-04-01');
16               $r->header->setSpec('all:novels');
17               $r->header->setSpec('all:books');
18
19               $r->metadata(new HTTP::OAI::Metadata(dom=>$md));
20               $r->about(new HTTP::OAI::Metadata(dom=>$ab));
21

METHODS

23       $r = new HTTP::OAI::Record( %opts )
24           This constructor method returns a new HTTP::OAI::Record object.
25
26           Options (see methods below):
27
28                   header => $header
29                   metadata => $metadata
30                   about => [$about]
31
32       $r->header([HTTP::OAI::Header])
33           Returns and optionally sets the record header (an HTTP::OAI::Header
34           object).
35
36       $r->metadata([HTTP::OAI::Metadata])
37           Returns and optionally sets the record metadata (an
38           HTTP::OAI::Metadata object).
39
40       $r->about([HTTP::OAI::Metadata])
41           Optionally adds a new About record (an HTTP::OAI::Metadata object)
42           and returns an array of objects (may be empty).
43
44   Header Accessor Methods
45       These methods are equivalent to "$rec->header->$method([$value])".
46
47       $r->identifier([$identifier])
48           Get and optionally set the record OAI identifier.
49
50       $r->datestamp([$datestamp])
51           Get and optionally set the record datestamp.
52
53       $r->status([$status])
54           Get and optionally set the record status (valid values are
55           'deleted' or undef).
56
57       $r->is_deleted()
58           Returns whether this record's status is deleted.
59
60
61
62perl v5.28.0                      2018-05-28            HTTP::OAI::Record(3pm)
Impressum