diff --git a/common.py b/common.py index e62e602..a3572df 100644 --- a/common.py +++ b/common.py @@ -160,6 +160,9 @@ class AdapterBase(object): def getChildren(self): for c in self.context.getChildren(): yield adapted(c, self.languageInfo) + + def getLongTitle(self): + return self.title class ResourceAdapterBase(AdapterBase): diff --git a/concept.py b/concept.py index f87b078..c8c51b8 100644 --- a/concept.py +++ b/concept.py @@ -164,6 +164,9 @@ class Concept(Contained, Persistent): elif rel not in pi.relations: pi.relations.append(rel) return result + + def getLongTitle(self): + return self.title # concept relations diff --git a/search/browser.py b/search/browser.py index 4a1eaae..06867fd 100644 --- a/search/browser.py +++ b/search/browser.py @@ -139,7 +139,7 @@ class Search(BaseView): return ConceptQuery(self).query(**kw) def getRowName(self, obj): - return obj.title + return obj.getLongTitle() def getRowLabel(self, obj, name): if isinstance(obj, AdapterBase):