1HTTP::OAI::ListIdentifiUesresr(3Cpomn)tributed Perl DocuHmTeTnPt:a:tOiAoIn::ListIdentifiers(3pm)
2
3
4

NAME

6       HTTP::OAI::ListIdentifiers - Provide access to an OAI ListIdentifiers
7       response
8

SYNOPSIS

10               my $r = $h->ListIdentifiers;
11
12               while(my $rec = $r->next) {
13                       print "identifier => ", $rec->identifier, "\n",
14                       print "datestamp => ", $rec->datestamp, "\n" if $rec->datestamp;
15                       print "status => ", ($rec->status || 'undef'), "\n";
16               }
17
18               die $r->message if $r->is_error;
19

METHODS

21       $li = new OAI::ListIdentifiers
22           This constructor method returns a new OAI::ListIdentifiers object.
23
24       $rec = $li->next
25           Returns either an HTTP::OAI::Header object, or undef, if there are
26           no more records. Use $rec->is_error to test whether there was an
27           error getting the next record (otherwise things will break).
28
29           If -resume was set to false in the Harvest Agent, next may return a
30           string (the resumptionToken).
31
32       @il = $li->identifier([$idobj])
33           Returns the identifier list and optionally adds an identifier or
34           resumptionToken, $idobj. Returns an array ref of
35           HTTP::OAI::Headers.
36
37       $dom = $li->toDOM
38           Returns a XML::DOM object representing the ListIdentifiers
39           response.
40
41       $token = $li->resumptionToken([$token])
42           Returns and optionally sets the HTTP::OAI::ResumptionToken.
43
44
45
46perl v5.36.0                      2022-07-22   HTTP::OAI::ListIdentifiers(3pm)
Impressum