def METHOD_NAME(viewcode):
    """Get view name."""
    if viewcode != current_app.config.get('RERO_ILS_SEARCH_GLOBAL_VIEW_CODE'):
        if org := Organisation.get_record_by_viewcode(viewcode):
            return org['name']
    return current_app.config.get('RERO_ILS_SEARCH_GLOBAL_NAME', '')