From c11f319db2ca9ca3f4230aad10d682727490b96f Mon Sep 17 00:00:00 2001 From: Florian BLOUET Date: Mon, 23 May 2016 16:09:54 +0200 Subject: [PATCH] PHRAS-1078 - toggle collection name with mini logo --- templates/web/prod/results/record.html.twig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/web/prod/results/record.html.twig b/templates/web/prod/results/record.html.twig index db28c33865..7f02b2a283 100644 --- a/templates/web/prod/results/record.html.twig +++ b/templates/web/prod/results/record.html.twig @@ -53,8 +53,12 @@ {% set l_width = 30 %}
+ {% set collectionLogo = collection_logo(record.baseId) %} + {% if collectionLogo is empty %} {{ record.collectionName }} - {{ collection_logo(record.baseId) }} + {% else %} + {{ collectionLogo|raw }} + {% endif %}