summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-04 12:24:46 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-04 12:24:46 -0700
commit7d90315279d02b0d02d566a2b84231986bc43e59 (patch)
treec384d89c6445946cbe4e4f6b16c08955610652e4 /python/fatcat_web/routes.py
parent8409128c47a287ccdf4d5092f094648495367e5a (diff)
downloadfatcat-7d90315279d02b0d02d566a2b84231986bc43e59.tar.gz
fatcat-7d90315279d02b0d02d566a2b84231986bc43e59.zip
more citation styles, and tests
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r--python/fatcat_web/routes.py2
1 files changed, 2 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")