caltechlibrary / irdmtools

A Go and Python package for working with InvenioRDM repositories.
https://caltechlibrary.github.io/irdmtools
Other
1 stars 1 forks source link

doi2rdm: crash with newer CrossRef records #18

Closed tmorrell closed 1 year ago

tmorrell commented 1 year ago

doi2rdm 10.7554/elife.81398 returns json: cannot unmarshal array into Go struct field Message.message.relation of type crossrefapi.Property

Some newer CrossRef records have a relation property. This shouldn't crash the application, and this data could also be useful in the future for correctly versioning preprints in RDM.

rsdoiel commented 1 year ago

This bug goes back to crossrefapi Go package. Found a few more and corrected them and have updates in the upcoming v0.0.13 release of irdmtools.