From 1204b4f0804a6c1983f71de7840a78f2bbd1061c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 6 Aug 2020 17:47:35 -0700 Subject: sort tags, and show JSTOR as a color tag --- fatcat_scholar/templates/search_macros.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fatcat_scholar/templates') 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" %} OA + {% elif tag == "jstor" %} + JSTOR {% elif tag == "scielo" %} SciELO {% elif tag == "ojs" %} @@ -151,7 +153,7 @@ json - {% 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') %} -- cgit v1.2.3