diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-14 20:14:18 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-14 20:14:18 -0800 |
commit | bf6c63c5251e10e1481cf6ed465817b392d78805 (patch) | |
tree | b6ca5f647ee9bec7ea5a62d194c6b317bb014fa4 /fatcat_scholar | |
parent | 8aeec55922862c180f3bdaf5e02c4a37c3640d1c (diff) | |
download | fatcat-scholar-bf6c63c5251e10e1481cf6ed465817b392d78805.tar.gz fatcat-scholar-bf6c63c5251e10e1481cf6ed465817b392d78805.zip |
serp: tweak display of tag labels
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 8 |
1 files changed, 6 insertions, 2 deletions
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:") %} <span class="ui label basic black small" title="ISO Language Code">{{ tag }}</span> {% else %} - <span class="ui label basic grey small">{{ _(tag) }}</span> + {# disabling "other" tags for now #} + {# <span class="ui label basic grey small">{{ _(tag) }}</span> #} {% 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) }} |