diff --git a/compound/book/browser.py b/compound/book/browser.py index c67a5a6..dd4df91 100644 --- a/compound/book/browser.py +++ b/compound/book/browser.py @@ -129,6 +129,10 @@ class Base(object): if dt is not None: return IOptions(adapted(dt))(name) + def getTitleForResource(self, r): + if self.getOptionsForResource(r, 'showtitle'): + return r.title + def getIconForResource(self, r): icon = self.getOptionsForResource(r, 'icon') if icon: diff --git a/compound/book/loops_book_de.dmp b/compound/book/loops_book_de.dmp index a0c2411..cc430f2 100644 --- a/compound/book/loops_book_de.dmp +++ b/compound/book/loops_book_de.dmp @@ -1,5 +1,5 @@ type(u'documenttype', u'Dokumentenart', options=u'qualifier:assign', - typeInterface='loops.interfaces.IOptions', + typeInterface=u'loops.interfaces.IOptions', viewName=u'') # book types diff --git a/compound/book/view_macros.pt b/compound/book/view_macros.pt index 90f6e03..8f657f6 100644 --- a/compound/book/view_macros.pt +++ b/compound/book/view_macros.pt @@ -45,6 +45,9 @@
+