diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-21 12:58:33 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-21 12:58:37 -0800 |
commit | a10f4c93f74b26781fe170f0f117cd506149e738 (patch) | |
tree | 6861630738ef978a3b89120ce4d29d6cb33e9c24 /fatcat_scholar/search.py | |
parent | 1cd50049945a0d3f27e376fc137ad82b09ea18ab (diff) | |
download | fatcat-scholar-a10f4c93f74b26781fe170f0f117cd506149e738.tar.gz fatcat-scholar-a10f4c93f74b26781fe170f0f117cd506149e738.zip |
add permalink icon/link
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r-- | fatcat_scholar/search.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index cbfc465..600745f 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -224,6 +224,8 @@ def process_query(query: FulltextQuery) -> FulltextHits: pmcid = clean_pmcid(query.q) if pmcid: return do_lookup_query(f'pmcid:"{pmcid}"') + if query.q.strip().startswith("key:"): + return do_lookup_query(query.q) # if this is a citation string, do a fuzzy lookup if settings.ENABLE_CITATION_QUERY and sniff_citation_query(query.q): |