wcs: also index keywords for formdefs found via category cells (#27676)

This commit is contained in:
Frédéric Péters 2018-10-30 14:54:06 +01:00
parent a008a6d5d3
commit d940345e91
1 changed files with 2 additions and 1 deletions

View File

@ -471,10 +471,11 @@ class WcsFormsOfCategoryCell(WcsCommonCategoryCell, WcsBlurpMixin):
formdefs = self.get_data({'synchronous': True})
for site in formdefs.values():
for formdef in site.get('data', []):
text = ' '.join([formdef.get('description', '')] + formdef.get('keywords', []))
yield {
'url': formdef['url'],
'title': formdef['title'],
'text': formdef['description']}
'text': text}
@register_cell_class