<commit_before>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ 'title.issue_detail'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}

{% if isPublisherHosting is defined %}
    {% set journalUrl = url('publisher_hosting_journal_index',{slug:issue.journal.slug}) %}
{% elseif isJournalHosting is defined %}
    {% set journalUrl = url('publisher_hosting_journal_index') %}
{% else %}
    {% set journalUrl = generateJournalUrl(issue.journal) %}
{% endif %}

{% block breadcrumb %}
    {% set list = [
    {'link': path('ojs_public_index'), 'title': project_name},
    {'link': journalUrl, 'title': issue.journal.title},
    {'title': 'issue'|trans}
    ] %}
    {{ breadcrumb(list) }}
{% endblock %}

{% block body %}

    <div class="container">
        <div class=" col-md-12">
            <h1>{{ fieldDisplay(issue, 'title') }}</h1>
            <h4>
                {% if issue.special %}
                    <span class="label label-success">
                            <i class="fa fa-star" title="{{ "special.issue"|trans }}"></i>
                        {{ "special.issue"|trans }}
                        </span> &nbsp;
                {% endif %}
                {% if issue.volume is not null and issue.volume != 0 %} {{ "volume"|trans }} : {{ issue.volume }} - {% endif %}{{ "issue"|trans }}: {{ issue.number }}
            </h4>
            <h5>
                <i class="fa fa-eye"></i>
                {% if issue.viewCount is null %} 0 {% else %} {{ issue.viewCount|number_format }} {% endif %}
                <i class="fa fa-download"></i>
                {% if issue.downloadCount is null %} 0 {% else %} {{ issue.downloadCount|number_format }} {% endif %}
            </h5>
        </div>

        <div class="col-md-9">

            <div class="panel panel-default">
                <div class="text-center">
                    <h4>{{ 'contents'|trans }}</h4>
                </div>
                <ul class="list-group">
                    {% for section in sections %}
                        {% if section.articles|length>0 %}
                            <li class="list-group-item list-group-item-primary">
                                <i class="fa fa-globe"></i> {{ section.title }}
                                <ul class="list-group">
                                    {% for article in section.articles %}
                                        {% if article.issue == issue %}
                                            <li class="list-group-item list-group-item-default">
                                                <a href="
                                            {% if isPublisherHosting is defined %}
                                                {{ url('publisher_hosting_journal_issue_article',{article_id: article.id,slug: issue.journal.slug,issue_id: issue.id}) }}
                                            {% elseif isJournalHosting is defined %}
                                            {% else %}
                                                {{ url('ojs_article_page',{article_id: article.id,slug: issue.journal.slug,issue_id: issue.id,publisher: issue.journal.publisher.slug}) }}
                                            {% endif %}">
                                                    <i class="fa fa-file-text"></i> {{ article.title }}
                                                </a>
                                                <br/>

                                                <span class="text-muted">
                                                    {% if article.submitterUser is not null %}
                                                        ({{ article.submitterUser.fullName }})
                                                    {% endif %}
                                                </span>
                                            </li>
                                        {% endif %}
                                    {% endfor %}
                                </ul>
                            </li>
                        {% endif %}
                    {% endfor %}
                </ul>
            </div>
        </div>
        <div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
            {% if issue.issueFiles|length %}
                <div class="panel panel-info">
                    <div class="panel-heading">
                        <span class="panel-title">{{ "issuefile.list"|trans }}</span>
                    </div>
                    <ul class="list-group">
                        {% for file in issue.issueFiles %}
                            <li class="list-group-item">
                                <a href="{{ url('ojs_site_download_issue', {issueFile: file.id}) }}">
                                    <i class="fa fa-download"></i> {{ file.title }}
                                </a>
                            </li><commit_msg>expose submitter user and article files on issue detail<commit_after>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ 'title.issue_detail'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}

{% if isPublisherHosting is defined %}
    {% set journalUrl = url('publisher_hosting_journal_index',{slug:issue.journal.slug}) %}
{% elseif isJournalHosting is defined %}
    {% set journalUrl = url('publisher_hosting_journal_index') %}
{% else %}
    {% set journalUrl = generateJournalUrl(issue.journal) %}
{% endif %}

