GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTTP::OAI::ListRecords(3) User Contributed Perl Documentation HTTP::OAI::ListRecords(3)

HTTP::OAI::ListRecords - Provide access to an OAI ListRecords response

        my $r = $h->ListRecords(
                metadataPrefix=>'oai_dc',
        );
        while( my $rec = $r->next ) {
                print "Identifier => ", $rec->identifier, "\n";
        }
        die $r->message if $r->is_error;
        # Using callback method
        sub callback {
                my $rec = shift;
                print "Identifier => ", $rec->identifier, "\n";
        };
        my $r = $h->ListRecords(
                metadataPrefix=>'oai_dc',
                onRecord=>\&callback
        );
        die $r->message if $r->is_error;

$lr = new HTTP::OAI::ListRecords
This constructor method returns a new HTTP::OAI::ListRecords object.
$rec = $lr->next
Returns either an HTTP::OAI::Record object, or undef, if no more record are available. Use $rec->is_error to test whether there was an error getting the next record.
@recl = $lr->record([$rec])
Returns the record list and optionally adds a new record or resumptionToken, $rec. Returns an array ref of HTTP::OAI::Records, including an optional resumptionToken string.
$token = $lr->resumptionToken([$token])
Returns and optionally sets the HTTP::OAI::ResumptionToken.
$dom = $lr->toDOM
Returns a XML::DOM object representing the ListRecords response.
2022-09-13 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.