aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_covid19/templates/entity_macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_covid19/templates/entity_macros.html')
-rw-r--r--fatcat_covid19/templates/entity_macros.html20
1 files changed, 17 insertions, 3 deletions
diff --git a/fatcat_covid19/templates/entity_macros.html b/fatcat_covid19/templates/entity_macros.html
index 1c4177c..c4cee62 100644
--- a/fatcat_covid19/templates/entity_macros.html
+++ b/fatcat_covid19/templates/entity_macros.html
@@ -67,7 +67,7 @@
{# ### AUTHOR ROW #}
{% if paper.contrib_names %}
- <div style="margin-top: 0.1em; margin-bottom: 0.1em; font-size: 1.1em;">
+ <div style="margin-top: 0.1em; margin-bottom: 0.2em; font-size: 1.1em;">
<b>
{{ ", ".join(paper.contrib_names[:12]) }}
{% if paper.contrib_names|length > 12 %}<i>(+{{ paper.contrib_names|length - 12 }} others)</i>{% endif %}
@@ -169,13 +169,27 @@
</div>
<div class="three wide left aligned column" style="padding: 1em;">
{% if paper.fulltext.thumbnail_url %}
- <a href="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.pdf_url.replace('//', '/') }}">
- <img src="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.thumbnail_url.replace('//', '/') }}" style="border: 1px solid grey; max-height: 12em; max-width: 100%;">
+ {% if paper.fulltext.ia_pdf_url %}
+ <a href="{{ paper.fulltext.ia_pdf_url }}">
+ {% else %}
+ <a href="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.pdf_url }}">
+ {% endif %}
+ <img src="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.thumbnail_url }}" style="border: 1px solid grey; max-height: 12em; max-width: 100%;">
</a>
<br>
{% else %}
{# No Fulltext #}
{% endif %}
+{# should we include these little links?
+ <code style="font-size: 0.9rem; padding-left: 0.5em;">
+ {% if paper.fulltext.pdf_url %}
+ <a href="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.pdf_url }}">mirror</a>
+ {% endif %}
+ {% if paper.fulltext.grobid_xml_url %}
+ <a href="{{ config.COVID19_FULLTEXT_HOST }}{{ paper.fulltext.grobid_xml_url }}">xml</a>
+ {% endif %}
+ </code>
+#}
</div>
</div>
{% endmacro %}