API Docs¶
invenio module for I-Form theme.
- class invenio_theme_iform.ext.InvenioThemeIform(app=None)[source]¶
invenio-theme-iform extension.
Extension initialization.
- invenio_theme_iform.ext.guard_view_functions(app)[source]¶
Guard view-functions against unauthenticated access.
Views¶
invenio module for I-Form theme.
- invenio_theme_iform.views.cast_to_dict(attr_dict)[source]¶
Return the dict structure of AttrDict variable.
- invenio_theme_iform.views.current_identity_is_iform_authenticated() bool[source]¶
Checks whether current identity has iform-authentication.
NOTE: Default permission-policy has no field for iform_authenticated. Should the field not exist, the service checks against admin-permissions instead. You probably meant to configure a custom permission-policy.
- invenio_theme_iform.views.default_error_handler(e: Exception)[source]¶
Called when an otherwise unhandled error occurs.
- invenio_theme_iform.views.make_dict_like(value: str, key: str) Dict[str, str][source]¶
Convert the value to a dict like structure.
in the form of a key -> value pair.
- invenio_theme_iform.views.records_search()[source]¶
Search page ui.
With this route it is possible to override the default route “/search” to get to the rdm-records search. The default route will be overriden by the global search with changing the SEARCH_UI_SEARCH_TEMPLATE variable to the value “invenio_records_global_search/search/search.html” in the invenio.cfg file.