From fa8e4ecc0cece57b3f7fdb5dc77bc28d274c86e1 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 3 Dec 2018 20:51:34 -0800 Subject: fix empty ISSN bug (container view) --- python/fatcat/templates/container_view.html | 4 ++-- 1 file 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 %} ISSN-L?  {{ container.issnl }} - {% 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) %}
Print:  {{ container.extra.ISSNp }} {% 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) %}
Electronic:  {{ container.extra.ISSNe }} {% endif %}
-- cgit v1.2.3