Exemple #1
0
 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)
Exemple #2
0
 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,
     )
Exemple #3
0
 def add_searchform():
     return {
         'easy_search_form': EasySearchForm(csrf_enabled=False),
         'searchbar_enable': True,
         'collection': Collection.query.get_or_404(1)
     }