def typeahead_search(search_query): results = zoteroapi.search(search_query) results['items'] = map(to_typeahead, results['items']) return jsonify(results)
def search(search_query): return jsonify(zoteroapi.search(search_query))