Skip to content
Snippets Groups Projects
Commit ff8e2c09 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

add schema.org/bioschemas markup to compound cards

parent e08d2715
No related branches found
No related tags found
1 merge request!15Master
Pipeline #29815 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment