diff --git a/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getPropertyDictFromContent.xml b/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getPropertyDictFromContent.xml index 782e995c42e941b70e56af02f1cb9a89260b67ec..b3cdd259e6e4bff795ed6a36794a3b106883bead 100644 --- a/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getPropertyDictFromContent.xml +++ b/bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getPropertyDictFromContent.xml @@ -77,7 +77,11 @@ for k, v in information.items(): \n if p is not None:\n result[\'contributor\'] = p.getRelativeUrl()\n elif key == \'keywords\':\n - result[\'subject_list\'] = v.split()\n + if isinstance(v, (list, tuple)):\n + v = [isinstance(x, unicode) and x.encode(\'utf-8\') or x for x in v]\n + else:\n + v = v.split()\n + result[\'subject_list\'] = v\n \n # Erase titles which are meaningless\n title = result.get(\'title\', None)\n diff --git a/bt5/erp5_ingestion/bt/revision b/bt5/erp5_ingestion/bt/revision index 2d73b5e3ba15b14f50c38dad75d5f05a9aa21301..f79f5e337ea18102bf116113d489fb73bd210e37 100644 --- a/bt5/erp5_ingestion/bt/revision +++ b/bt5/erp5_ingestion/bt/revision @@ -1 +1 @@ -152 \ No newline at end of file +153 \ No newline at end of file