{% extends "base.html" %} {% block title %}{% if (show_object_type_and_id_on_object_page_text is none and not config['HIDE_OBJECT_TYPE_AND_ID_ON_OBJECT_PAGE']) or show_object_type_and_id_on_object_page_text %}{{ action_type.translation.object_name }} #{{ object_id }}: {% endif %}{{ data['name']['text'] | get_translated_text }} — {{ service_name }}{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block content %} {% if is_archived %} {% endif %}

{% if (show_object_type_and_id_on_object_page_text is none and not config['HIDE_OBJECT_TYPE_AND_ID_ON_OBJECT_PAGE']) or show_object_type_and_id_on_object_page_text %}{{ action_type.translation.object_name }} #{{ object_id }}: {% endif %}{{ data.name.text | get_translated_text }}

{{ _('Information') }}

{% if instrument is not none %}{{ instrument.translation.name }}{% else %}—{% endif %}
{{ action.translation.name }}
{% block includes %} {# counter for plotly_chart_plots #} {% set plot_counter = namespace(value=0) %} {% include "objects/view/any.html" %} {% endblock %}
{% if languages | length > 1 %}
{% endif %} {% if not is_archived %} {% if not current_user.is_readonly %} {% if user_may_edit %}
{{ _('Edit Object') }}
{% endif %} {% if user_may_edit and new_schema_available %}
{{ _('Update Schema') }}
{% endif %} {% if user_may_grant %}
{{ _('Edit Permissions') }}
{% endif %} {% if project %}
{{ _('View Project Group') }}
{% endif %} {% if user_may_use_as_template %}
{{ _('Use as Template') }}
{% endif %} {% if action.type.id == action.type.SAMPLE_CREATION and not config['DISABLE_USE_IN_MEASUREMENT'] %}
{% endif %} {% endif %} {% if action.type.enable_labels %}
{% endif %}
{% if show_dataverse_export %}
{{ _('Export to %(dataverse_name)s', dataverse_name=config['DATAVERSE_NAME']) }}
{% elif dataverse_url %}
{{ _('View on %(dataverse_name)s', dataverse_name=config['DATAVERSE_NAME']) }}
{% endif %} {% if notebook_templates and jupyterhub_templates_url %}
{% endif %} {% endif %} {% if restore_form is not none %}
{{ restore_form.csrf_token() }}
{% endif %}
{% if not is_archived %} {% if action.type.enable_files %}

{{ _('Files') }}

{% if files %} {% for file in files %} {% if not file.is_hidden %} {% else %} {% endif %} {% endfor %}
{{ _('Title') }}
{% if file | is_image %} {{ file.title }} {{ _('Fullscreen Image Preview')}} {% endif %} {{ file.title }} {% if file.description %} {{ file.description }} {% endif %} {% if file.storage == 'local' or file.storage == 'database' %} {% if file | has_preview %} {% else %} {% endif %} {% elif file.storage == 'url' %} {% endif %}
{% else %}

{{ _('There are no files for this %(object_type)s.', object_type=action_type.translation.object_name.lower()) }}

{% endif %} {% for file in files %} {% if file.is_hidden %} {% endif %} {% endfor %} {% for file in files %} {% if not file.is_hidden %} {% endif %} {% endfor %} {% if user_may_edit %}
{{ _('Upload File') }}
{{ file_form.csrf_token }}
{{ _('Post Link')}}
{% endif %} {% endif %} {% endif %} {% if action.type.enable_labels %} {% endif %} {% if object_qrcode %} {% endif %} {% if not is_archived and action.type.enable_locations %}

{{ _("Locations") }}

{% set allowed_language_ids = [] %} {% for language in all_languages %} {% if language.enabled_for_input %} {{ allowed_language_ids.append(language.id) or '' }} {% endif %} {% endfor %} {% if object_location_assignments %} {% for object_location_assignment in object_location_assignments | reverse %} {% endfor %}
{{ _("Datetime") }}{{ _("Location") }}{{ _("Responsible User") }}{{ _("Assigning User") }}{{ _("Description") }}
{{ object_location_assignment.utc_datetime | babel_format_datetime}} {% if object_location_assignment.location_id is not none %}{{ get_location(object_location_assignment.location_id).name | get_translated_text }} (#{{ object_location_assignment.location_id }}){% else %}—{% endif %} {% if object_location_assignment.responsible_user_id is not none %} {{ get_user(object_location_assignment.responsible_user_id).name }} {% if object_location_assignment.confirmed %} {% elif object_location_assignment.responsible_user_id == current_user.id %} {{ _('Confirm') }} {% else %} ? {% endif %} {% else %} — {% endif %} {{ get_user(object_location_assignment.user_id).name }}
{{ object_location_assignment.description | get_translated_text or ('—' | safe) }}
{% else %} {{ _('This object has not been assigned to a location yet.') }} {% endif %} {% if user_may_assign_location %}
{{ location_form.csrf_token }}
1 %}class="input-group"{% endif %} id="input-group-object_location-{{ ENGLISH.lang_code }}" data-name="input-group-object_location" data-language="{{ ENGLISH.lang_code }}"> {% if allowed_language_ids | length > 1 %} {{ ENGLISH.names | get_translated_text }} {% endif %}
{% endif %} {% endif %} {% if not is_archived and action.type.enable_publications %}

{{ _('Publications') }}

{% if object_publications %} {% for object_publication in object_publications %} {% endfor %}
{{ _('DOI') }} {{ _('Title') }} {{ _('Object Name') }}
{{ object_publication.doi }} {% if object_publication.title is none %}—{% else %}{{ object_publication.title }}{% endif %} {% if object_publication.object_name is none %}—{% else %}{{ object_publication.object_name }}{% endif %} {{ _('View Objects') }}
{% else %}

{{ _('This object has not been linked to a publication yet.') }}

{% endif %} {% if user_may_link_publication %} {% for message in get_flashed_messages() %} {% if 'Please enter a valid DOI' in message %} {{ publication_form.errors.__setitem__(publication_form.doi.name, _('Please enter a valid DOI.')) or '' }} {% endif %} {% endfor %}
{{ publication_form.csrf_token }}
{% if publication_form.doi.name in publication_form.errors %} {{ publication_form.errors[publication_form.doi.name] }} {% endif %}
{% endif %} {% endif %} {% if not is_archived %} {% if action.type.enable_comments %}

{{ _('Comments') }}

{% if comments %} {% for comment in comments %}
{{ comment.content }}
{{ comment.author.name }}, {{ comment.utc_datetime | babel_format_datetime }}
{% endfor %} {% else %}

{{ _('There are no comments for this object.') }}

{% endif %} {% if user_may_comment %}
{{ comment_form.csrf_token }}
{% endif %} {% endif %} {% endif %} {% if not is_archived and action.type.enable_activity_log %} {% if object_log_entries %}

{{ _('Activity Log')}}

{% for object_log_entry in object_log_entries %} {% if object_log_entry.type == ObjectLogEntryType.CREATE_OBJECT %} {% elif object_log_entry.type == ObjectLogEntryType.CREATE_BATCH %} {% elif object_log_entry.type == ObjectLogEntryType.EDIT_OBJECT %} {% elif object_log_entry.type == ObjectLogEntryType.RESTORE_OBJECT_VERSION %} {% elif object_log_entry.type == ObjectLogEntryType.USE_OBJECT_IN_MEASUREMENT %} {% if object_log_entry.data['measurement_id'] %} {% else %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.USE_OBJECT_IN_SAMPLE_CREATION %} {% if object_log_entry.data['sample_id'] %} {% else %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.POST_COMMENT %} {% elif object_log_entry.type == ObjectLogEntryType.UPLOAD_FILE %} {% elif object_log_entry.type == ObjectLogEntryType.ASSIGN_LOCATION %} {% set object_location_assignment = get_object_location_assignment(object_log_entry.data['object_location_assignment_id']) %} {% if object_location_assignment.location is not none and object_location_assignment.responsible_user_id is not none %} {% elif object_location_assignment.location is not none %} {% elif object_location_assignment.responsible_user_id is not none %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.LINK_PUBLICATION %} {% elif object_log_entry.type == ObjectLogEntryType.REFERENCE_OBJECT_IN_METADATA %} {% if object_log_entry.data['object_id'] %} {% else %} {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.EXPORT_TO_DATAVERSE %} {% elif object_log_entry.type == ObjectLogEntryType.LINK_PROJECT %} {% with project = get_project(object_log_entry.data.project_id) %} {% if project is not none %} {% else %} {% endif %} {% endwith %} {% elif object_log_entry.type == ObjectLogEntryType.UNLINK_PROJECT %} {% if object_log_entry.data.project_deleted %} {% else %} {% with project = get_project(object_log_entry.data.project_id) %} {% if project is not none %} {% else %} {% endif %} {% endwith %} {% endif %} {% else %} {% endif %} {% endfor %}
{{ _('Datetime') }}
{{ object_log_entry.utc_datetime | babel_format_datetime }} {% if 'previous_object_id' in object_log_entry.data %} {{ _('%(user_name)s created the object using data from object #%(previous_object_id)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, previous_object_url=url_for('.object', object_id=object_log_entry.data['previous_object_id']), previous_object_id=object_log_entry.data['previous_object_id']) }} {% else %} {{ _('%(user_name)s created the object.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {% endif %} {{ _('View') }} {{ _('%(user_name)s created the object as part of a batch.', user_url=object_log_entry.user.id, user_name=object_log_entry.user.name, batch_url=url_for('.objects', ids=(object_log_entry.data['object_ids'] | tojson)[1:-1])) }} {{ _('View') }} {{ _('%(user_name)s edited the object.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {% if 'version_id' in object_log_entry.data %} {{ _('View') }} {% endif %} {{ _('%(user_name)s restored object version #%(version_id)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, version_url=url_for('.object_version', object_id=object_id, version_id=object_log_entry.data['restored_version_id']), version_id=object_log_entry.data['restored_version_id']) }} {% if 'version_id' in object_log_entry.data %} {{ _('View') }} {% endif %} {{ _('%(user_name)s used the object in %(measurement_name)s (#%(measurement_id)s).', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, measurement_url=url_for('.object', object_id=object_log_entry.data['measurement_id']), measurement_id=object_log_entry.data['measurement_id'], measurement_name=object_log_entry.data['measurement'].data.name.text | get_translated_text) }} {{ _('View') }} {{ _('%(user_name)s used the object in a measurement.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {{ _('%(user_name)s used the object to create %(sample_name)s (#%(sample_id)s).', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, sample_url=url_for('.object', object_id=object_log_entry.data['sample_id']), sample_id=object_log_entry.data['sample_id'], sample_name=object_log_entry.data['sample'].data.name.text | get_translated_text) }} {{ _('View') }} {{ _('%(user_name)s used the object to create a sample.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {{ _('%(user_name)s posted a comment for this object.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {% if action.type.enable_comments %} {% if 'comment_id' in object_log_entry.data %} {{ _('View') }} {% endif %} {% endif %} {% for file in files %} {% if file.id == object_log_entry.data['file_id'] %} {% if file.storage == 'local' or file.storage == 'database' %} {% if action.type.enable_files %} {{ _('%(user_name)s uploaded %(file_name)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, file_url='#file-' + object_log_entry.data['file_id'] | string, file_name=file.original_file_name) }} {% else %} {{ _('%(user_name)s uploaded %(file_name)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, file_name=file.original_file_name) }} {% endif %} {% elif file.storage == 'url' %} {{ _('%(user_name)s linked %(link_url)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, link_url=file.data.url) }} {% else %} {% if action.type.enable_files %} {{ _('%(user_name)s posted file #%(file_id)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, file_url='#file-' + object_log_entry.data['file_id'] | string, file_id=object_log_entry.data['file_id']) }} {% else %} {{ _('%(user_name)s posted a file.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {% endif %} {% endif %} {% endif %} {% endfor %} {% if action.type.enable_files %} {% if 'file_id' in object_log_entry.data %} {{ _('View') }} {% endif %} {% endif %} {{ _('%(user_name)s assigned this object to location %(location_name)s and user %(other_user_name)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, location_url=url_for('.location', location_id=object_location_assignment.location_id), location_name=get_location(object_location_assignment.location_id).name | get_translated_text, other_user_url=url_for('.user_profile', user_id=object_location_assignment.responsible_user_id), other_user_name=get_user(object_location_assignment.responsible_user_id).name) }} {{ _('%(user_name)s assigned this object to location %(location_name)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, location_url=url_for('.location', location_id=object_location_assignment.location_id), location_name=get_location(object_location_assignment.location_id).name | get_translated_text) }} {{ _('%(user_name)s assigned this object to user %(other_user_name)s.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, other_user_url=url_for('.user_profile', user_id=object_location_assignment.responsible_user_id), other_user_name=get_user(object_location_assignment.responsible_user_id).name) }} {{ _('%(user_name)s linked publication %(doi)s to the object.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, url_doi=object_log_entry.data['doi'] | urlencode, doi=object_log_entry.data['doi']) }} {% if action.type.enable_publications %} {{ _('View') }} {% endif %} {{ _('%(user_name)s referenced the object in the metadata of %(object_name)s (#%(object_id)s).', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, object_url=url_for('.object', object_id=object_log_entry.data['object_id']), object_name=object_log_entry.data['object'].data['name']['text'] | get_translated_text, object_id=object_log_entry.data['object_id']) }} {{ _('View') }} {{ _('%(user_name)s referenced the object in the metadata of another object.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {{ _('%(user_name)s exported this object to a Dataverse.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {% if object_log_entry.data.get('dataverse_url') %} {{ _('View') }} {% endif %} {{ _('%(user_name)s linked this object to %(project_name)s (#%(project_id)s).', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, project_url=url_for('.project', project_id=project.id), project_name=project.name | get_translated_text, project_id=project.id) }} {{ _('View') }} {{ _('%(user_name)s linked this object to a project group.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {{ _('%(user_name)s deleted the project group this object was linked to.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {{ _('%(user_name)s removed the link of this object to %(project_name)s (#%(project_id)s).', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name, project_url=url_for('.project', project_id=project.id), project_name=project.name | get_translated_text, project_id=project.id) }} {{ _('View') }} {{ _('%(user_name)s removed the link of this object to a project group.', user_url=url_for('.user_profile', user_id=object_log_entry.user.id), user_name=object_log_entry.user.name) }} {{ _('Unknown event') }}
{% endif %} {% endif %} {% if related_objects_tree %} {% if not is_archived and action.type.enable_related_objects %}

{{ _('Related Objects') }}

{% endif %} {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% if get_user_language(current_user).lang_code == 'de' %} {% endif %} {% endblock %}