diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat/crossref_importer.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat/crossref_importer.py b/python/fatcat/crossref_importer.py index 10efe59c..bab3fe2f 100644 --- a/python/fatcat/crossref_importer.py +++ b/python/fatcat/crossref_importer.py @@ -160,6 +160,7 @@ class FatcatCrossrefImporter(FatcatImporter): for key in ('subject', 'type', 'license', 'alternative-id', 'container-title', 'original-title', 'subtitle', 'archive', 'funder', 'group-title'): + # TODO: unpack "container-title" array val = obj.get(key) if val: extra[key] = val @@ -169,6 +170,7 @@ class FatcatCrossrefImporter(FatcatImporter): extra['license'][i]['start'] = extra['license'][i]['start']['date-time'] if len(obj['title']) > 1: extra['other-titles'] = obj['title'][1:] + # TODO: this should be top-level extra['is_kept'] = len(obj.get('archive', [])) > 0 # ISBN |