From a789b9f913f19a600ab78685e6ab553f4d4d2ed0 Mon Sep 17 00:00:00 2001 From: Dinika Date: Tue, 21 Nov 2017 17:31:01 +0100 Subject: [PATCH] theme: fix template for records without authors Signed-off-by: Dinika --- .../format/record/Inspire_Default_HTML_general_macros.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inspirehep/modules/theme/templates/inspirehep_theme/format/record/Inspire_Default_HTML_general_macros.tpl b/inspirehep/modules/theme/templates/inspirehep_theme/format/record/Inspire_Default_HTML_general_macros.tpl index 242b59912f..44f6734422 100644 --- a/inspirehep/modules/theme/templates/inspirehep_theme/format/record/Inspire_Default_HTML_general_macros.tpl +++ b/inspirehep/modules/theme/templates/inspirehep_theme/format/record/Inspire_Default_HTML_general_macros.tpl @@ -71,7 +71,7 @@ {% endif %} {% endif %} {% endfor %} - {% if record.authors[0] %} + {% if record.authors is defined %} ({{ render_author_names(record, record.authors[0], show_affiliation = True) }} et al.) {% endif %} {% endif %}