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

    <style type="text/css">
        .margin-bot {
            margin-bottom: 10px;
        }
    </style>
    {% if journal is defined and journal.theme %}
        <style>
            {{ journal.theme.css|raw }}
        </style>
    {% endif %}
{% endblock %}

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

{% block body %}
    <div class="container">
        {% if design is defined and design is not null and design.content is defined and design.content is not null %}
            {% include template_from_string(design.content) %}
        {% else %}
            {% block journalheader %}
                <div id="header">
                    <div class="row">
                        {% if journal.header %}
                            <div class="col-md-12">
                                <img src="{{ journal.header|imagine_filter('journal_header') }}"
                                     class="width100 img-responsive margin-bot"/>
                            </div>
                        {% endif %}
                        <h1 class="col-md-12">
                            {{ journal.title }}
                            <small>
                                <i class="fa fa-eye"></i>
                                {{ journal.viewCount|number_format }}
                            </small>
                            <small>
                                <i class="fa fa-download"></i>
                                {{ journal.downloadCount|number_format }}
                            </small>
                        </h1>
                        <div class="col-md-12">
                            {% include '::flashbag.html.twig' %}
                            <dl class="journal-meta">
                                {% if journal.issn %}
                                    <dt>ISSN</dt>
                                    <dd>{{ journal.issn }}</dd>
                                {% endif %}

                                {% if journal.eissn %}
                                    <dt>e-ISSN</dt>
                                    <dd>{{ journal.eissn }}</dd>
                                {% endif %}

                                {% if journal.periods|length > 0 %}
                                    <dt>{{ "period"|trans }}</dt>
                                    <dd>
                                        {% for period in journal.periods %}
                                            {{ period.period }}
                                            {% if not loop.last %}
                                                ,
                                            {% endif %}
                                        {% endfor %}
                                    </dd>
                                {% endif %}
                                <!--
                            {% if journal.country %}
                            <dt>{{ "country"|trans }}</dt>
                            <dd>{{ journal.country }}</dd>
                            {% endif %}
                            -->
                            </dl>
                        </div>
                    </div>
                </div>
            {% endblock %}
            <div class="row">
                <div class="col-md-2 col-sm-3 col-xs-8 margin-bot">
                    <img
                            {% if journal.image is not null %}
                                src="{{ journal.image|imagine_filter('journal_cover') }}" class="img-responsive img-rounded float-left"
                            {% else %}
                                src="#" class="img-responsive img-rounded float-left tri"
                            {% endif %}
                            alt="{{ 'cover_image'|trans }} "/>

                    <a href="#" class="list-group-item ">
                        <span class="pull-right">

                        </span>
                        <span class="row-fluid">
                            <span class="col-md-6 nopadding">
                                <span class="list-group-item-heading count"><i
                                            class="fa fa-eye"></i> {{ journal.viewCount|number_format(0,'.','.') }}</span>
                            </span>
                            <span class="col-md-6 nopadding">
                                <span class="list-group-item-heading count"><i
                                            class="fa fa-download"></i> {{ journal.downloadCount|number_format(0,'.','.') }} </span>
                            </span>
                            <span class="clearfix"></span>
                        </span>
                    </a>
                </div>
                <div class="col-md-7 col-sm-5 margin-bot">
                    {% if journal.url %}
                        <a href="{{ journal.url }}" target="_blank">
                            <small>{{ journal.url }}</small>
                        </a>
                    {% endif %}
                    {{ journal.description|raw }}
                </div>
                <div class="col-md-3 col-sm-4">


                    <div class="list-group journal-stats">
                        <div class="list-group-item ">
                            <form role="search"
                                  action="{{ url('ojs_journal_index_search',{publisher: journal.publisher.slug, slug: journal.slug}) }}"
                                  method="get" id="search_on_journal">
                                <div class="input-group">
                                    <input type="text" class="form-control"
                                           placeholder="{{ "search.on.journal"|trans }}" name="q">

                                    <div class="input-group-btn">
                                        <button class="btn btn-default" type="submit"><i class="fa fa-search"></i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>

                        <a href="//{{ base_host }}{{ path('ojs_journal_submission_start',{"journalId":journal.id}) }}"
                           class="list-group-item list-group-item-success">
                            <h5><i class="fa fa-plus-circle"></i> {{ "article.submit"|trans }}</h5>
                        </a>

                        <a href="{{ archive_uri }}"
                           class="list-group-item "><h5><i class="fa fa-archive"></i> {{ "archive"|trans }}</h5>
                        </a>

                        <a href="{{ url('ojs_journal_contacts',{slug: journal.slug, publisher: journal.publisher.slug}) }}"
                           class="list-group-item ">
                            <h5><i class="fa fa-phone"></i> {{ "journalcontact.singular"|trans }}</h5>
                        </a>

                        <a href="{{ url('ojs_announcement_index',{slug: journal.slug, publisher: journal.publisher.slug}) }}"
                           class="list-group-item ">
                            <h5><i class="fa fa-bullhorn"></i> {{ "announcements"|trans }}</h5>
                        </a>

                        {% for journalPage in journalPages %}
                            <a href="{{ url('ojs_site_journal_page', {slug: journalPage.slug, journal_slug: journal.slug, publisher: journal.publisher.slug}) }}"
                               class="list-group-item ">
                                <h5><i class="fa fa-file-o"></i> {{ journalPage.title }}</h5>
                            </a>
                        {% endfor %}

                        <div class="list-group-item ">
                            <form role="search"
                                  action="{{ path('ojs_journal_subscribe',{slug: journal.slug, publisher: journal.publisher.slug}) }}"
                                  method="post">
                                <div class="input-group">
                                    <input type="text" class="form-control"
                                           placeholder="{{ "journal.subscribe"|trans }}" name="mail">

                                    <div class="input-group-btn">
                                        <button class="btn btn-default" type="submit"><i class="fa fa-send"></i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>

                    </div>
                    {% if journal.journalIndexs|length>0 %}
                        <div class="list-group">
                            {% for journalIndex in journal.journalIndexs %}
                                <div class="list-group-item">
                                    <a href="{{ journalIndex.link }}" target="_blank">
                                        <h5>
                                            {% if journalIndex.index.logo %}
                                                <img src="{{ journalIndex.index.logo|imagine_filter('index_logo') }}"
                                                     alt="{{ journalIndex.index.name }}"/>
                                            {% endif %}
                                            {{ journalIndex.index.name }}
                                        </h5>
                                    </a>
                                </div>
                            {% endfor %}
                        </div>
                    {% endif %}
                </div>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <h5 class="page-header"><span class="panel-title">{{ "journal_index.issues"|trans }}</span></h5>
                </div>

                <div class="col-md-9 col-sm-8">
                    <div class="row">
                        <div class="col-md-5 col-sm-12 margin-bot">
                            <div id="issuetree">
                                <ul>
                                    {% for key, issues in years %}
                                        <li>
                                            <h4 title=" {{ "year"|trans }}"> {{ key }}</h4>

                                            <ul>
                                                {% for issue in issues %}
                                                    <li>
                                                        <a href="{{ issue.publicURI }}">
                                                            {{ "volume"|trans }}  {{ issue.volume }}
                                                            - {{ "issue.number"|trans }} {{ issue.number }}
                                                            {% if issue.special %}
                                                            <span class="label label-success">
                                                            <i class="fa fa-star"
                                                               title="{{ "special.issue"|trans }}"></i>
                                                                {{ "special.issue"|trans }}
                                                        </span>
                                                            {% endif %}&nbsp;
                                                        </a>
                                                    </li>
                                                {% endfor %}
                                            </ul>
                                        </li>
                                    {% endfor %}

                                </ul>
                                <a class="btn btn-primary " href="{{ archive_uri }}">
                                    <i class="fa fa-arrow-right"></i>
                                    {{ "archive"|trans }}
                                </a>

                            </div>
                        </div>
                        <div class="col-md-7 col-sm-12" id="issue-container">
                            {% if last_issue %}
                                <div class="panel panel-default">
                                    <div class="panel-heading"><strong>{{ last_issue.title }}</strong>
                                        {{ "issue.number"|trans }} {{ last_issue.number }} {{ "volume"|trans }} {{ last_issue.volume }}
                                        - {{ last_issue.datePublished|localizeddate("medium",'none',null,null,'MMM Y') }}
                                        <span class="badge badge-warning pull-right">{{ "read.lastissue"|trans }}</span>
                                    </div>
                                    <div class="panel-body">
                                        <ul>
                                            {% for article in last_issue.articles[:10] %}
                                                <li>
                                                    <a href="{{ article.publicURI }}">{{ article.title }}</a>
                                                </li>
                                            {% endfor %}
                                        </ul>

                                    </div>
                                </div>
                            {% endif %}
                        </div>
                    </div>
                </div>

                <div class="col-md-3 col-sm-4">
                    {% include 'OjsSiteBundle:Journal:journal_right_block.html.twig' %}
                </div>
            </div>
            {% if posts|length>0 %}
                <div class="row">
                    <h3>{{ 'title.posts'|trans }}</h3>
                    <ul>
                        {% for post in posts %}
                            <li>
                                <a href="{{ path('ojs_site_journal_post',
                                {'slug': post.slug, 'publisher': journal.publisher.slug, 'journal_slug': journal.slug}) }}">
                                    {{ post.title }}</a>
                            </li>
                        {% endfor %}
                    </ul>
                </div>
            {% endif %}
        {% endif %}
    </div>

