{% extends "base.html" %} {% block title %}Object #{{ object_id }}: {{ data['name']['text'] }} — {{ service_name }}{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block content %} {% if is_archived %}
There are no files for this {{ action.type.object_name.lower() }}.
{% endif %} {% for file in files %} {% if file.is_hidden %}Datetime | Location | Responsible User | Assigning User | Description |
---|---|---|---|---|
{{ 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 }} |
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 |
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 %} {% endif %} {% endif %} {% if not is_archived %} {% if action.type.enable_comments %}{{ comment.content }}
There are no comments for this object.
{% endif %} {% if user_may_comment %} {% endif %} {% endif %} {% endif %} {% if not is_archived and action.type.enable_activity_log %} {% if object_log_entries %}Datetime | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ object_log_entry.utc_datetime.strftime('%Y-%m-%d %H:%M:%S') }} | {% if object_log_entry.type == ObjectLogEntryType.CREATE_OBJECT %}{{ 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 | {% elif object_log_entry.type == ObjectLogEntryType.CREATE_BATCH %}{{ object_log_entry.user.name }} created the object as part of a batch. | View | {% elif object_log_entry.type == ObjectLogEntryType.EDIT_OBJECT %}{{ object_log_entry.user.name }} edited the object. | {% if 'version_id' in object_log_entry.data %} View {% endif %} | {% elif object_log_entry.type == ObjectLogEntryType.RESTORE_OBJECT_VERSION %}{{ 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 %} | {% elif object_log_entry.type == ObjectLogEntryType.USE_OBJECT_IN_MEASUREMENT %} {% if object_log_entry.data['measurement_id'] %}{{ 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 | {% else %}{{ object_log_entry.user.name }} used the object in a measurement. | {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.USE_OBJECT_IN_SAMPLE_CREATION %} {% if object_log_entry.data['sample_id'] %} | {{ 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 | {% else %}{{ object_log_entry.user.name }} used the object to create a sample. | {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.POST_COMMENT %} | {{ 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 %} | {% elif object_log_entry.type == ObjectLogEntryType.UPLOAD_FILE %}{{ 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 %} | {% 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 %}{{ 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 }}. | {% elif object_location_assignment.location is not none %}{{ object_log_entry.user.name }} assigned this object to location {{ get_location(object_location_assignment.location_id).name }}. | {% elif object_location_assignment.responsible_user_id is not none %}{{ object_log_entry.user.name }} assigned this object to user {{ get_user(object_location_assignment.responsible_user_id).name }}. | {% endif %}{% elif object_log_entry.type == ObjectLogEntryType.LINK_PUBLICATION %} | {{ object_log_entry.user.name }} linked publication {{ object_log_entry.data['doi'] }} to this object. | {% if action.type.enable_publications %} View {% endif %} | {% elif object_log_entry.type == ObjectLogEntryType.REFERENCE_OBJECT_IN_METADATA %} {% if object_log_entry.data['object_id'] %}{{ 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 | {% else %}{{ object_log_entry.user.name }} referenced the object in the metadata of another object. | {% endif %} {% elif object_log_entry.type == ObjectLogEntryType.EXPORT_TO_DATAVERSE %} | {{ object_log_entry.user.name }} exported this object to a Dataverse. | {% if object_log_entry.data.get('dataverse_url') %} View {% endif %} | {% elif object_log_entry.type == ObjectLogEntryType.LINK_PROJECT %} {% with project = get_project(object_log_entry.data.project_id) %} {% if project is not none %}{{ object_log_entry.user.name }} linked this object to {{ project.name }} (#{{ project.id }}). | View | {% else %}{{ object_log_entry.user.name }} linked this object to a project group. | {% endif %} {% endwith %} {% elif object_log_entry.type == ObjectLogEntryType.UNLINK_PROJECT %} {% if object_log_entry.data.project_deleted %} | {{ object_log_entry.user.name }} deleted the project group this object was linked to. | {% else %} {% with project = get_project(object_log_entry.data.project_id) %} {% if project is not none %} | {{ object_log_entry.user.name }} removed the link of this object to project group {{ project.name }} (#{{ project.id }}). | View | {% else %}{{ object_log_entry.user.name }} removed the link of this object to a project group. | {% endif %} {% endwith %} {% endif %} {% else %} | Unknown event | {% endif %} |