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::Record(3) User Contributed Perl Documentation HTTP::OAI::Record(3)

HTTP::OAI::Record - Encapsulates an OAI record

        use HTTP::OAI::Record;
        # Create a new HTTP::OAI Record
        my $r = new HTTP::OAI::Record();
        $r->header->identifier('oai:myarchive.org:oid-233');
        $r->header->datestamp('2002-04-01');
        $r->header->setSpec('all:novels');
        $r->header->setSpec('all:books');
        $r->metadata(new HTTP::OAI::Metadata(dom=>$md));
        $r->about(new HTTP::OAI::Metadata(dom=>$ab));

$r = new HTTP::OAI::Record( %opts )
This constructor method returns a new HTTP::OAI::Record object.

Options (see methods below):

        header => $header
        metadata => $metadata
        about => [$about]
    
$r->header([HTTP::OAI::Header])
Returns and optionally sets the record header (an HTTP::OAI::Header object).
$r->metadata([HTTP::OAI::Metadata])
Returns and optionally sets the record metadata (an HTTP::OAI::Metadata object).
$r->about([HTTP::OAI::Metadata])
Optionally adds a new About record (an HTTP::OAI::Metadata object) and returns an array of objects (may be empty).

These methods are equivalent to "$rec->header->$method([$value])".

$r->identifier([$identifier])
Get and optionally set the record OAI identifier.
$r->datestamp([$datestamp])
Get and optionally set the record datestamp.
$r->status([$status])
Get and optionally set the record status (valid values are 'deleted' or undef).
$r->is_deleted()
Returns whether this record's status is deleted.
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.