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

NAME

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

SYNOPSIS

9               my $r = $h->ListSets();
10
11               while( my $rec = $r->next ) {
12                       print $rec->setSpec, "\n";
13               }
14
15               die $r->message if $r->is_error;
16

METHODS

18       $ls = new HTTP::OAI::ListSets
19           This constructor method returns a new OAI::ListSets object.
20
21       $set = $ls->next
22           Returns either an HTTP::OAI::Set object, or undef, if no more
23           records are available. Use $set->is_error to test whether there was
24           an error getting the next record.
25
26           If -resume was set to false in the Harvest Agent, next may return a
27           string (the resumptionToken).
28
29       @setl = $ls->set([$set])
30           Returns the set list and optionally adds a new set or
31           resumptionToken, $set. Returns an array ref of HTTP::OAI::Sets,
32           with an optional resumptionToken string.
33
34       $token = $ls->resumptionToken([$token])
35           Returns and optionally sets the HTTP::OAI::ResumptionToken.
36
37       $dom = $ls->toDOM
38           Returns a XML::DOM object representing the ListSets response.
39
40
41
42perl v5.34.0                      2021-07-22          HTTP::OAI::ListSets(3pm)
Impressum