| HTTP::OAI::Record - Encapsulates an OAI record |
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));
This constructor method returns a new HTTP::OAI::Record object. Optionally set the header, metadata, and add an about.
Returns and optionally sets the record header (an the HTTP::OAI::Header manpage object).
Returns and optionally sets the record metadata (an the HTTP::OAI::Metadata manpage object).
Optionally adds a new About record (an the HTTP::OAI::Metadata manpage object) and returns an array of objects (may be empty).
These methods are equivalent to $rec-header->$method([$value])>.
identifier([$identifier])
Get and optionally set the record OAI identifier.
datestamp([$datestamp])
Get and optionally set the record datestamp.
status([$status])
Get and optionally set the record status (valid values are 'deleted' or undef).
is_deleted()
Returns whether this record's status is deleted.
| HTTP::OAI::Record - Encapsulates an OAI record |