Closed mrmiguez closed 4 years ago
According to the OAI-PMH specification the metadata
XML element is not optional:
http://www.openarchives.org/OAI/openarchivesprotocol.html#Record
I suggest that you register your own record implementation as described here: https://sickle.readthedocs.io/en/latest/customizing.html
Our Islandora repository publishes collection records along side item records. The collection records have a
<header>
child but not a<metadata>
child, raising an AttributeError when Sickle harvests them.Example collection record: http://fsu.digital.flvc.org/oai2?verb=GetRecord&identifier=oai:fsu.digital.flvc.org:fsu_avc50&metadataPrefix=mods
Python example:
A try/except block in
sickle.models.Record
fixes the issue.