{# # This file is part of Zenodo. # Copyright (C) 2015, 2016, 2017 CERN. # # Zenodo is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # Zenodo is distributed in the hope that it will be # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. #L # You should have received a copy of the GNU General Public License # along with Zenodo; if not, write to the # Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307, USA. # # In applying this license, CERN does not # waive the privileges and immunities granted to it by virtue of its status # as an Intergovernmental Organization or submit itself to any jurisdiction. -#} {%- extends config.RECORDS_UI_BASE_TEMPLATE %} {%- from "zenodo_records/macros/accessright.html" import accessright_label -%} {%- from "zenodo_records/macros/objecttype.html" import objecttype_label -%} {%- from "zenodo_records/macros/authors.html" import authors, contributors -%} {%- set title = record.title + " | " + config.THEME_SITENAME -%} {%- set publication_date = record.publication_date|from_isodate -%} {%- set embargo_date = record.get('embargo_date', None)|from_isodate -%} {%- set object_type = record.resource_type|objecttype %} {%- set pid_versioning = pid | to_versioning_api -%} {%- block head %} {{super()}} {%- include "zenodo_records/meta.html" %} {%- endblock head %} {# Banner alert for not being at the latest version of a record #} {% if pid_versioning.exists and (not pid_versioning.is_last_child) %} {% set latest_pid = pid_versioning.last_child %} {% set latest_version_url = url_for('invenio_records_ui.recid', pid_value=latest_pid.pid_value) %} {% set latest_version_msg %} There is a newer version of this record available. {% endset %} {% set banner_messages = banner_messages|d([]) + [('warning', latest_version_msg|safe)] %} {% endif %} {%- block page_body %}
{%- block record_body %}

{{ objecttype_label(object_type, lang=current_i18n.language) }} {{ accessright_label(record.access_right, embargo_date=embargo_date) }}

{{ record.title }}

{{ authors(record.creators) }}

{%- if record.contributors %}

{{ contributors(record.contributors) }}

{%- endif %} {%- if record.thesis and record.thesis.supervisors %}
{{_('Thesis supervisor(s)')}}

{{ authors(record.thesis.supervisors) }}

{%- endif %}

{{ record.description|safe }}

{%- if record.notes %}
{{ record.notes}}
{%- endif %} {%- endblock record_body %} {%- block record_body_extra %} {%- set files = record.files if current_user|has_record_perm(record, 'read-files') else [] %} {%- include "zenodo_records/box/preview.html" %} {%- include "zenodo_records/box/files.html" %} {%- include "zenodo_records/box/references.html" %} {%- include "zenodo_records/box/citations.html" %} {%- endblock record_body_extra %}
{%- include "zenodo_records/box/edit.html" %} {%- set pending_comms, accepted_comms, all_pending_comms, all_accepted_comms = community_curation(record, current_user) %} {% if pending_comms or accepted_comms %} {% endif %}
{%- include "zenodo_records/box/record_stats.html" %}
{%- include "zenodo_records/box/publishedin.html" %} {%- set resolved_record = record.replace_refs() %} {%- include "zenodo_records/box/versions.html" %}
{%- include "zenodo_records/box/share.html" %}
{%- include "zenodo_records/box/export.html" %}
{%- endblock %} {%- block javascript %} {%- block record_jsonld %} {% set jsonld_serialization = record | serialize_record(pid, 'schemaorg_jsonld_v1', throws=False)%} {%- if jsonld_serialization %} {%- endif %} {%- endblock record_jsonld %} {{super()}} {% assets "zenodo_search_js" %}{% endassets %} {%- endblock %}