diff --git a/classification/models/classification_groups.py b/classification/models/classification_groups.py
index fa1bca009..3486270e3 100644
--- a/classification/models/classification_groups.py
+++ b/classification/models/classification_groups.py
@@ -371,19 +371,25 @@ def __lt__(self, other):
def conditions(self) -> List[ConditionResolved]:
all_terms = set()
all_plain_texts = set()
+ all_joins = set()
for cm in self.modifications:
c = cm.classification
if resolved := c.condition_resolution_obj:
for term in resolved.terms:
all_terms.add(term)
+ all_joins.add(resolved.join)
else:
if text := cm.get(SpecialEKeys.CONDITION):
all_plain_texts.add(text)
all_condition_resolved = []
+ shared_join = None
+ if len(all_joins) == 1: # if there's more than one join, we can't display it
+ shared_join = all_joins.pop()
+
for term in all_terms:
- all_condition_resolved.append(ConditionResolved(terms=[term], join=None))
+ all_condition_resolved.append(ConditionResolved(terms=[term], join=shared_join))
for plain_text in all_plain_texts:
- all_condition_resolved.append(ConditionResolved(terms=[], join=None, plain_text=plain_text))
+ all_condition_resolved.append(ConditionResolved(terms=[], join=shared_join, plain_text=plain_text))
all_condition_resolved.sort()
return all_condition_resolved
diff --git a/classification/templates/classification/classification_groups_mvl.html b/classification/templates/classification/classification_groups_mvl.html
index 6232b1df4..c8ba7257e 100644
--- a/classification/templates/classification/classification_groups_mvl.html
+++ b/classification/templates/classification/classification_groups_mvl.html
@@ -1,5 +1,6 @@
{% load classification_tags %}
+{% spaceless %}
{% for condition in group.conditions %} {% condition condition_obj=condition limit=None %} {% empty %}-{% endfor %} |
+ {% for condition in group.conditions %} {% condition condition_obj=condition limit=None no_links=True %} {% empty %}-{% endfor %}
+ {% if group.conditions|length > 0 and group.conditions.0.join_text %}
+ {{ group.conditions.0.join_text }}
+ {% endif %}
+ |
{{ group.zygosities | ekey:'zygosity' }} | {% for acmg in group.acmg_criteria %}{% if not forloop.first %}, {% endif %}{{ acmg }}{% empty %}-{% endfor %} | {% with curated_date=group.most_recent_curated %}{% if curated_date.name %}{{ curated_date.name }} {% endif %}{{ curated_date.date | date:'Y-m-d' }}{% endwith %} |