{% trans_default_domain 'bibliography' %}
{{ 'bibliography.form.fields.allergome_ref'|trans }}
{{ bibliography.allergomeRef }}
{{ 'bibliography.form.fields.status'|trans }}
{%- if bibliography.status is null -%} {{- ('bibliography.status.null')|trans -}} {%- else -%} {{- ('bibliography.status.'~bibliography.status)|trans -}} {%- endif -%} {%- if is_granted('ROLE_SUPER_USER') and (bibliography.status|slice(-1) == "A" or bibliography.status|slice(-2) == "AR") -%} Export to Allergome {%- endif -%}
{{ 'bibliography.form.fields.authors'|trans }}
{#% for author in authors %} {{ author.name }} {% endfor %#} {% for bibliographyAuthor in bibliography.authors %} {{ bibliographyAuthor.author.name }} {% endfor %}
{{ 'bibliography.form.fields.title'|trans }}
{{ bibliography.title|raw }}
{% if bibliography.checkSimilar %}
Similar
{% endif %} {# Mari non lo vuole #} {# {% if bibliography.secondaryTitle != '' and bibliography.secondaryTitle is not null and (bibliography.periodical is null or bibliography.secondaryTitle != bibliography.periodical.title) %}
Secondary title
{{ bibliography.secondaryTitle }}
{% endif %} #}
{{ 'bibliography.form.fields.periodical'|trans }}
{%- if bibliography.periodical is not null -%} {{ bibliography.periodical.title }} {%- else -%} Not available {%- endif -%}
{{ 'bibliography.form.fields.date.year'|trans }}
{{ bibliography.year }}
{{ 'bibliography.form.fields.volume'|trans }}
{{ bibliography.volume }}
{{ 'bibliography.form.fields.number'|trans }}
{{ bibliography.number }}
{% if bibliography.pageStart is not null %}
{{ 'bibliography.form.fields.page_start'|trans }}
{{ bibliography.pageStart }}
{% endif %} {% if bibliography.pageEnd is not null %}
{{ 'bibliography.form.fields.page_end'|trans }}
{{ bibliography.pageEnd }}
{% endif %}
{{ 'bibliography.form.fields.keywords'|trans }}
{% set kwcount = 0 %} {% for keyword in bibliography.keywords -%} {{- kwcount > 0 ? ', ' : '' }}{{ keyword.keyword }} {%- set kwcount = kwcount + 1 -%} {%- endfor %}
{{ 'bibliography.form.fields.abstract'|trans }}
{%- if bibliography.abstract is not null -%} {{- bibliography.abstract|nl2br -}} {%- else -%} No Abstract Available {%- endif -%}
{{ 'bibliography.form.fields.url'|trans }}
{{ bibliography.url }}
{{ 'bibliography.form.fields.auth_address'|trans }}
{{ bibliography.authAddress }}
{{ 'bibliography.form.fields.note'|trans }}
{{ bibliography.note }}
{{ 'bibliography.form.fields.language'|trans }}
{{ bibliography.language != null ? ('bibliography.language.'~bibliography.language)|trans : ''}}
{{ 'bibliography.form.fields.countries'|trans }}
{% set countries = [] %} {%- for country in bibliography.countries -%} {% set countries = countries|merge([country.name]) %} {%- endfor -%} {{ countries|join(' - ') }}
{#
{{ 'bibliography.form.fields.pub_date'|trans }}
{%- if bibliography.month is not null -%} {{- date(bibliography.year ~'-'~ bibliography.month ~ '-01')|date('M') -}} {%- endif -%} {%- if bibliography.day is not null -%} {{- ' ' ~ bibliography.day ~ ', ' -}} {%- endif -%} {{- bibliography.year -}}
#}
{{ 'bibliography.form.fields.misc3'|trans }}
{% if bibliography.misc3 is not null and bibliography.misc3 != 'NO-DOI' %} {{ bibliography.misc3 }} {% else %} Not Available {% endif %}
{# TODO Questo va visualizzato? #} {% if bibliography.transient is not null %}
{{ 'bibliography.form.fields.transient'|trans }}
{{ bibliography.transient }}
{% endif %} {#% if html_file is defined %}
{{ 'bibliography.form.fields.article'|trans }}
{%- if html_file -%} View {%- elseif error_create_file -%}
{{ error_create_file }}
{%- else -%} Not available {%- endif -%}
{% endif %#} {% if bibliography.files|length > 0 %}
{{ 'bibliography.form.fields.article'|trans }}
{% for file in bibliography.files %}

{{ file.originalFilename }}{{ (file.size/1024/1024)|round(2) }} Mb

{#%- if files[file.id] is defined -%}

{{ file.originalFilename }}

{%- endif -%#} {# View %- elseif error_create_file -%}
{{ error_create_file }}
{%- else -%} Not available#} {% endfor %}
{% endif %}