summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/routes.py2
-rw-r--r--python/fatcat_web/templates/release_view.html3
2 files changed, 5 insertions, 0 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 8e07aff0..32a1837d 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -570,6 +570,8 @@ def release_citeproc(ident):
cite = citeproc_csl(csl, style, is_html)
if is_html:
return Response(cite)
+ elif style == "csl-json":
+ return jsonify(json.loads(cite))
else:
return Response(cite, mimetype="text/plain")
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index ef77360f..ff044c49 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -415,6 +415,9 @@
</div>
<div class="content">
<a href="/release/{{ release.ident }}.bib">BibTeX</a>
+ <br><a href="/release/{{ release.ident }}/citeproc?style=csl-json">CSL-JSON</a>
+ <br><a href="/release/{{ release.ident }}/citeproc?style=modern-language-association">MLA</a>
+ <br><a href="/release/{{ release.ident }}/citeproc?style=elsevier-harvard">Harvard</a>
</div>
</div>
{% endif %}