diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-27 17:01:29 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-27 17:01:29 -0700 |
commit | cb3d10a06c0166c4eb8ec2d48852e4bfc236ef27 (patch) | |
tree | f26df234c0a139f65f560343d14684473ce0d9a9 /python/fatcat_tools | |
parent | d5ea71b2892b84040b07107643d939f1cfb74d67 (diff) | |
download | fatcat-cb3d10a06c0166c4eb8ec2d48852e4bfc236ef27.tar.gz fatcat-cb3d10a06c0166c4eb8ec2d48852e4bfc236ef27.zip |
refs: support for wikipedia outbound refs, and display in tables
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/references.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/references.py b/python/fatcat_tools/references.py index 81b55f41..508cf19d 100644 --- a/python/fatcat_tools/references.py +++ b/python/fatcat_tools/references.py @@ -289,8 +289,8 @@ def enrich_inbound_refs(refs: List[BiblioRef], fatcat_api_client: Any, hide: Opt release = fatcat_api_client.get_release(ref.source_release_ident, hide=hide, expand=expand) access = release_access_options(release) if ref.source_wikipedia_article: - wiki_lang = ref.source_wikipedia.split(':')[0] - wiki_article = ':'.join(ref.source_wikipedia.split(':')[1:]) + wiki_lang = ref.source_wikipedia_article.split(':')[0] + wiki_article = ':'.join(ref.source_wikipedia_article.split(':')[1:]).replace(' ', '_') access.append(AccessOption( access_type="wikipedia", access_url=f"https://{wiki_lang}.wikipedia.org/wiki/{wiki_article}", |