{# # This file is part of Zenodo. # Copyright (C) 2015, 2016 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. # # 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 "zenodo_theme/page.html" %} {% set title = config.THEME_SITENAME + " - Research. Shared." %} {%- from "zenodo_records/macros/accessright.html" import accessright_label -%} {%- from "zenodo_records/macros/objecttype.html" import objecttype_label -%} {%- from "zenodo_records/macros/altmetric.html" import almetric_badge -%} {%- from "zenodo_records/macros/authors.html" import authors -%} {%- block page_body %}

{{_('Latest entries')}}

{%- for r in records %} {%- set publication_date = r.publication_date|from_isodate -%} {%- set record_version = (r.version or (r.relations.version[0].index + 1)) if r.conceptrecid else None -%} {%- set creation_date = r._created|from_isodatetime -%} {%- set embargo_date = r.embargo_date|from_isodate -%} {%- set object_type = r.resource_type|objecttype %} {%- set record_url = url_for('invenio_records_ui.recid', pid_value=r['recid']) %}
{%- if r.doi %} {% endif %}
{{ publication_date|dateformat(format='long') }}{{ (' (v' ~ record_version ~ ')') if record_version else '' }} {{ objecttype_label(object_type, lang=current_i18n.language) }} {{ accessright_label(r.access_right, embargo_date=embargo_date) }}

{{r.title}}

{{ authors(r.creators) }}

{%- if r.relations.version[0].count|d(1) > 1 %}

{{ r.relations.version[0].count - 1 }} more version(s) exist for this record

{% endif %}
{%- if not loop.last %} {%- else%}

More

{%- endif %} {%- endfor %}

{{config.THEME_SITENAME}} at a glance

{% include "zenodo_frontpage/benefits.html" %}
{%- endblock page_body %} {% block javascript %} {{ super() }} {% endblock javascript %}