web/views/baseviews.py
changeset 1427 b31f7abc3fdc
parent 1413 ad19d7e6a291
child 1429 1d2a05685233
--- a/web/views/baseviews.py	Tue Apr 21 12:08:31 2009 +0200
+++ b/web/views/baseviews.py	Wed Apr 22 12:19:44 2009 +0200
@@ -734,13 +734,13 @@
            
     def render_entity_creator(self, entity):
         if entity.creator:
-            self._marker('dc:creator', entity.creator.name())
             email = entity.creator.get_email()
             if email:
-                self.w(u'<author>')
-                self.w(email)
-                self.w(u'</author>')       
-        
+                self._marker('author', email + ' (%s)' %  entity.creator.name())
+            else:
+                self._marker('dc:creator', entity.creator.name())
+       
+                
     def _marker(self, marker, value):
         if value:
             self.w(u'  <%s>%s</%s>\n' % (marker, html_escape(value), marker))