aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-03 15:56:09 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-03 15:56:09 -0700
commitb66342bab2b58f94053066d9785fade037837b45 (patch)
tree9389bae4dced29b896041c187bcb62697437454f /fatcat_scholar/templates/search_macros.html
parentd7e802610baf6b14409bfde9e345968aed08a641 (diff)
downloadfatcat-scholar-b66342bab2b58f94053066d9785fade037837b45.tar.gz
fatcat-scholar-b66342bab2b58f94053066d9785fade037837b45.zip
add additional fatcat metadata tag
Diffstat (limited to 'fatcat_scholar/templates/search_macros.html')
-rw-r--r--fatcat_scholar/templates/search_macros.html16
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> &nbsp;
{% 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>