{% block breadcrumb %}
    {% set list = [
    {'link': path('ojs_public_index'), 'title': project_name},
    {'link': journalUrl, 'title': issue.journal.title},
    {'title': 'issue'|trans}
    ] %}
    {{ breadcrumb(list) }}
{% endblock %}

{% block body %}

    <div class="container">
        <div class=" col-md-12">
            <h1>{{ fieldDisplay(issue, 'title') }}</h1>
            <h4>
                {% if issue.special %}
                    <span class="label label-success">
                            <i class="fa fa-star" title="{{ "special.issue"|trans }}"></i>
                        {{ "special.issue"|trans }}
                        </span> &nbsp;
                {% endif %}
                {% if issue.volume is not null and issue.volume != 0 %} {{ "volume"|trans }} : {{ issue.volume }} - {% endif %}{{ "issue"|trans }}: {{ issue.number }}
            </h4>
            <h5>
                <i class="fa fa-eye"></i>
                {% if issue.viewCount is null %} 0 {% else %} {{ issue.viewCount|number_format }} {% endif %}
                <i class="fa fa-download"></i>
                {% if issue.downloadCount is null %} 0 {% else %} {{ issue.downloadCount|number_format }} {% endif %}
            </h5>
        </div>

        <div class="col-md-9">

            <div class="panel panel-default">
                <div class="text-center">
                    <h4>{{ 'contents'|trans }}</h4>
                </div>
                <ul class="list-group">
                    {% for section in sections %}
                        {% if section.articles|length>0 %}
                            <li class="list-group-item list-group-item-primary">
                                <i class="fa fa-globe"></i> {{ section.title }}
                                <ul class="list-group">
                                    {% for article in section.articles %}
                                        {% if article.issue == issue %}
                                            <li class="list-group-item list-group-item-default">
                                                <a href="
                                            {% if isPublisherHosting is defined %}
                                                {{ url('publisher_hosting_journal_issue_article',{article_id: article.id,slug: issue.journal.slug,issue_id: issue.id}) }}
                                            {% elseif isJournalHosting is defined %}
                                            {% else %}
                                                {{ url('ojs_article_page',{article_id: article.id,slug: issue.journal.slug,issue_id: issue.id,publisher: issue.journal.publisher.slug}) }}
                                            {% endif %}">
                                                    <i class="fa fa-file-text"></i> {{ article.title }}
                                                </a>
                                                <div class="pull-right">
                                                    {% for file in article.articleFiles %}
                                                        <a href="{{ path('ojs_site_download_article', {articleFile: file.id}) }}"
                                                            target="_blank">
                                                            {{ file.title }}
                                                        </a>
                                                        {% if not loop.last %}
                                                             -
                                                        {% endif %}
                                                    {% endfor %}
                                                </div>
                                                {% if article.submitterUser is not null %}
                                                    <br>
                                                    <span class="text-muted">
                                                        &nbsp;&nbsp;&nbsp;&nbsp;({{ article.submitterUser.fullName }})
                                                    </span>
                                                {% endif %}
                                            </li>
                                        {% endif %}
                                    {% endfor %}
                                </ul>
                            </li>
                        {% endif %}
                    {% endfor %}
                </ul>
            </div>
        </div>
        <div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
            {% if issue.issueFiles|length %}
                <div class="panel panel-info">
                    <div class="panel-heading">
                        <span class="panel-title">{{ "issuefile.list"|trans }}</span>
                    </div>
                    <ul class="list-group">
                        {% for file in issue.issueFiles %}
                            <li class="list-group-item">
                                <a href="{{ url('ojs_site_download_issue', {issueFile: file.id}) }}">
                                    <i class="fa fa-download"></i> {{ file.title }}
                                </a>
                            </li>
{'fraction_non_alphanumeric': 0.1337680484396833, 'fraction_numerical': 0.004098742431299487, 'mean_word_length': 0.9505813953488372, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 121, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '933959', 'n_tokens_mistral': 2602, 'n_tokens_neox': 2321, 'n_words': 494}