aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-29 17:55:00 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-29 17:55:03 -0700
commit097a7715cbe8ac43d18fe2755962ba52edb9a4ae (patch)
tree02a3ba0292a2d3334ad2f1fe26d8f1d2f935046b
parent7cee01ff80ddc3d9f773735ebc9cb12c9dcd4545 (diff)
downloadfatcat-scholar-097a7715cbe8ac43d18fe2755962ba52edb9a4ae.tar.gz
fatcat-scholar-097a7715cbe8ac43d18fe2755962ba52edb9a4ae.zip
search titles link to fatcat.wiki landing pages
Not entirely settled on this decision, but trying it for now.
-rw-r--r--fatcat_scholar/templates/search_macros.html14
1 files changed, 1 insertions, 13 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 8ddac09..dd7c1e8 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -27,19 +27,7 @@
<div style="margin-bottom: 0.1em; font-size: 1.2em; font-weight: bold;">
{% if paper.doc_type == "work" %}
- {# "best URL" calculation #}
- {% if paper.biblio.pmcid %}
- <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/{{ paper.biblio.pmcid }}/"
- {% elif paper.biblio.pmid %}
- <a href="https://pubmed.ncbi.nlm.nih.gov/{{ paper.biblio.pmid }}/"
- {% elif paper.biblio.arxiv_id %}
- <a href="https://arxiv.org/abs/{{ paper.biblio.arxiv_id }}/"
- {% elif paper.biblio.doi %}
- <a href="https://doi.org/{{ paper.biblio.doi }}"
- {% else %}
- <a href="https://fatcat.wiki/release/{{ paper.biblio.release_ident }}"
- {% endif %}
- style="color: #2224c7;" target="_blank">
+ <a href="https://fatcat.wiki/release/{{ paper.biblio.release_ident }}" style="color: #2224c7;" target="_blank">
{% if paper.biblio.title %}
{{ paper.biblio.title[:512] }}
{% if paper.biblio.title|length > 512 %}...{% endif %}