Describe the bug
The habanero content_negotiation method can return DataCite records in the kernel-4 xml format. The existing datacite parser will fail at L132 if the tag does not have attributes embedded within the tag. The parser will return an IndexError exception when that happens: IndexError: list index out of range
To Reproduce
Obtain the datacite-xml formatted record via habanero.cn.content_negotiation(ids='10.15468/t4rau8', format='datacite-xml', url='https://api.datacite.org')
Parse the record with adsingestp.parsers.datacite.parse(xmldata)
Additional context
Add any other context about the problem here.
Describe the bug The habanero content_negotiation method can return DataCite records in the kernel-4 xml format. The existing datacite parser will fail at L132 if the tag does not have attributes embedded within the tag. The parser will return an IndexError exception when that happens:
IndexError: list index out of range
To Reproduce
Additional context Add any other context about the problem here.