Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EUbOPEN Web
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChEMBL
EUbOPEN
EUbOPEN Web
Commits
d051651b
Commit
d051651b
authored
3 years ago
by
David Mendez
Browse files
Options
Downloads
Patches
Plain Diff
Tweak compound report card structure generation
parent
ccfff503
No related branches found
No related tags found
1 merge request
!58
Fix report card structure and link texts when value is empty text
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/report_cards/chemical_probe/ChemicalProbeReportCard.vue
+10
-2
10 additions, 2 deletions
...s/report_cards/chemical_probe/ChemicalProbeReportCard.vue
report_cards_structure/CompoundReportCardGenerator.js
+57
-14
57 additions, 14 deletions
report_cards_structure/CompoundReportCardGenerator.js
with
67 additions
and
16 deletions
components/report_cards/chemical_probe/ChemicalProbeReportCard.vue
+
10
−
2
View file @
d051651b
...
...
@@ -37,7 +37,11 @@ export default {
},
}),
mounted
()
{
const
docSource
=
[
'
pref_name
'
,
'
_metadata.eubopen.is_probe
'
]
const
docSource
=
[
'
pref_name
'
,
'
_metadata.eubopen.is_probe
'
,
'
_metadata.eubopen.is_control
'
,
]
const
entityID
=
EntityNames
.
EubopenCompound
.
entityID
const
indexName
=
IndexNames
.
getIndexNameFromEntityID
(
entityID
)
...
...
@@ -57,7 +61,11 @@ export default {
false
)
const
isNegativeControl
=
!
isChemicalProbe
const
isNegativeControl
=
ObjectPropertyAccess
.
getPropertyPalue
(
sourceObtained
,
'
_metadata.eubopen.is_control
'
,
false
)
const
reportCardStructure
=
CompoundReportCardGenerator
.
generateReportCardStructure
(
this
.
itemID
,
...
...
This diff is collapsed.
Click to expand it.
report_cards_structure/CompoundReportCardGenerator.js
+
57
−
14
View file @
d051651b
...
...
@@ -27,7 +27,7 @@ const methods = {
},
{
id
:
'
ProbeMechanism
'
,
title
:
'
Probe
Mechanism
'
,
title
:
'
Mechanism
of Action
'
,
component
:
ProbeMechanism
,
index
:
1
,
},
...
...
@@ -39,7 +39,56 @@ const methods = {
},
{
id
:
'
ProbeProfile
'
,
title
:
'
Probe Profile
'
,
title
:
'
Activity Profile
'
,
component
:
ProbeProfile
,
index
:
3
,
},
{
id
:
'
CalculatedProperties
'
,
title
:
'
Calculated Properties
'
,
component
:
CalculatedProperties
,
componentParams
:
{
entityID
:
EntityNames
.
EubopenCompound
.
entityID
,
},
index
:
4
,
},
{
id
:
'
CrystalStructures
'
,
title
:
'
PBD Ligand Codes
'
,
component
:
CompoundCrystalStructures
,
index
:
5
,
},
],
}
}
if
(
isNegativeControl
)
{
return
{
title
:
prefName
,
entityName
:
EntityNames
.
EubopenCompound
.
singularEntityName
,
sections
:
[
{
id
:
'
Summary
'
,
title
:
'
Summary
'
,
component
:
Summary
,
index
:
0
,
},
{
id
:
'
ProbeMechanism
'
,
title
:
'
Mechanism of Action
'
,
component
:
ProbeMechanism
,
index
:
1
,
},
{
id
:
'
ProbesForThisCompound
'
,
title
:
'
Related Probes
'
,
component
:
ProbesForThisCompound
,
index
:
2
,
},
{
id
:
'
ProbeProfile
'
,
title
:
'
Activity Profile
'
,
component
:
ProbeProfile
,
index
:
3
,
},
...
...
@@ -75,22 +124,16 @@ const methods = {
},
{
id
:
'
ProbeMechanism
'
,
title
:
'
Probe
Mechanism
'
,
title
:
'
Mechanism
of Action
'
,
component
:
ProbeMechanism
,
index
:
1
,
},
{
id
:
'
ControlStructuresAndUs
e
'
,
title
:
'
Negative Controls
'
,
component
:
ControlStructuresAndUs
e
,
id
:
'
ProbeProfil
e
'
,
title
:
'
Activity Profile
'
,
component
:
ProbeProfil
e
,
index
:
2
,
},
{
id
:
'
ProbesForThisCompound
'
,
title
:
'
Probes
'
,
component
:
ProbesForThisCompound
,
index
:
3
,
},
{
id
:
'
CalculatedProperties
'
,
title
:
'
Calculated Properties
'
,
...
...
@@ -99,13 +142,13 @@ const methods = {
entityID
:
EntityNames
.
EubopenCompound
.
entityID
,
},
index
:
4
,
index
:
3
,
},
{
id
:
'
CrystalStructures
'
,
title
:
'
PBD Ligand Codes
'
,
component
:
CompoundCrystalStructures
,
index
:
5
,
index
:
4
,
},
],
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment