diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-22 14:03:02 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-22 14:03:02 -0700 |
commit | dc53c673dd28a325e47659835015e31e8d345692 (patch) | |
tree | 46f356ac79a1081705520a9b828cd24e7dae7723 /python/fatcat_tools/importers/jalc.py | |
parent | 5e48498083cf5b7bccec03ba6352c6acbe6cdb00 (diff) | |
download | fatcat-dc53c673dd28a325e47659835015e31e8d345692.tar.gz fatcat-dc53c673dd28a325e47659835015e31e8d345692.zip |
all new importers need to set contrib index (order)
Diffstat (limited to 'python/fatcat_tools/importers/jalc.py')
-rw-r--r-- | python/fatcat_tools/importers/jalc.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py index d560686f..94ebeff9 100644 --- a/python/fatcat_tools/importers/jalc.py +++ b/python/fatcat_tools/importers/jalc.py @@ -157,7 +157,7 @@ class JalcImporter(EntityImporter): given_name = eng.find('givenName') if given_name: given_name = given_name.string - contrib = dict( + contrib = fatcat_client.ReleaseContrib( raw_name=clean(eng.find('name').string), given_name=clean(given_name), surname=clean(surname), @@ -165,6 +165,10 @@ class JalcImporter(EntityImporter): ) contribs.append(contrib) + for i, contrib in enumerate(contribs): + if contrib.raw_name != "et al.": + contrib.index = i + release_year = None release_date = None date = record.date or None |