From 5489adf453847f823e5611e131fc56229e952465 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 13 May 2020 17:58:28 -0700 Subject: style tweaks --- fatcat_scholar/templates/search_macros.html | 38 ++++++++++++++++------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'fatcat_scholar/templates/search_macros.html') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index b600cb4..16d4621 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -4,7 +4,7 @@
{# ### TITLE ROW #} -

+
{# "best URL" calculation #} {% if paper.pmcid %} @@ -32,38 +32,38 @@ {# release type suffix #} + {% if paper.release_type in ("article-journal", "paper-conference") %} {# pass #} {% elif paper.release_type in ("book", "chapter", "dataset") %} - [{{ _(paper.release_type) }}] + [{{ _(paper.release_type) }}] {% elif not paper.release_type %} - [media?] + [media?] {% else %} - [{{ _(paper.release_type) }}] + [{{ _(paper.release_type) }}] {% endif %} + {# show inverse of title/original_title above #} {% if lang_code != 'en' and lang_code == paper.lang and paper.title and paper.title != paper.original_title %}
- + {{ paper.title[:512] }} {% if paper.title|length > 512 %}...{% endif %} {% elif paper.original_title and paper.title != paper.original_title %}
- + {{ paper.original_title[:512] }} {% if paper.original_title|length > 512 %}...{% endif %} {% endif %} -

+
{# ### AUTHOR ROW #} {% if paper.contrib_names %}
- {{ ", ".join(paper.contrib_names[:12]) }} {% if paper.contrib_names|length > 12 %}(+{{ paper.contrib_names|length - 12 }} others){% endif %} -
{% endif %} @@ -73,14 +73,16 @@ {{ paper.release_year }} {% endif %} {% if paper.release_year and paper.container_name %} - | + {% endif %} {% if paper.container_name %} + {% if paper.container_id %} {{ paper.container_name }} {% else %} {{ paper.container_name }} {% endif %} + {% if paper.container_is_oa %}{% endif %} {% endif %} {% if paper.withdrawn_status %} @@ -98,7 +100,7 @@ {% if paper._highlights %}
{% for highlight in paper._highlights %} - {{ highlight|safe }} ... + {{ highlight|safe }}  ...  {% endfor %}
{% elif paper.abstract %} @@ -165,7 +167,7 @@ {% if paper.fulltext.thumbnail_url %} {# #} -
+
- {# -
-
- PDF -
+ {# +
#}
+
+ {# TODO: could have other hover info, like mimetype icon and file size? #} + + web.archive.org +

-- cgit v1.2.3