From 27af1fc2c8908401e0ae9b0dd29a6ca20aafee70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20M=C3=A9nager?= <herve.menager@pasteur.fr>
Date: Tue, 22 Dec 2020 19:50:24 +0100
Subject: [PATCH] correct link to compound image in schema.org data

---
 ippisite/ippidb/templates/compound_card.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ippisite/ippidb/templates/compound_card.html b/ippisite/ippidb/templates/compound_card.html
index 9b1c5e0f..19ee6609 100644
--- a/ippisite/ippidb/templates/compound_card.html
+++ b/ippisite/ippidb/templates/compound_card.html
@@ -579,7 +579,7 @@
 {% endif %}
 "@type": "MolecularEntity",
 {% if compound.chembl_id %}
-"image": "https://www.ebi.ac.uk/chembl/api/data/image/{{chembl_id}}.svg",
+"image": "https://www.ebi.ac.uk/chembl/api/data/image/{{ compound.chembl_id }}.svg",
 {% endif %}
 {% if compound.canonical_smile %}
 "smiles": [
-- 
GitLab