{# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016 CERN. # # Invenio 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. # # Invenio 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 Invenio; 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.APP_BASE_TEMPLATE %} {%- macro record_content(data) %} {% for key, value in data.items() recursive %}
  • {% if value is mapping %} {{ key }}: {% elif value is iterable and value is not string %} {{ key }}:
      {% for item in value %}
    1. {% if item is mapping %}
        {{ record_content(item) }}
      {% else %} {{ item }} {% endif %}
    2. {% endfor %}
    {% else %} {{ key }}: {{ value }} {% endif %}
  • {% endfor %} {%- endmacro %} {%- block page_body %}
    {%- if pid %} {%- block record_control_number %} {{ _('control number:') }} {{ pid.pid_type }} {{pid.pid_value}} {%- endblock %} {% endif %}
    {%- if 'publication_distribution_imprint' in record %} {%- block record_publication_date %} {{ _('Publication date:') }} {{ record['publication_distribution_imprint'][0]['date_of_publication_distribution'][0] }} {%- endblock %} {% endif %}
    {%- if 'other_standard_identifier' in record %} {%- block record_other_standard_identifier %} {{ _('OAI Id:') }} {{ record['other_standard_identifier'][0]['standard_number_or_code'] }} {%- endblock %} {% endif %}
    {%- if 'title_statement' in record %} {%- block record_title %}

    {{ record['title_statement']['title'] }}

    {%- endblock %} {% endif %} {%- if 'main_entry_personal_name' in record %} {%- block record_author %}

    {{ record['main_entry_personal_name']['personal_name'] }} {%- if 'added_entry_personal_name' in record %} {{ record['added_entry_personal_name'] | map(attribute='personal_name') | join(', ') }} {% endif %}

    {%- endblock %} {% endif %} {%- if 'summary' in record %} {%- block record_summary %}

    {{ record['summary'][0]['summary'] }}

    {%- endblock %} {%- endif %}
    {%- block record_raw %} {% if record %}

    Record:

    {% endif %} {%- endblock %}
    {%- endblock %}