1HTTP::OAI::Identify(3pmU)ser Contributed Perl DocumentatiHoTnTP::OAI::Identify(3pm)
2
3
4

NAME

6       HTTP::OAI::Identify - Provide access to an OAI Identify response
7

SYNOPSIS

9               use HTTP::OAI::Identify;
10
11               my $i = new HTTP::OAI::Identify(
12                       adminEmail=>'billg@microsoft.com',
13                       baseURL=>'http://www.myarchives.org/oai',
14                       repositoryName=>'www.myarchives.org'
15               );
16
17               for( $i->adminEmail ) {
18                       print $_, "\n";
19               }
20

METHODS

22       $i = new HTTP::OAI::Identify(-baseURL=>'http://arXiv.org/oai1'[,
23       adminEmail=>$email, protocolVersion=>'2.0',
24       repositoryName=>'myarchive'])
25           This constructor method returns a new instance of the OAI::Identify
26           module.
27
28       $i->version
29           Return the original version of the OAI response, according to the
30           given XML namespace.
31
32       $i->headers
33           Returns an HTTP::Headers object. Use $headers->header('headername')
34           to retrive field values.
35
36       $burl = $i->baseURL([$burl])
37       $eds = $i->earliestDatestamp([$eds])
38       $gran = $i->granularity([$gran])
39       $version = $i->protocolVersion($version)
40       $name = $i->repositoryName($name)
41           Returns and optionally sets the relevent header. NOTE:
42           protocolVersion will always be '2.0'. Use $i->version to find out
43           the protocol version used by the repository.
44
45       @addys = $i->adminEmail([$email])
46       @cmps = $i->compression([$cmp])
47           Returns and optionally adds to the multi-value headers.
48
49       @dl = $i->description([$d])
50           Returns the description list and optionally appends a new
51           description $d. Returns an array ref of HTTP::OAI::Descriptions, or
52           an empty ref if there are no description.
53
54       $d = $i->next
55           Returns the next description or undef if no more description left.
56
57       $dom = $i->toDOM
58           Returns a XML::DOM object representing the Identify response.
59
60
61
62perl v5.30.1                      2020-01-30          HTTP::OAI::Identify(3pm)
Impressum