diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 17:47:35 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 19:01:12 -0700 |
commit | 1204b4f0804a6c1983f71de7840a78f2bbd1061c (patch) | |
tree | 4e523f00cfd1e4a5d95433d96a411478b14ea3e5 | |
parent | 9ba4cb8509b682ab62bb4debfceea41da328eccf (diff) | |
download | fatcat-scholar-1204b4f0804a6c1983f71de7840a78f2bbd1061c.tar.gz fatcat-scholar-1204b4f0804a6c1983f71de7840a78f2bbd1061c.zip |
sort tags, and show JSTOR as a color tag
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index ca8ef4d..d9f66dd 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -2,6 +2,8 @@ {% macro tag_label(tag) -%} {% if tag == "oa" %} <span class="ui label basic orange small" title="Open Access">OA</span> + {% elif tag == "jstor" %} + <span class="ui label basic purple small" title="Preserved in JSTOR">JSTOR</span> {% elif tag == "scielo" %} <span class="ui label basic purple small" title="Hosted on SciELO platform">SciELO</span> {% elif tag == "ojs" %} @@ -151,7 +153,7 @@ <span class="ui label small" title="search document JSON debug link">json</span> </a> - {% for tag in paper.tags %} + {% for tag in paper.tags|sort %} {{ tag_label(tag) }} {% endfor %} {% if paper.biblio.lang_code and paper.biblio.lang_code != (locale or 'en') %} |