diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-03 15:56:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-03 15:56:09 -0700 |
commit | b66342bab2b58f94053066d9785fade037837b45 (patch) | |
tree | 9389bae4dced29b896041c187bcb62697437454f | |
parent | d7e802610baf6b14409bfde9e345968aed08a641 (diff) | |
download | fatcat-scholar-b66342bab2b58f94053066d9785fade037837b45.tar.gz fatcat-scholar-b66342bab2b58f94053066d9785fade037837b45.zip |
add additional fatcat metadata tag
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 15748d8..29f8733 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -128,16 +128,22 @@ <a target="_blank" href="https://fatcat.wiki/release/{{paper.biblio.release_ident}}" style="color: green;">fatcat:{{ paper.biblio.release_ident}}</a> {% endif %} - {# ### SOURCE TAGS #} + {# ### TAGS #} <div style="margin-top: 0.2em;"> {# colors to use: olive, brown, grey, pink, red, etc #} + {# TODO: remove doc for ES 7.x-style lack of type #} + {# TODO: only show 'json' link if from cluster? #} + <a target="_blank" href="{{ settings.ELASTICSEARCH_BACKEND }}/{{ settings.ELASTICSEARCH_FULLTEXT_INDEX }}/_doc/{{ paper.key }}"> + <span class="ui label small">json</span> + </a> + {% if paper.biblio.release_ident %} + <a target="_blank" href="https://fatcat.wiki/release/{{ paper.biblio.release_ident }}"> + <span class="ui label small">metadata</span> + </a> + {% endif %} {% for tag in paper.tags %} <span class="ui label small">{{ _(tag) }}</span> {% endfor %} - {# TODO: remove doc for ES 7.x-style lack of type #} - <a target="_blank" href="{{ settings.ELASTICSEARCH_BACKEND }}/{{ settings.ELASTICSEARCH_FULLTEXT_INDEX }}/_doc/{{ paper.key }}"> - <span class="ui label small">indexed</span> - </a> </div> </div> |