From c780a0da4603d36d9e82fc83ee628fdf1e9858c2 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 29 Jun 2020 19:30:34 -0700 Subject: update stage and withdrawn display; tweak other result styles --- fatcat_scholar/templates/search_macros.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 2645b9f..59bf130 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -85,28 +85,30 @@ {{ paper.biblio.container_name }} {% endif %} - {% if paper.container_is_oa %}{% endif %} +   {% endif %} - {% if paper.biblio.withdrawn_status %} - [{{ paper.biblio.withdrawn_status }}] - {% endif %} - {% if paper.biblio.release_stage == "accepted" %} - [{{ paper.biblio.release_stage }}] + + {% if paper.biblio.release_stage == "submitted" %} + pre-print {% elif paper.biblio.release_stage and paper.biblio.release_stage != "published" %} - [{{ paper.biblio.release_stage }}] + {{ paper.biblio.release_stage }} version {% elif not paper.biblio.release_stage %} - [{{ _("unpublished?") }}] + unpublished + {% endif %} + + {% if paper.biblio.withdrawn_status %} + {{ paper.biblio.withdrawn_status }} {% endif %} {# ### ABSTRACT / QUERY HIGHLIGHT #} {% if paper._highlights %} -
+
{% for highlight in paper._highlights %} {{ highlight|safe }}  ...  {% endfor %}
{% elif paper.abstracts %} -
+
{% if paper.abstracts[0].body|length > 500 %} {{ paper.abstracts[0].body[:500] }}... {% else %} -- cgit v1.2.3