Skip to content

Commit

Permalink
Resolve #140
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjob4life committed Dec 22, 2021
1 parent 6efa417 commit 3a30ebd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/eke.knowledge/src/eke/knowledge/biomarker.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class IBiomarkerBodySystem(IKnowledgeObject, IResearchedObject, IPhasedObject, I
)


class IBodySystemStudy(IKnowledgeObject, IResearchedObject):
class IBodySystemStudy(IKnowledgeObject, IResearchedObject, IPhasedObject):
'''Study-specific information on a biomarker's effects on a single organ.'''
protocol = RelationChoice(
title=_(u'Study'),
Expand Down Expand Up @@ -300,6 +300,10 @@ def updatePhases(context, event):
phase = biomarkerBodySystem.phase
if phase is not None and phase:
phases.add(phase)
for studyObjID, bodySystemStudy in biomarkerBodySystem.contentItems():
phase = bodySystemStudy.phase
if phase is not None and phase:
phases.add(phase)
biomarker.phases = list(phases)
biomarker.reindexObject(idxs=['phases'])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
i18n:translate='bm_noAbstractText' class='discreet'>
No abstract available.
</p>
<p>
<label>Biomarker Phase:</label>
<span tal:condition='study/obj/phase' tal:replace='study/obj/phase'>45</span>
<sapn tal:condition='not:study/obj/phase'>not available</sapn>
</p>
<p tal:condition='study/obj/protocol/to_object/description'
tal:content='study/obj/protocol/to_object/description'>
You can lorem my ipsum any time, sit amet.
Expand Down

0 comments on commit 3a30ebd

Please sign in to comment.