From e0baeade7924019c5bbd27d9a7c116a1e26854fc Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 22 Apr 2020 22:25:36 +0200 Subject: datacite: fix type error Up to now, we expected the description to be a string or list. Add handling for int as well. First appeared: Apr 22 19:58:39. --- .../tests/files/datacite/datacite_result_32.json | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 python/tests/files/datacite/datacite_result_32.json (limited to 'python/tests/files/datacite/datacite_result_32.json') diff --git a/python/tests/files/datacite/datacite_result_32.json b/python/tests/files/datacite/datacite_result_32.json new file mode 100644 index 00000000..1a84a043 --- /dev/null +++ b/python/tests/files/datacite/datacite_result_32.json @@ -0,0 +1,23 @@ +{ + "abstracts": [ + { + "content": "1234567890", + "mimetype": "text/plain" + } + ], + "contribs": [], + "ext_ids": { + "doi": "10.17912/micropub.biology.000143" + }, + "extra": { + "datacite": { + "resourceTypeGeneral": "DataPaper" + }, + "container_name": "microPublication Biology" + }, + "refs": [], + "release_stage": "published", + "release_year": 2019, + "publisher": "microPublication Biology", + "title": "Sample" +} -- cgit v1.2.3