aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-11-04 11:57:04 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-11-04 11:59:05 -0800
commit7d4848335f9b3b8c48e2cce0c34257b4911a9b94 (patch)
treec483f92af0b83d929d385751f888aef645ac661d /python/fatcat_tools/importers
parent0ff42081a71d8f878feedca236fa8ffe282fec3a (diff)
downloadfatcat-7d4848335f9b3b8c48e2cce0c34257b4911a9b94.tar.gz
fatcat-7d4848335f9b3b8c48e2cce0c34257b4911a9b94.zip
crossref: component type
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/crossref.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py
index 6bb233f3..0fe70884 100644
--- a/python/fatcat_tools/importers/crossref.py
+++ b/python/fatcat_tools/importers/crossref.py
@@ -11,12 +11,14 @@ from .common import EntityImporter, clean
# The docs/guide should be the cannonical home for these mappings; update there
# first
+# Can get a list of Crossref types (with counts) via API:
+# https://api.crossref.org/works?rows=0&facet=type-name:*
CROSSREF_TYPE_MAP = {
'book': 'book',
'book-chapter': 'chapter',
'book-part': 'chapter',
'book-section': 'chapter',
- 'component': None,
+ 'component': 'component',
'dataset': 'dataset',
'dissertation': 'thesis',
'edited-book': 'book',