Skip Menu |

This queue is for tickets about the HTTP-OAI CPAN distribution.

Report information
The Basics
Id: 60856
Status: resolved
Priority: 0/
Queue: HTTP-OAI

People
Owner: Nobody in particular
Requestors: mauricemengel [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: different kinds of record
Date: Sun, 29 Aug 2010 12:01:32 -0400
To: bug-HTTP-OAI [...] rt.cpan.org
From: Maurice Mengel <mauricemengel [...] gmail.com>
In HTTP::OAI::Repository the documentation is not right it should be HTTP::OAI::Record instead of HTTP::OAI::GetRecord my $r = HTTP::OAI::Record->new( header=>HTTP::OAI::Header->new( identifier=>'oai:myrepo:10', datestamp=>'2004-10-01' ), metadata=>HTTP::OAI::Metadata::OAI_DC->new( dc=>{title=>['Hello, World!'],description=>['My Record']} ) ); to create a GetRecord which is probably less relevant at this point you need to do something like my $gr = new HTTP::OAI::GetRecord; my $r = new HTTP::OAI::Record( header => HTTP::OAI::Header->new( identifier => 'oai:myrepo:10', datestamp => '2004-10-01' ), metadata => HTTP::OAI::Metadata::OAI_DC->new( dc => { title => ['Hello, World!'], description => ['My Record'] } ) ); $gr->record($r); Furthermore, there seems to be alternive ways of outputting the result,e.g. print $gr->toDOM->toString;
Applied in 3.24.