The same item should not include both author and dc:creator
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Wed, 22 Apr 2009 12:19:44 +0200
changeset 1427 b31f7abc3fdc
parent 1413 ad19d7e6a291
child 1428 e3a2c31ae897
The same item should not include both author and dc:creator
web/views/baseviews.py
--- 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))