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

NAME

6       HTTP::OAI::Header - Encapsulates an OAI header structure
7

SYNOPSIS

9               use HTTP::OAI::Header;
10
11               my $h = new HTTP::OAI::Header(
12                       identifier=>'oai:myarchive.org:2233-add',
13                       datestamp=>'2002-04-12T20:31:00Z',
14               );
15
16               $h->setSpec('all:novels');
17

METHODS

19       $h = new HTTP::OAI::Header
20           This constructor method returns a new "HTTP::OAI::Header object".
21
22       $h->identifier([$identifier])
23           Get and optionally set the record OAI identifier.
24
25       $h->datestamp([$datestamp])
26           Get and optionally set the record datestamp (OAI 2.0+).
27
28       $h->status([$status])
29           Get and optionally set the record status (valid values are
30           'deleted' or undef).
31
32       $h->is_deleted()
33           Returns whether this record's status is deleted.
34
35       @sets = $h->setSpec([$setSpec])
36           Returns the list of setSpecs and optionally appends a new setSpec
37           $setSpec (OAI 2.0+).
38
39       $dom_fragment = $id->generate()
40           Act as a SAX driver (use "$h->set_handler()" to specify the filter
41           to pass events to).
42
43
44
45perl v5.38.0                      2023-07-20            HTTP::OAI::Header(3pm)
Impressum