elif tag == 'HT' or tag == 'ht':
# Keep the summary (TODO: verify the usage of HTML tags.)
node['text'] = node['text'] # Do we need conversion?
+ elif tag == 'HF' or tag == 'hf':
+ node['text'] = '<p style="height:0px; margin-bottom:-10px"></p>'
+ elif tag == 'QT' or tag == 'qt':
+ node['text'] = '<p style="height:0px; margin-bottom:-16px"></p>'
else:
node['text'] = ''
return node
view_ref[root[0]] = root_node
if root[0] in category_dict:
root_node['category'] = category_dict[root[0]]
+ else:
+ # Backup routine for GBS, which does not seem to publish suggest info correctly.
+ # TODO: This routine has hardcoded category names, which should be improved.
+ m = re.search('(?<=root-)[a-zA-Z]*', root[0])
+ if m:
+ cat = m.group(0)
+ if cat == 'domain':
+ cat = 'domains'
+ if cat == 'feature':
+ cat = 'epicfeatures'
+ root_node['category'] = cat
+ logger.info("Fallback for "+cat+" for "+root[0])
if is_blank_ui_meta_node(root[0]):
name = root[0]
sub1_node = handle_ui_meta_node(name[-2:], root_node)