SYNOPSIS

        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));

METHODS

This constructor method returns a new HTTP::OAI::Record object. Options (see methods below): header => $header metadata => $metadata about => [$about] Returns and optionally sets the record header (an HTTP::OAI::Header object). Returns and optionally sets the record metadata (an HTTP::OAI::Metadata object). Optionally adds a new About record (an HTTP::OAI::Metadata object) and returns an array of objects (may be empty).

Header Accessor Methods

These methods are equivalent to \*(C`$rec->header->$method([$value])\*(C'. Get and optionally set the record \s-1OAI\s0 identifier. Get and optionally set the record datestamp. Get and optionally set the record status (valid values are 'deleted' or undef). Returns whether this record's status is deleted.