aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-29 19:30:34 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-29 19:30:34 -0700
commitc780a0da4603d36d9e82fc83ee628fdf1e9858c2 (patch)
treeab3d0e6df39c190c41ed37ac993e3b58d638d7d7 /fatcat_scholar
parent9af1098b3c887b8616a0b46f7ff7bafebf28d21b (diff)
downloadfatcat-scholar-c780a0da4603d36d9e82fc83ee628fdf1e9858c2.tar.gz
fatcat-scholar-c780a0da4603d36d9e82fc83ee628fdf1e9858c2.zip
update stage and withdrawn display; tweak other result styles
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/templates/search_macros.html22
1 files changed, 12 insertions, 10 deletions
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 %}
</i>
- {% if paper.container_is_oa %}<i class="icon unlock orange small"></i>{% endif %}
+ &nbsp;
{% endif %}
- {% if paper.biblio.withdrawn_status %}
- <b style="color: red;"><code>[{{ paper.biblio.withdrawn_status }}]</code></b>
- {% endif %}
- {% if paper.biblio.release_stage == "accepted" %}
- <b style="color: brown;"><code>[{{ paper.biblio.release_stage }}]</code></b>
+
+ {% if paper.biblio.release_stage == "submitted" %}
+ <b style="color: brown; text-transform: uppercase;">pre-print</b>
{% elif paper.biblio.release_stage and paper.biblio.release_stage != "published" %}
- <b style="color: red;"><code>[{{ paper.biblio.release_stage }}]</code></b>
+ <b style="color: brown; text-transform: uppercase;">{{ paper.biblio.release_stage }} version</b>
{% elif not paper.biblio.release_stage %}
- <b style="color: red;"><code>[{{ _("unpublished?") }}]</code></b>
+ <b style="color: brown; text-transform: uppercase;">unpublished</b>
+ {% endif %}
+
+ {% if paper.biblio.withdrawn_status %}
+ <b style="color: red; text-transform: uppercase;">{{ paper.biblio.withdrawn_status }}</b>
{% endif %}
{# ### ABSTRACT / QUERY HIGHLIGHT #}
{% if paper._highlights %}
- <div style="padding-top: 1em; padding-bottom: 0.5em;" class="search_highlights">
+ <div style="padding-top: 0.5em; padding-bottom: 0.5em;" class="search_highlights">
{% for highlight in paper._highlights %}
{{ highlight|safe }} &nbsp;...&nbsp;
{% endfor %}
</div>
{% elif paper.abstracts %}
- <div style="padding-top: 1em; padding-bottom: 0.5em;">
+ <div style="padding-top: 0.5em; padding-bottom: 0.5em;">
{% if paper.abstracts[0].body|length > 500 %}
{{ paper.abstracts[0].body[:500] }}...
{% else %}