def index_context(): breadcrumbs = current_breadcrumbs + collection.breadcrumbs(ln=g.ln)[1:] return dict(of=request.values.get('of', collection.formatoptions[0]['code']), format_record=format_record, easy_search_form=EasySearchForm(csrf_enabled=False), breadcrumbs=breadcrumbs)
def index_context(): return dict( of=request.values.get('of', collection.formatoptions[0]['code']), easy_search_form=EasySearchForm(csrf_enabled=False), format_record=format_record, )
def add_searchform(): return { 'easy_search_form': EasySearchForm(csrf_enabled=False), 'searchbar_enable': True, 'collection': Collection.query.get_or_404(1) }