{% endblock %}
{% block javascripts %}
    {{ parent() }}
    <script type="text/javascript">
        $(document).ready(function () {
            analytics.view('journal', {{ journal.id }}, '{{ token }}');
        });
    </script>
    {% if journal.googleAnalyticsId is not null %}
        <script>
            (function (i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r;
                i[r] = i[r] || function () {
                            (i[r].q = i[r].q || []).push(arguments)
                        }, i[r].l = 1 * new Date();
                a = s.createElement(o),
                        m = s.getElementsByTagName(o)[0];
                a.async = 1;
                a.src = g;
                m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', '{{ journal.googleAnalyticsId }}', 'auto');
            ga('send', 'pageview');
        </script>
    {% endif %}
{% endblock %}
<commit_msg>this commit probably fixes #1263<commit_after>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ journal.title }} &raquo; {{ 'title.journal'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}
{% block stylesheets %}
    {{ parent() }}

    <style type="text/css">
        .margin-bot {
            margin-bottom: 10px;
        }
    </style>
    {% if journal is defined and journal.theme %}
        <style>
            {{ journal.theme.css|raw }}
        </style>
    {% endif %}
{% endblock %}

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

{% block body %}
    <div class="container">
        {% if design is defined and design is not null and design.content is defined and design.content is not null %}
            {% include template_from_string(design.content) %}
        {% else %}
            {% block journalheader %}
                <div id="header">
                    <div class="row">
                        {% if journal.header %}
                            <div class="col-md-12">
                                <img src="{{ journal.header|imagine_filter('journal_header') }}"
                                     class="width100 img-responsive margin-bot"/>
                            </div>
                        {% endif %}
                        <h1 class="col-md-12">
                            {{ journal.title }}
                            <small>
                                <i class="fa fa-eye"></i>
                                {{ journal.viewCount|number_format }}
                            </small>
                            <small>
                                <i class="fa fa-download"></i>
                                {{ journal.downloadCount|number_format }}
                            </small>
                        </h1>
                        <div class="col-md-12">
                            {% include '::flashbag.html.twig' %}
                            <dl class="journal-meta">
                                {% if journal.issn %}
                                    <dt>ISSN</dt>
                                    <dd>{{ journal.issn }}</dd>
                                {% endif %}

                                {% if journal.eissn %}
                                    <dt>e-ISSN</dt>
                                    <dd>{{ journal.eissn }}</dd>
                                {% endif %}

                                {% if journal.periods|length > 0 %}
                                    <dt>{{ "period"|trans }}</dt>
                                    <dd>
                                        {% for period in journal.periods %}
                                            {{ period.period }}
                                            {% if not loop.last %}
                                                ,
                                            {% endif %}
                                        {% endfor %}
                                    </dd>
                                {% endif %}
                                <!--
                            {% if journal.country %}
                            <dt>{{ "country"|trans }}</dt>
                            <dd>{{ journal.country }}</dd>
                            {% endif %}
                            -->
                            </dl>
                        </div>
                    </div>
                </div>
            {% endblock %}
            <div class="row">
                <div class="col-md-2 col-sm-3 col-xs-8 margin-bot">
                    <img
                            {% if journal.image is not null %}
                                src="{{ journal.image|imagine_filter('journal_original') }}" class="img-responsive img-rounded float-left"
                            {% else %}
                                src="#" class="img-responsive img-rounded float-left tri"
                            {% endif %}
                            alt="{{ 'cover_image'|trans }} " width="200" height="300"/>

                    <a href="#" class="list-group-item ">
                        <span class="pull-right">

                        </span>
                        <span class="row-fluid">
                            <span class="col-md-6 nopadding">
                                <span class="list-group-item-heading count"><i
                                            class="fa fa-eye"></i> {{ journal.viewCount|number_format(0,'.','.') }}</span>
                            </span>
                            <span class="col-md-6 nopadding">
                                <span class="list-group-item-heading count"><i
                                            class="fa fa-download"></i> {{ journal.downloadCount|number_format(0,'.','.') }} </span>
                            </span>
                            <span class="clearfix"></span>
                        </span>
                    </a>
                </div>
                <div class="col-md-7 col-sm-5 margin-bot">
                    {% if journal.url %}
                        <a href="{{ journal.url }}" target="_blank">
                            <small>{{ journal.url }}</small>
                        </a>
                    {% endif %}
                    {{ journal.description|raw }}
                </div>
                <div class="col-md-3 col-sm-4">


                    <div class="list-group journal-stats">
                        <div class="list-group-item ">
                            <form role="search"
                                  action="{{ url('ojs_journal_index_search',{publisher: journal.publisher.slug, slug: journal.slug}) }}"
                                  method="get" id="search_on_journal">
                                <div class="input-group">
                                    <input type="text" class="form-control"
                                           placeholder="{{ "search.on.journal"|trans }}" name="q">

                                    <div class="input-group-btn">
                                        <button class="btn btn-default" type="submit"><i class="fa fa-search"></i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>

                        <a href="//{{ base_host }}{{ path('ojs_journal_submission_start',{"journalId":journal.id}) }}"
                           class="list-group-item list-group-item-success">
                            <h5><i class="fa fa-plus-circle"></i> {{ "article.submit"|trans }}</h5>
                        </a>

                        <a href="{{ archive_uri }}"
                           class="list-group-item "><h5><i class="fa fa-archive"></i> {{ "archive"|trans }}</h5>
                        </a>

                        <a href="{{ url('ojs_journal_contacts',{slug: journal.slug, publisher: journal.publisher.slug}) }}"
                           class="list-group-item ">
                            <h5><i class="fa fa-phone"></i> {{ "journalcontact.singular"|trans }}</h5>
                        </a>

                        <a href="{{ url('ojs_announcement_index',{slug: journal.slug, publisher: journal.publisher.slug}) }}"
                           class="list-group-item ">
                            <h5><i class="fa fa-bullhorn"></i> {{ "announcements"|trans }}</h5>
                        </a>

                        {% for journalPage in journalPages %}
                            <a href="{{ url('ojs_site_journal_page', {slug: journalPage.slug, journal_slug: journal.slug, publisher: journal.publisher.slug}) }}"
                               class="list-group-item ">
                                <h5><i class="fa fa-file-o"></i> {{ journalPage.title }}</h5>
                            </a>
                        {% endfor %}

                        <div class="list-group-item ">
                            <form role="search"
                                  action="{{ path('ojs_journal_subscribe',{slug: journal.slug, publisher: journal.publisher.slug}) }}"
                                  method="post">
                                <div class="input-group">
                                    <input type="text" class="form-control"
                                           placeholder="{{ "journal.subscribe"|trans }}" name="mail">

                                    <div class="input-group-btn">
                                        <button class="btn btn-default" type="submit"><i class="fa fa-send"></i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>

                    </div>
                    {% if journal.journalIndexs|length>0 %}
                        <div class="list-group">
                            {% for journalIndex in journal.journalIndexs %}
                                <div class="list-group-item">
                                    <a href="{{ journalIndex.link }}" target="_blank">
                                        <h5>
                                            {% if journalIndex.index.logo %}
                                                <img src="{{ journalIndex.index.logo|imagine_filter('index_logo') }}"
                                                     alt="{{ journalIndex.index.name }}"/>
                                            {% endif %}
                                            {{ journalIndex.index.name }}
                                        </h5>
                                    </a>
                                </div>
                            {% endfor %}
                        </div>
                    {% endif %}
                </div>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <h5 class="page-header"><span class="panel-title">{{ "journal_index.issues"|trans }}</span></h5>
                </div>

                <div class="col-md-9 col-sm-8">
                    <div class="row">
                        <div class="col-md-5 col-sm-12 margin-bot">
                            <div id="issuetree">
                                <ul>
                                    {% for key, issues in years %}
                                        <li>
                                            <h4 title=" {{ "year"|trans }}"> {{ key }}</h4>

                                            <ul>
                                                {% for issue in issues %}
                                                    <li>
                                                        <a href="{{ issue.publicURI }}">
                                                            {{ "volume"|trans }}  {{ issue.volume }}
                                                            - {{ "issue.number"|trans }} {{ issue.number }}
                                                            {% if issue.special %}
                                                            <span class="label label-success">
                                                            <i class="fa fa-star"
                                                               title="{{ "special.issue"|trans }}"></i>
                                                                {{ "special.issue"|trans }}
                                                        </span>
                                                            {% endif %}&nbsp;
                                                        </a>
                                                    </li>
                                                {% endfor %}
                                            </ul>
                                        </li>
                                    {% endfor %}

                                </ul>
                                <a class="btn btn-primary " href="{{ archive_uri }}">
                                    <i class="fa fa-arrow-right"></i>
                                    {{ "archive"|trans }}
                                </a>

                            </div>
                        </div>
                        <div class="col-md-7 col-sm-12" id="issue-container">
                            {% if last_issue %}
                                <div class="panel panel-default">
                                    <div class="panel-heading"><strong>{{ last_issue.title }}</strong>
                                        {{ "issue.number"|trans }} {{ last_issue.number }} {{ "volume"|trans }} {{ last_issue.volume }}
                                        - {{ last_issue.datePublished|localizeddate("medium",'none',null,null,'MMM Y') }}
                                        <span class="badge badge-warning pull-right">{{ "read.lastissue"|trans }}</span>
                                    </div>
                                    <div class="panel-body">
                                        <ul>
                                            {% for article in last_issue.articles[:10] %}
                                                <li>
                                                    <a href="{{ article.publicURI }}">{{ article.title }}</a>
                                                </li>
                                            {% endfor %}
                                        </ul>

                                    </div>
                                </div>
                            {% endif %}
                        </div>
                    </div>
                </div>

                <div class="col-md-3 col-sm-4">
                    {% include 'OjsSiteBundle:Journal:journal_right_block.html.twig' %}
                </div>
            </div>
            {% if posts|length>0 %}
                <div class="row">
                    <h3>{{ 'title.posts'|trans }}</h3>
                    <ul>
                        {% for post in posts %}
                            <li>
                                <a href="{{ path('ojs_site_journal_post',
                                {'slug': post.slug, 'publisher': journal.publisher.slug, 'journal_slug': journal.slug}) }}">
                                    {{ post.title }}</a>
                            </li>
                        {% endfor %}
                    </ul>
                </div>
            {% endif %}
        {% endif %}
    </div>

{% endblock %}
{% block javascripts %}
    {{ parent() }}
    <script type="text/javascript">
        $(document).ready(function () {
            analytics.view('journal', {{ journal.id }}, '{{ token }}');
        });
    </script>
    {% if journal.googleAnalyticsId is not null %}
        <script>
            (function (i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r;
                i[r] = i[r] || function () {
                            (i[r].q = i[r].q || []).push(arguments)
                        }, i[r].l = 1 * new Date();
                a = s.createElement(o),
                        m = s.getElementsByTagName(o)[0];
                a.async = 1;
                a.src = g;
                m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', '{{ journal.googleAnalyticsId }}', 'auto');
            ga('send', 'pageview');
        </script>
    {% endif %}
{% endblock %}

{'fraction_non_alphanumeric': 0.1303604772604994, 'fraction_numerical': 0.004304206095515397, 'mean_word_length': 0.7530097087378641, 'pattern_counts': {'":': 2, '<': 431, '<?xml version=': 0, '>': 437, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 282, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6272348', 'n_tokens_mistral': 7283, 'n_tokens_neox': 6577, 'n_words': 1276}