Hi all,

We are running a DSpace repository and would like to harvest metadata from 
an EPrints repository.

We have successfully configured a collection that harvests its content from 
an external source, in this case an EPrints repository OAI feed (selecting 
an specific OAI set). DSpace connects successfully to the EPrints OAI 
server, however it’s only retrieving empty metadata records. We are 
experiencing the same issue as described here 
<https://groups.google.com/forum/#!searchin/dspace-tech/dspace$20harvest$20from$20eprints/dspace-tech/fXyoHIPRAQI/cFBWUhAABwAJ>
.

We have looked at the DSpace code and located the issue: DSpace’s harvester 
module requests first a list of supported metadata formats to find the 
metadata prefix that the target repository uses for the selected metadata 
schema (http://www.openarchives.org/OAI/2.0/oai_dc). Internally this is 
done by iterating through the results of the ListMetadataFormats query and 
returns the metadataPrefix for the first metadataFormat that matches the 
selected metadata schema.

What happens in this case is that EPrints has more than one entry for the 
supported metadata formats using OAI_DC (oai_bibl and oai_dc prefixes): 

…
<metadataFormat>
  <metadataPrefix>oai_bibl</metadataPrefix>
  <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
  
<metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
</metadataFormat>
<metadataFormat>
  <metadataPrefix>oai_dc</metadataPrefix>
  <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
  
<metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
</metadataFormat>
…

DSpace’s harvester is then selecting the first metadataPrefix, i.e. 
oai_bibl, for which EPrints is returning records with no metadata.

Just wondering if anyone has experienced the same issue, and if so, how did 
they solve it. Any help/suggestions are very much appreciated. Ideally we 
would like to avoid customising DSpace just to fix this, so I’m wondering 
whether there’s an easy way to fix this through EPrints configuration: e.g. 
disabling oai_bibl or something similar.

Many thanks and kind regards,
Agustina

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to