aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-07-24 17:10:11 -0700
committerBryan Newbold <bnewbold@archive.org>2021-07-24 17:10:11 -0700
commit4b970481d9df4c495fb1df24238df7afbd52cf65 (patch)
tree9bd3fd0e98fd7a4c1bd10d817fca66ca83489a9e /fatcat_scholar/templates
parent9871b41f98278a8bfaab87ff192098cdac0962da (diff)
downloadfatcat-scholar-4b970481d9df4c495fb1df24238df7afbd52cf65.tar.gz
fatcat-scholar-4b970481d9df4c495fb1df24238df7afbd52cf65.zip
web: fix paper.fulltext is None error
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/search_macros.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 4965045..43534bf 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -329,7 +329,7 @@
{% endif %}
{% if paper.releases|length > 1 %}
- {% for release in paper.releases if (release.ident != paper.biblio.release_ident and release.ident != paper.fulltext.release_ident) %}
+ {% for release in paper.releases if (release.ident != paper.biblio.release_ident and (not paper.fulltext or release.ident != paper.fulltext.release_ident)) %}
{% if loop.first %}
<h4 class="ui horizontal divider header">
{# <i class="tag icon"></i> #}