{% extends "base.html" %} {% block title %}Object #{{ object_id }}: {{ data['name']['text'] }} — {{ service_name }}{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block content %} {# counter for plotly_chart_plots #} {% set plot_counter = namespace(value=0) %} {% if is_archived %} {% endif %}

{{ action.type.object_name }} #{{ object_id }}: {{ data['name']['text'] }}

Information

{% if instrument is not none %}{{ instrument.name }}{% else %}—{% endif %}
{{ action.name }}
{% include "objects/view/any.html" %}
{% 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 {{ config['DATAVERSE_NAME'] }}
{% elif dataverse_url %}
View on {{ 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' %} {% if file | has_preview %} {% else %} {% endif %} {% elif file.storage == 'url' %} {% endif %}
{% else %}

There are no files for this {{ action.type.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 %}

Location

{% if object_location_assignments %} {% for object_location_assignment in object_location_assignments | reverse %} {% endfor %}
DatetimeLocationResponsible UserAssigning UserDescription
{{ object_location_assignment.utc_datetime.strftime('%Y-%m-%d %H:%M:%S') }} {% if object_location_assignment.location_id is not none %}{{ get_location(object_location_assignment.location_id).name }} (#{{ 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 }}
{% else %} This object has not been assigned to a location yet. {% endif %} {% if user_may_assign_location %}
{{ location_form.csrf_token }}
{% 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.strftime('%Y-%m-%d %H:%M:%S') }}
{% 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.strftime('%Y-%m-%d %H:%M:%S') }} {{ object_log_entry.user.name }} created the object{% if 'previous_object_id' in object_log_entry.data %} using data from Object {{ object_log_entry.data['previous_object_id'] }}{% endif %}. View {{ object_log_entry.user.name }} created the object as part of a batch. View {{ object_log_entry.user.name }} edited the object. {% if 'version_id' in object_log_entry.data %} View {% endif %} {{ object_log_entry.user.name }} restored object version #{{ object_log_entry.data['restored_version_id'] }}. {% if 'version_id' in object_log_entry.data %} View {% endif %} {{ object_log_entry.user.name }} used the object in measurement {{ object_log_entry.data['measurement'].data['name']['text'] }} (#{{ object_log_entry.data['measurement_id'] }}). View {{ object_log_entry.user.name }} used the object in a measurement. {{ object_log_entry.user.name }} used the object to create the sample {{ object_log_entry.data['sample'].data['name']['text'] }} (#{{ object_log_entry.data['sample_id'] }}). View {{ object_log_entry.user.name }} used the object to create a sample. {{ object_log_entry.user.name }} posted a comment for this object. {% if action.type.enable_comments %} {% if 'comment_id' in object_log_entry.data %} View {% endif %} {% endif %} {{ object_log_entry.user.name }} {% for file in files %}{% if file.id == object_log_entry.data['file_id'] %}{% if file.storage == 'local' %}uploaded {% if action.type.enable_files %}{% endif %}{{ file.original_file_name }}{% if action.type.enable_files %}{% endif %}{% elif file.storage == 'url' %}linked {{ file.data.url }}{% else %}posted {% if action.type.enable_files %}file #{{ file.id }}{% else %} a file{% endif %}{% endif %}{% endif %}{% endfor %}. {% if action.type.enable_files %} {% if 'file_id' in object_log_entry.data %} View {% endif %} {% endif %} {{ object_log_entry.user.name }} assigned this object to location {{ get_location(object_location_assignment.location_id).name }} and user {{ get_user(object_location_assignment.responsible_user_id).name }}.{{ object_log_entry.user.name }} assigned this object to location {{ get_location(object_location_assignment.location_id).name }}.{{ object_log_entry.user.name }} assigned this object to user {{ get_user(object_location_assignment.responsible_user_id).name }}. {{ object_log_entry.user.name }} linked publication {{ object_log_entry.data['doi'] }} to this object. {% if action.type.enable_publications %} View {% endif %} {{ object_log_entry.user.name }} referenced the object in the metadata of {{ object_log_entry.data['object'].data['name']['text'] }} (#{{ object_log_entry.data['object_id'] }}). View {{ object_log_entry.user.name }} referenced the object in the metadata of another object. {{ object_log_entry.user.name }} exported this object to a Dataverse. {% if object_log_entry.data.get('dataverse_url') %} View {% endif %} {{ object_log_entry.user.name }} linked this object to {{ project.name }} (#{{ project.id }}). View {{ object_log_entry.user.name }} linked this object to a project group. {{ object_log_entry.user.name }} deleted the project group this object was linked to. {{ object_log_entry.user.name }} removed the link of this object to project group {{ project.name }} (#{{ project.id }}). View {{ object_log_entry.user.name }} removed the link of this object to a project group. 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() }} {% endblock %}