diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-07-30 21:24:46 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-07-30 21:24:46 -0700 |
commit | 1996b0b95bb1d1f53154e75508688079dd51ada7 (patch) | |
tree | 4adaee071a87e7999d1c9c4aed3ea2ab7c6070bc | |
parent | b6ab2a0912fc0528c4228f884c1a35b082030048 (diff) | |
download | fatcat-1996b0b95bb1d1f53154e75508688079dd51ada7.tar.gz fatcat-1996b0b95bb1d1f53154e75508688079dd51ada7.zip |
chocula: fix wikidata_qid inclusion
-rwxr-xr-x | extra/journal_metadata/chocula.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/journal_metadata/chocula.py b/extra/journal_metadata/chocula.py index e54a017a..4c50d55e 100755 --- a/extra/journal_metadata/chocula.py +++ b/extra/journal_metadata/chocula.py @@ -809,7 +809,7 @@ class ChoculaDatabase(): extra = dict() extra['start_year'] = row.get('start_year') issnl, status = self.add_issn( - 'gold_oa', + 'wikidata', raw_issn=row['issn'], name=row['title'], identifier=wikidata_qid, @@ -1151,10 +1151,11 @@ class ChoculaDatabase(): out['publisher_type'] = 'longtail' out['is_longtail'] = True - self.c.execute("INSERT OR REPLACE INTO journal (issnl, issne, issnp, fatcat_ident, name, publisher, country, lang, is_oa, is_longtail, is_active, publisher_type, has_dois, any_homepage, any_live_homepage, known_issnl, valid_issnl, release_count, ia_count, ia_frac, kbart_count, kbart_frac, preserved_count, preserved_frac) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", + self.c.execute("INSERT OR REPLACE INTO journal (issnl, issne, issnp, wikidata_qid, fatcat_ident, name, publisher, country, lang, is_oa, is_longtail, is_active, publisher_type, has_dois, any_homepage, any_live_homepage, known_issnl, valid_issnl, release_count, ia_count, ia_frac, kbart_count, kbart_frac, preserved_count, preserved_frac) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", (issnl, out.get('issne'), out.get('issnp'), + out.get('wikidata_qid'), out.get('fatcat_ident'), out.get('name'), out.get('publisher'), |