Updated resource attributes
authortflorac@dagon.home
Sun, 30 Dec 2018 18:08:03 +0100
changeset 126 a91030bda803
parent 125 6d725a84f3ff
child 127 e5cc001c6476
Updated resource attributes
src/pyams_content_es/shared/resource.py
--- a/src/pyams_content_es/shared/resource.py	Fri Dec 28 11:04:29 2018 +0100
+++ b/src/pyams_content_es/shared/resource.py	Sun Dec 30 18:08:03 2018 +0100
@@ -24,7 +24,10 @@
     resource_info = IResourceInfo(content)
     field_names = content.field_names
     result = {
+        'original_title': resource_info.original_title if 'original_title' in field_names else None,
         'author': resource_info.author if 'author' in field_names else None,
+        'translator': resource_info.translator if 'translator' in field_names else None,
+        'illustrator': resource_info.illustrator if 'illustrator' in field_names else None,
         'drawer': resource_info.drawer if 'drawer' in field_names else None,
         'colourist': resource_info.colourist if 'colourist' in field_names else None,
         'lettering': resource_info.lettering if 'lettering' in field_names else None,