aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-03 20:51:34 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-03 20:52:05 -0800
commitfa8e4ecc0cece57b3f7fdb5dc77bc28d274c86e1 (patch)
tree14ed1d39494d1e3515410d700b7b1523da525ca8
parentd1fd57e7c5dcd9e0062163b4be997808084ef538 (diff)
downloadfatcat-fa8e4ecc0cece57b3f7fdb5dc77bc28d274c86e1.tar.gz
fatcat-fa8e4ecc0cece57b3f7fdb5dc77bc28d274c86e1.zip
fix empty ISSN bug (container view)
-rw-r--r--python/fatcat/templates/container_view.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat/templates/container_view.html b/python/fatcat/templates/container_view.html
index ad4905f8..8f1d0c8b 100644
--- a/python/fatcat/templates/container_view.html
+++ b/python/fatcat/templates/container_view.html
@@ -56,10 +56,10 @@ Raw Object:
{% if container.issnl != None %}
<b>ISSN-L<sup><a href="https://en.wikipedia.org/wiki/International_Standard_Serial_Number#Linking_ISSN">?</a></sup></b>
&nbsp;<code>{{ container.issnl }}</code>
- {% if container.extra != None and (container.extra.ISSNp|length > 0) %}
+ {% if container.extra != None and container.extra.ISSNp != None and (container.extra.ISSNp|length > 0) %}
<br><i class="icon paperclip"></i>Print: &nbsp;<code>{{ container.extra.ISSNp }}</code>
{% endif %}
- {% if container.extra != None and (container.extra.ISSNe|length > 0) %}
+ {% if container.extra != None and container.extra.ISSNe != None and (container.extra.ISSNe|length > 0) %}
<br><i class="icon plug"></i>Electronic: &nbsp;<code>{{ container.extra.ISSNe }}</code>
{% endif %}
</div><div class="ui segment attached">