Commit ff8e2c09 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

add schema.org/bioschemas markup to compound cards

parent e08d2715
Pipeline #29815 passed with stages
in 14 minutes and 1 second
......@@ -468,6 +468,24 @@
</div>
</div>
<script id='JSON_LD' type="application/ld+json">
{
"url": "{{ compound.get_absolute_url }}",
"inChI": "{{ compound.inchi }}",
"iupacName": "{{ compound.iupac_name }}",
"molecularWeight": {{ compound.molecular_weight }},
"identifier": "{{ compound.id }}",
"inChIKey": "{{ compound.inchi }}",
"@type": "MolecularEntity",
"image": "https://www.ebi.ac.uk/chembl/api/data/image/CHEMBL3623057.svg",
"smiles": [
"{{ compound.canonical_smile }}"
],
"@context": "http://schema.org"
}
</script>
<script>
var showTab = function (hash) {
window.location.hash = hash;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment