aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2019-12-26 15:36:04 +0100
committerMartin Czygan <martin.czygan@gmail.com>2019-12-28 23:07:32 +0100
commit013d873c73f374f968559b6b70d9c2575b6dc47e (patch)
treed0aefe58e0f0f6543c88d92acd4f0b3ed35b20b9
parenta196435a0e88f85785742cdd089344f97401b43a (diff)
downloadfatcat-013d873c73f374f968559b6b70d9c2575b6dc47e.tar.gz
fatcat-013d873c73f374f968559b6b70d9c2575b6dc47e.zip
datacite: add missing --extid-map-file flag
-rwxr-xr-xpython/fatcat_import.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_import.py b/python/fatcat_import.py
index 90bb01a1..c6c74bc2 100755
--- a/python/fatcat_import.py
+++ b/python/fatcat_import.py
@@ -173,6 +173,7 @@ def run_datacite(args):
bezerk_mode=args.bezerk_mode,
debug=args.debug,
lang_detect=args.lang_detect,
+ extid_map_file=args.extid_map_file,
insert_log_file=args.insert_log_file)
if args.kafka_mode:
KafkaJsonPusher(fci, args.kafka_hosts, args.kafka_env, "api-datacite",
@@ -461,6 +462,9 @@ def main():
sub_datacite.add_argument('issn_map_file',
help="ISSN to ISSN-L mapping file",
default=None, type=argparse.FileType('r'))
+ sub_datacite.add_argument('--extid-map-file',
+ help="DOI-to-other-identifiers sqlite3 database",
+ default=None, type=str)
sub_datacite.add_argument('--kafka-mode',
action='store_true',
help="consume from kafka topic (not stdin)")