Skip Menu |

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

Report information
The Basics
Id: 65961
Status: open
Priority: 0/
Queue: HTTP-OAI

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

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



Subject: metadata in harvester
I am trying to use the harvester now and I get wrong xml response where metadata element is double, see ex below. I don't know if I am doing something wrong or if it is in HTTP::OAI, but other HTTP clients show correct xml. I tried to access result->metadata directly and I get a response which starts with <metadata> as well. My code is on github.com: https://github.com/mokko/oai-harvester/blob/master/bin/harvest.pl, a very simple command line harvester. Any hint much appreciated. Thanks. Somewhat shortened incomplete example: <pre> <?xml version="1.0" encoding="UTF-8"?> <OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"> <responseDate>2011-02-20T14:58:19Z</responseDate> <request verb="ListRecords" metadataPrefix="oai_dc">http://cogprints.org/cgi/oai2</request> <ListRecords> <record> <header> <identifier>oai:cogprints.org:1</identifier> <datestamp>2010-06-01T13:03:26Z</datestamp> <setSpec>7374617475733D707562</setSpec> </header> <metadata> <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> <dc:title>Neural Basis of Utility Estimation</dc:title> <dc:creator>Shizgal, Peter</dc:creator> <dc:subject>Behavioral Neuroscience</dc:subject> <dc:description>The allocation of behavior among competing activities and goal objects depends on the payoffs they provide.Payoff is evaluated among multiple dimensions including intensity, rate, delay, and kind. Recent findings suggest that by triggering a stream of action potentials in myelinated, medial forebrain bundle axons, rewarding electrical brain stimulation delivers a meaningful intensity signal to the process that computes payoff. </dc:description> <dc:date>1997</dc:date> <dc:type>Journal (Paginated)</dc:type> </pre>
I don't understand the issue. If the provider is using <metadata><metadata> then they're producing odd (if valid) responses, which HTTP::OAI's Dublin Core parser won't recognise. Otherwise, you should be able to get the DOM fragment from the Record object?