NAME
HTTP::OAI::Record - Encapsulates OAI record XML data
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
- $r = new HTTP::OAI::Record([header=>$header],[metadata=>$metadata],[about=>[$about]])
-
This constructor method returns a new HTTP::OAI::Record object. Optionally set the header, metadata, and add an 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 a list of about returns.