You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <title> 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.
The text was updated successfully, but these errors were encountered:
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 <title> 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.
The text was updated successfully, but these errors were encountered: