--- a/src/pyams_content_es/shared/resource.py Fri Jan 04 17:16:05 2019 +0100
+++ b/src/pyams_content_es/shared/resource.py Mon Jan 07 11:49:26 2019 +0100
@@ -40,9 +40,15 @@
'editor_reference': resource_info.editor_reference if 'editor_reference' in field_names else None,
'isbn_number': resource_info.isbn_number if 'isbn_number' in field_names else None
}
+ if 'awards' in field_names:
+ for lang, awards in (resource_info.awards or {}).items():
+ result.setdefault('awards', {})[lang] = html_to_text(awards)
if 'summary' in field_names:
for lang, summary in (resource_info.summary or {}).items():
result.setdefault('summary', {})[lang] = html_to_text(summary)
+ if 'synopsis' in field_names:
+ for lang, synopsis in (resource_info.synopsis or {}).items():
+ result.setdefault('synopsis', {})[lang] = html_to_text(synopsis)
if 'publisher_words' in field_names:
for lang, words in (resource_info.publisher_words or {}).items():
result.setdefault('publisher_words', {})[lang] = html_to_text(words)