summaryrefslogtreecommitdiffstats
path: root/python/tests/files/datacite
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-10-01 16:56:59 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-10-01 16:56:59 +0200
commitbdc4347acbbdb9f58b7c3abc2578a488de3d0a85 (patch)
tree1b8c4ba4c23edb299fef488c346b7d2565bb9834 /python/tests/files/datacite
parent519c7e77cf3a54b9620adef07fedac9b37a5f9f2 (diff)
downloadfatcat-bdc4347acbbdb9f58b7c3abc2578a488de3d0a85.tar.gz
fatcat-bdc4347acbbdb9f58b7c3abc2578a488de3d0a85.zip
datacite: skip empty abstracts
Do not add abstracts where `clean` results in the empty string - this violates a constraint: `either abstract_sha1 or content is required`
Diffstat (limited to 'python/tests/files/datacite')
-rw-r--r--python/tests/files/datacite/datacite_doc_36.json65
-rw-r--r--python/tests/files/datacite/datacite_result_36.json25
2 files changed, 90 insertions, 0 deletions
diff --git a/python/tests/files/datacite/datacite_doc_36.json b/python/tests/files/datacite/datacite_doc_36.json
new file mode 100644
index 00000000..66aba00c
--- /dev/null
+++ b/python/tests/files/datacite/datacite_doc_36.json
@@ -0,0 +1,65 @@
+{
+ "id": "10.17912/micropub.biology.000143",
+ "type": "dois",
+ "attributes": {
+ "doi": "10.17912/micropub.biology.000143",
+ "identifiers": null,
+ "creators": [
+ {
+ "name": "Paul Katz",
+ "givenName": "",
+ "familyName": "",
+ "affiliation": [],
+ "role": "author"
+ }
+ ],
+ "titles": [
+ {
+ "lang": "da"
+ },
+ {
+ "title": "Sample"
+ }
+ ],
+ "publisher": "microPublication Biology",
+ "publicationYear": 2019,
+ "types": {
+ "resourceTypeGeneral": "DataPaper"
+ },
+ "relatedIdentifiers": [],
+ "sizes": [],
+ "formats": [],
+ "version": null,
+ "rightsList": [],
+ "descriptions": [
+ {
+ "description": " ",
+ "descriptionType": "Abstract"
+ }
+ ],
+ "geoLocations": [],
+ "fundingReferences": [],
+ "url": "https://www.micropublication.org/journals/biology/micropub.biology.000143",
+ "created": "2019-08-19T14:43:08.000Z",
+ "registered": "2019-08-19T14:43:09.000Z",
+ "published": "2019",
+ "updated": "2019-11-09T12:32:02.000Z",
+ "contributors": [
+ {
+ "name": "Paul Katz",
+ "givenName": "",
+ "familyName": "",
+ "affiliation": [],
+ "role": "illustrator"
+ }
+ ]
+ },
+ "relationships": {
+ "client": {
+ "data": {
+ "id": "caltech.micropub",
+ "type": "clients"
+ }
+ }
+ }
+}
diff --git a/python/tests/files/datacite/datacite_result_36.json b/python/tests/files/datacite/datacite_result_36.json
new file mode 100644
index 00000000..8c958848
--- /dev/null
+++ b/python/tests/files/datacite/datacite_result_36.json
@@ -0,0 +1,25 @@
+{
+ "abstracts": [],
+ "contribs": [
+ {
+ "given_name": "",
+ "index": 0,
+ "raw_name": "Paul Katz",
+ "role": "author"
+ }
+ ],
+ "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"
+}