Skip Menu |

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

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

People
Owner: TIMBRODY [...] cpan.org
Requestors: nathan.mcfarland [...] nmcfarl.org
Cc:
AdminCc:

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



Subject: HTTP::OAI::Record and Namespaces and the /header|metadata|about/ regex
HTTP::OAI::Record record will switch out the sax handler prematurely if the payload of the Record contains elements with header, metadata or about in it, even if they are in a none OAI-PMH namespace. The fix is to replace $elem =~ /header|metadata|about/ with $elem =~ /^(header|metadata|about)$/ where it occurs and replace `my $elem = lc($hash->{LocalName});` with `my $elem = lc($hash->{Name});` . Once this is done it all works well. Thanks Nathan McFarland