{% extends "base.html" %} {% block title %}{{ _('Objects') }} — {{ service_name }}{% endblock %} {% block content %} {% 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 %} {% if project_id %} {% set object_suffix = _(" for Project Group #{}: {}").format(url_for('.project', project_id=project_id), project_id, (project.name | get_translated_text) | e) | safe %} {% elif group_id %} {% set object_suffix = _(" for Basic Group #{}: {}").format(url_for('.group', group_id=group_id), group_id, (group.name | get_translated_text) | e) | safe %} {% elif action_id %} {% set object_suffix = _(" for Action #{}: {}").format(url_for('.action', action_id=action_id), action_id, action.translation.name | e) | safe %} {% elif location_id %} {% set object_suffix = _(" for Location #{}: {}").format(url_for('.location', location_id=location_id), location_id, (location.name | get_translated_text) | e) | safe %} {% elif user_id %} {% set object_suffix = _(" for User #{}: {}").format(url_for('.user_profile', user_id=user_id), user_id, user.name | e) | safe %} {% elif doi %} {% set object_suffix = _(" for Publication doi:{}").format(doi, doi) | safe %} {% else %} {% set object_suffix = "" %} {% endif %} {% if action_type %}

{{ action_type.translation.object_name_plural }}{{ object_suffix }}

{% else %}

{{ _('Objects') }}{{ object_suffix }}

{% endif %} {% endif %} {% if objects %} {% if show_action %}{% endif %} {% for property_name in display_properties %} {% endfor %} {% for object in objects %} {% if show_action %} {% if object.action is not none %} {% if object.action.instrument is not none %} {% else %} {% endif %} {% else %} {% endif %} {% 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') }}{{ _('Instrument') }}{{ _('Action') }}{{ display_property_titles[property_name] | get_translated_text }}{% if property_name not in ('hazards', 'tags') %} {% endif %}
{{ _('Date') }} {{ _('User') }} {{ _('Date') }} {{ _('User') }}
{{ object.object_id }} {% if object.data['name']['text'] | get_translated_text == '' %}—{% else %}{{ object.data['name']['text'] | get_translated_text }}{% endif %} {{ object.created_at | babel_format_date }} {{ object.created_by.name }} {{ object.last_modified_at | babel_format_date }} {{ object.modified_by.name }}{{ get_instrument_translation_for_instrument_in_language(object.action.instrument_id, get_user_language(current_user).id, use_fallback=True).name }}{{ action_translations[object.action.id].name }} {% 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 %} {% endif %} {% endblock %}