{% extends "base.html" %} {% block title %}{{ _('Objects') }} — {{ service_name }}{% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% if get_user_language(current_user).lang_code == 'de' %} {% endif %} {% endblock %} {% block content %} {# counter for plotly_chart_plots #} {% set plot_counter = namespace(value=0) %} {% if search_notes is defined %} {% for category, note, start, end in search_notes %} {% if category == "error" %} {% set alert_class="alert-danger" %} {% elif category == "warning" %} {% set alert_class="alert-warning" %} {% else %} {% set alert_class="alert-info" %} {% endif %} {% endfor %} {% endif %} {% if not advanced_search_had_error %} {% if search_tree %} {% macro render_search_tree(search_tree, depth=0) -%} {% if depth > 100 %} ... {% else %} {% if search_tree.input_text %} {{ search_tree.input_text }} {% elif search_tree | length == 2 %} {{ search_tree[0].operator }} {% if search_tree[1].input_text %} {{ search_tree[1].input_text }} {% else %} {{ render_search_tree(search_tree[1], depth=depth + 1) }} {% endif %} {% elif search_tree | length == 3 %} {% if search_tree[0].input_text %} {{ search_tree[0].input_text }} {% else %}
{{ render_search_tree(search_tree[0], depth=depth + 1) }}
{% endif %} {{ search_tree[1].operator }} {% if search_tree[2].input_text %} {{ search_tree[2].input_text }} {% else %} {{ render_search_tree(search_tree[2], depth=depth + 1) }} {% endif %}
{% endif %} {% endif %} {%- endmacro %} {% if search_tree.input_text %} {{ search_tree.input_text }} {% else %} {{ render_search_tree(search_tree) }} {% endif %} {% endif %} {% endif %} {% if objects or not search_notes %}

{{ object_name_plural }}

{% if filter_action_type_infos or filter_action_infos or filter_instrument_infos or filter_location_infos or filter_related_user_info or filter_user_permissions_info or filter_all_users_permissions or filter_anonymous_permissions or filter_group_permissions_info or filter_project_permissions_info or filter_doi_info or filter_origins_info %} {% endif %} {% endif %} {% if show_filters %} {% endif %} {{ _('Search') }} {% if not edit_location %} {{ _('Assign Location') }} {% else %} {% set allowed_language_ids = [] %} {% for language in all_languages %} {% if language.enabled_for_input %} {{ allowed_language_ids.append(language.id) or '' }} {% endif %} {% endfor %}
{{ location_form.csrf_token }}
{% endif %} {% if objects %}
{% if edit_location %} {% endif %} {% if creation_info %} {% endif %} {% if last_edit_info %} {% endif %} {% if other_databases_info %} {% endif %} {% if 'instrument' in action_info and not config['DISABLE_INSTRUMENTS'] %} {% endif %} {% if 'action' in action_info %} {% endif %} {% if 'location' in location_info %} {% endif %} {% if 'responsible_user' in location_info %} {% endif %} {% for property_name in display_properties %} {% endfor %} {% if creation_info or last_edit_info %} {% if 'date' in creation_info %} {% endif %} {% if 'user' in creation_info %} {% endif %} {% if 'date' in last_edit_info %} {% endif %} {% if 'user' in last_edit_info %} {% endif %} {% endif %} {% for object in objects %} {% if edit_location %} {% endif %} {% if 'date' in creation_info %} {% endif %} {% if 'user' in creation_info %} {% endif %} {% if 'date' in last_edit_info %} {% endif %} {% if 'user' in last_edit_info %} {% endif %} {% if other_databases_info %} {% endif %} {% if object.action is not none %} {% if 'instrument' in action_info and not config['DISABLE_INSTRUMENTS'] %} {% if object.action.instrument is not none %} {% else %} {% endif %} {% endif %} {% if 'action' in action_info %} {% endif %} {% endif %} {% if 'location' in location_info %} {% endif %} {% if 'responsible_user' in location_info %} {% endif %} {% for property_name in display_properties %} {% if object.display_properties[property_name] is not none %} {% set metadata_language = none %} {% set data = object.display_properties[property_name][0] %} {% set schema = object.display_properties[property_name][1] %} {% set z = schema.update({'parent_style': 'table'}) %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ _('ID') }} {{ _('Name') }} {{ _('Created') }}{{ _('Last modified') }}{{ _('Other Databases') }}{{ _('Instrument') }}{{ _('Action') }}{{ _('Location') }}{{ _('Responsible User') }}{{ display_property_titles.get(property_name, property_name | e) | get_translated_text | safe }}{% if property_name not in ('hazards', 'tags') %} {% endif %}
{{ _('Date') }} {{ _('User') }}{{ _('Date') }} {{ _('User') }}
{{ object.object_id }} {% if object.name | get_translated_text == '' %}—{% else %}{{ object.name | get_translated_text }}{% endif %} {{ import_information_symbol(FederationObjectRef(fed_id=object.fed_id, component_uuid=object.component.uuid)) }} {{ object.created_at | babel_format_date }} {{ user_reference(object.created_by) }} {% if object.last_modified_at is not none %}{{ object.last_modified_at | babel_format_date }}{% else %}—{% endif %} {{ user_reference(object.modified_by) }} {% set shares = get_shares_for_object(object.object_id) %} {% set components = [] %} {% if object.component is not none %} {{ components.append(object.component) or '' }}  {{ object.component.get_name() }} {% endif %} {% for share in shares %} {% if share.component is not none %} {{ components.append(share.component) or '' }}  {{ share.component.get_name() }} {% endif %} {% endfor %} {% if not components %} — {% endif %} {{ object.action.instrument.name | get_translated_text(default=_('Unnamed Instrument')) }} {{ import_information_symbol(object.action.instrument) }} {{ object.action.name | get_translated_text(default=_('Unnamed Action')) }} {{ import_information_symbol(object.action) }} {% if object.location_id is none %} — {% else %} {% with location = get_location(object.location_id) %} {{ location | get_location_name(True) }} {{ import_information_symbol(location) }} {% endwith %} {% endif %} {% if object.responsible_user_id is none %} — {% else %} {{ user_reference(object.responsible_user_id) }} {% endif %} {% include "objects/view/any.html" %}
{% if pagination_enabled %}
{{ _('Pages') }}:
    {% if limit and num_objects_found %} {% for i in range((num_objects_found+limit-1)//limit) %} {% if i * limit == offset %}
  1. {{ i + 1 }}
  2. {% else %}
  3. {{ i + 1 }}
  4. {% endif %} {% endfor %} {% else %}
  5. 1
  6. {% endif %}
{{ _('Objects per page') }}:
    {% for i in (10, 25, 50, 100, 'all') %} {% if i == limit or (limit is none and i == 'all') %}
  1. {% if i == 'all' %}{{ _('all') }}{% else %}{{ i }}{% endif %}
  2. {% else %}
  3. {% if i == 'all' %}{{ _('all') }}{% else %}{{ i }}{% endif %}
  4. {% endif %} {% endfor %}
{% endif %} {% elif not search_notes and use_advanced_search and advanced_search_had_error %} {% elif not advanced_search_had_error %} {% endif %} {% endblock %}