Mercurial > hg > drupalISMI
changeset 54:b9a6e596ebe4
fix transfer of ownvalue to _label attribute.
author | casties |
---|---|
date | Fri, 21 Apr 2017 19:04:09 +0200 |
parents | 1f160e595167 |
children | 5a1a4af235eb |
files | importFromOpenMind/importer/ismixml2model.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/importFromOpenMind/importer/ismixml2model.py Mon Apr 03 17:54:36 2017 +0200 +++ b/importFromOpenMind/importer/ismixml2model.py Fri Apr 21 19:04:09 2017 +0200 @@ -93,6 +93,9 @@ # get attributes element atts_elem = ent_elem.find('attributes') + + # more text content of entity element + ov += atts_elem.tail or '' if atts_elem is None: log('DEBUG', "entity has no attributes: %s"%ent_elem) @@ -162,7 +165,7 @@ if len(ov) > 0: # save ov as label - attrs['label'] = ov + attrs['_label'] = ov # check for normalized value nov = ent_elem.findtext('norm') if nov is not None: