{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2016-2018 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- 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 %}