diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-07-24 17:10:11 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-07-24 17:10:11 -0700 |
commit | 4b970481d9df4c495fb1df24238df7afbd52cf65 (patch) | |
tree | 9bd3fd0e98fd7a4c1bd10d817fca66ca83489a9e /fatcat_scholar/templates | |
parent | 9871b41f98278a8bfaab87ff192098cdac0962da (diff) | |
download | fatcat-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.html | 2 |
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> #} |