string layers are facets too, to fix exact matches

This commit is contained in:
j 2014-02-09 09:41:34 +00:00
parent bd72abae6e
commit 81aa990988

View file

@ -1458,6 +1458,10 @@ for key in settings.CONFIG['itemKeys']:
if 'autocomplete' in key and not 'autocompleteSortKey' in key or \
key.get('filter'):
Item.facet_keys.append(key['id'])
elif key.get('type') == 'layer' and \
utils.get_by_id(settings.CONFIG['layers'], key['id']).get('type') == 'string':
Item.facet_keys.append(key['id'])
Item.person_keys = []
for key in settings.CONFIG['itemKeys']: