ignore search for concepts without specification of type or title

This commit is contained in:
Helmut Merz 2013-12-15 19:35:49 +01:00
parent 0263eacb3b
commit efcab23914

View file

@ -141,7 +141,7 @@ class Search(ConceptView):
title = None
types = request.get('searchType')
data = []
if title or types:
if title or (types and types != u'loops:concept:*'):
if title is not None:
title = title.replace('(', ' ').replace(')', ' ').replace(' -', ' ')
#title = title.split(' ', 1)[0]