diff --git a/expert/browser/search.py b/expert/browser/search.py index 8e1247d..353a822 100644 --- a/expert/browser/search.py +++ b/expert/browser/search.py @@ -209,7 +209,7 @@ class Search(ConceptView): data.sort(key=lambda x: x['sort']) if not title: data.insert(0, {'label': '', 'name': '', 'id': ''}) - jsonData = dict(itentifier='id') + jsonData = dict(identifier='id') jsonItems = [] for item in data[:100]: jsonItems.append(dict(label=item['label'], diff --git a/expert/search.txt b/expert/search.txt index 18df101..07dab8b 100755 --- a/expert/search.txt +++ b/expert/search.txt @@ -177,7 +177,7 @@ of the concepts' titles: >>> request = TestRequest(form=form) >>> view = Search(page, request) >>> view.listConcepts() - u"{identifier: 'id', items: [{label: 'Zope (Thema)', name: 'Zope', id: '101'}, {label: 'Zope 2 (Thema)', name: 'Zope 2', id: '103'}, {label: 'Zope 3 (Thema)', name: 'Zope 3', id: '105'}]}" + '{"items": [{"id": "101", "name": "Zope", "label": "Zope (Thema)"}, {"id": "103", "name": "Zope 2", "label": "Zope 2 (Thema)"}, {"id": "105", "name": "Zope 3", "label": "Zope 3 (Thema)"}], "identifier": "id"}' Preset Concept Types on Search Forms ------------------------------------