Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
58042a34
Commit
58042a34
authored
Dec 22, 2020
by
Hervé MENAGER
Browse files
Merge branch 'master' into 'release'
prepare for v1.0.7 See merge request
!25
parents
fa199d97
4a9b26b2
Pipeline
#44028
passed with stages
in 27 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ippisite/ippidb/templates/compound_card.html
View file @
58042a34
...
...
@@ -561,17 +561,31 @@
{
"
url
"
:
"
{{ request.build_absolute_uri }}
"
,
{
%
if
compound
.
inchi
%
}
"
inChI
"
:
"
{{ compound.inchi }}
"
,
{
%
endif
%
}
{
%
if
compound
.
iupac_name
%
}
"
name
"
:
"
{{ compound.iupac_name }}
"
,
{
%
endif
%
}
{
%
if
compound
.
iupac_name
%
}
"
iupacName
"
:
"
{{ compound.iupac_name }}
"
,
{
%
endif
%
}
{
%
if
compound
.
molecular_weight
%
}
"
molecularWeight
"
:
{{
compound
.
molecular_weight
}},
{
%
endif
%
}
"
identifier
"
:
"
{{ compound.id }}
"
,
"
inChIKey
"
:
"
{{ compound.inchi }}
"
,
{
%
if
compound
.
inchikey
%
}
"
inChIKey
"
:
"
{{ compound.inchikey }}
"
,
{
%
endif
%
}
"
@type
"
:
"
MolecularEntity
"
,
"
image
"
:
"
https://www.ebi.ac.uk/chembl/api/data/image/CHEMBL3623057.svg
"
,
{
%
if
compound
.
chembl_id
%
}
"
image
"
:
"
https://www.ebi.ac.uk/chembl/api/data/image/{{chembl_id}}.svg
"
,
{
%
endif
%
}
{
%
if
compound
.
canonical_smile
%
}
"
smiles
"
:
[
"
{{ compound.canonical_smile }}
"
"
{{ compound.canonical_smile
|escapejs
}}
"
],
{
%
endif
%
}
{
%
if
compound
.
sameas_urls
%
}
"
sameAs
"
:
{{
compound
.
sameas_urls
|
safe
}},
{
%
endif
%
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment