summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-22 14:14:55 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-22 14:14:55 -0700
commitc1080f94a49bdb1a036703825cd21ab3f9ca6775 (patch)
treed2827bc4c930bbde2aea62c5604d70484b99abc2 /python
parent17e2929d45232fe482eab386ddc6f3a650deeb3c (diff)
downloadfatcat-c1080f94a49bdb1a036703825cd21ab3f9ca6775.tar.gz
fatcat-c1080f94a49bdb1a036703825cd21ab3f9ca6775.zip
arxiv abstracts latex hack
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/routes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 6e1d2351..1a743b7b 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -277,6 +277,10 @@ def release_view(ident):
# index=None go to end of list)
authors = [c for c in entity.contribs if c.role in ('author', None)]
authors = sorted(authors, key=lambda c: (c.index == None and 99999999) or c.index)
+ # hack to show plain text instead of latex abstracts
+ if entity.abstracts:
+ if 'latex' in entity.abstracts[0].mimetype:
+ entity.abstracts.reverse()
return render_template('release_view.html', release=entity,
authors=authors, container=entity.container)