aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/files/datacite/datacite_result_31.json
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-04-20 20:52:10 +0200
committerMartin Czygan <martin.czygan@gmail.com>2020-04-20 20:52:10 +0200
commit7c6febf20c84dd4f5778e1fb02369456f7dad344 (patch)
tree851f86e3a5097f7bc3a6df8171dfb08d17fe1820 /python/tests/files/datacite/datacite_result_31.json
parente749b576bdb9bbec3bcef7e4e389e7fbbf916c84 (diff)
downloadfatcat-7c6febf20c84dd4f5778e1fb02369456f7dad344.tar.gz
fatcat-7c6febf20c84dd4f5778e1fb02369456f7dad344.zip
datacite: fix a raw name constraint violation
It was possible that contribs got added which had no raw name. One example would be a name consisting of whitespace only. This fix adds a final check for this case.
Diffstat (limited to 'python/tests/files/datacite/datacite_result_31.json')
-rw-r--r--python/tests/files/datacite/datacite_result_31.json24
1 files changed, 24 insertions, 0 deletions
diff --git a/python/tests/files/datacite/datacite_result_31.json b/python/tests/files/datacite/datacite_result_31.json
new file mode 100644
index 00000000..193104b0
--- /dev/null
+++ b/python/tests/files/datacite/datacite_result_31.json
@@ -0,0 +1,24 @@
+{
+ "abstracts": [
+ {
+ "content": "Biological liquid-liquid phase separation",
+ "lang": "fr",
+ "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"
+}