From bf6c63c5251e10e1481cf6ed465817b392d78805 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 14 Jan 2021 20:14:18 -0800 Subject: serp: tweak display of tag labels --- fatcat_scholar/templates/search_macros.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar/templates') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 3c8509c..251de81 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -20,7 +20,8 @@ {% elif tag.startswith("lang:") %} {{ tag }} {% else %} - {{ _(tag) }} + {# disabling "other" tags for now #} + {# {{ _(tag) }} #} {% endif %} {% endmacro %} @@ -163,7 +164,10 @@ {% endif %} {% for tag in paper.tags|sort %} - {{ tag_label(tag) }} + {# HACK: don't show "oa" tag if already obvious #} + {% if tag != "oa" or ("doaj" not in paper.tags and "szczepanski" not in paper.tags) %} + {{ tag_label(tag) }} + {% endif %} {% endfor %} {% if paper.biblio.lang_code and paper.biblio.lang_code != (locale or 'en') %} {{ tag_label("lang:" + paper.biblio.lang_code) }} -- cgit v1.2.3