diff --git a/browser/concept.py b/browser/concept.py index 50ff0a5..c94dce3 100644 --- a/browser/concept.py +++ b/browser/concept.py @@ -196,6 +196,12 @@ class BaseRelationView(BaseView): return u'' return self.predicateTitle + @Lazy + def relationInfo(self): + predInfo = ', ' .join(p.title for p in self.predicates + if p != self.defaultPredicate) + return ' | '.join(t for t in (self.description, predInfo) if t) + class ConceptView(BaseView): diff --git a/browser/concept_macros.pt b/browser/concept_macros.pt index b10081d..eb3ed12 100644 --- a/browser/concept_macros.pt +++ b/browser/concept_macros.pt @@ -159,11 +159,8 @@ tal:attributes="dojoType python: item.editable and 'dojo.dnd.Source' or ''"> - + + title related/relationInfo"> Resource Title @@ -242,11 +239,8 @@ tal:attributes="dojoType python: item.editable and 'dojo.dnd.Source' or ''"> - + + title related/relationInfo">
Resource Title