summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-04 11:59:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-04 11:59:28 -0700
commit8409128c47a287ccdf4d5092f094648495367e5a (patch)
tree7f38aef8146de6cd3d58972ac9d42198615b8a9a /python/fatcat_web
parent522e7dd363e60aa2c82d6ba222cdb7822045af3a (diff)
downloadfatcat-8409128c47a287ccdf4d5092f094648495367e5a.tar.gz
fatcat-8409128c47a287ccdf4d5092f094648495367e5a.zip
link to BibTeX (and test this)
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/templates/release_view.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index fa157193..ef77360f 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -360,7 +360,6 @@
</div>
{% endif %}
-
{% if release.extra.is_oa == True %}
<div class="ui segment attached">
<b><i class="ui icon unlock alternate green"></i> Open Access</b>
@@ -408,6 +407,18 @@
<br>grouping other versions (eg, pre-print) and variants of this release
</div>
+{# this restriction, for CSL-JSON generation, rules out almost everything #}
+{% if release.contribs and release.contribs[0].creator_id %}
+<div class="ui segment attached accordion">
+ <div class="title" style="padding: 0px;">
+ <i class="dropdown icon"></i><b>Cite This Release</b>
+ </div>
+ <div class="content">
+ <a href="/release/{{ release.ident }}.bib">BibTeX</a>
+ </div>
+</div>
+{% endif %}
+
<div class="ui segment attached accordion">
<div class="title" style="padding: 0px;"><i class="dropdown icon"></i><b>Lookup Links</b></div>
<div class="content">