From efcab239141f5370b6867f5caac671e809a45d00 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sun, 15 Dec 2013 19:35:49 +0100 Subject: [PATCH] ignore search for concepts without specification of type or title --- expert/browser/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expert/browser/search.py b/expert/browser/search.py index d235d4d..49d58ff 100644 --- a/expert/browser/search.py +++ b/expert/browser/search.py @@ -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]