{% extends 'NCBSWBundle:Exposition:layout.html.twig' %}
{% block title %}
{% if not bInFrame %}
{% if translation is null or passage is null %}
{{ app.session.get('ui_str')["meta.exposition.passage.notfound.subtitle"] }}
{% elseif commentary_type is defined %}
{{ (app.session.get('ui_str')["meta.exposition.commentarytypes."~commentary_type~".subtitle"])|replace({'_1000_': translation.name})|replace({'"': "'"})|raw }}
{% elseif passage.swedenborgSection is not null %}
{% set sAuthorStr = app.session.get('ui_str')["explanatoryworkspage.tablecolumns.author.header"]|raw %}
{% set sSW = app.session.get('ui_str')["author.fullname.swedenborg"]|raw %}
{% set sDescEnd = " - " ~ sAuthorStr ~ ": " ~ sSW ~ " " ~ app.session.get('ui_str')["meta.userinterface"]|raw %}
{% if compare_to2 is defined and compare_to2 is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.numbered.subtitle.comparison3col"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_2110_': translation.briefIdentifier({'no_original': true, 'no_date':true}), '_2120_': compare_to.briefIdentifier({'no_original': true, 'no_date':true}), '_2130_': compare_to2.briefIdentifier({'no_original': true, 'no_date':true})})|replace({'"': "'"})|raw }}{{ sDescEnd }}
{% elseif compare_to is defined and compare_to is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.numbered.subtitle.comparison"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_2110_': translation.briefIdentifier({'no_original': true, 'no_date':true}), '_2120_': compare_to.briefIdentifier({'no_original': true, 'no_date':true})})|replace({'"': "'"})|raw }}{{ sDescEnd }}
{% elseif translation.isOriginal %}
{{ app.session.get('ui_str')["meta.exposition.passage.numbered.subtitle.original"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_3000_': translation.language.name})|replace({'"': "'"})|raw }}{{ sDescEnd }}
{% else %}
{{ app.session.get('ui_str')["meta.exposition.passage.numbered.subtitle.translated"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection})|replace({'"': "'"})|raw }}{{ sDescEnd }}
{% endif %}
{% else %}
{% if translation.work.translations|length == 1 %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.generic"]|replace({'_1000_': translation.name})|replace({'"': "'"})|raw }}
{% elseif compare_to2 is defined and compare_to2 is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.comparison3col"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier({'no_original': true, 'no_date':true}), '_2120_': compare_to.briefIdentifier({'no_original': true, 'no_date':true}), '_2130_': compare_to2.briefIdentifier({'no_original': true, 'no_date':true})})|replace({'"': "'"})|raw }}
{% elseif compare_to is defined and compare_to is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.comparison"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier({'no_original': true, 'no_date':true}), '_2120_': compare_to.briefIdentifier({'no_original': true, 'no_date':true})})|replace({'"': "'"})|raw }}
{% elseif translation.isOriginal %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.original"]|replace({'_1000_': translation.name, '_3000_': translation.language.name})|replace({'"': "'"})|raw }}
{% else %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.translated"]|replace({'_1000_': translation.name})|replace({'"': "'"})|raw }}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
{% block description %}
{% if not bInFrame %}
{% if translation is null or passage is null %}
{{ app.session.get('ui_str')["meta.exposition.passage.notfound.desc"] }}
{% elseif commentary_type is defined %}
{{ work_meta_desc|raw }}
{% elseif passage.swedenborgSection is not null %}
{% if compare_to2 is defined and compare_to2 is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.numbered.desc.swedenborgcomparison3col"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier(), '_2130_': compare_to2.briefIdentifier()})|raw }}
{% elseif compare_to is defined and compare_to is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.numbered.desc.swedenborgcomparison"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier()})|raw }}
{% else %}
{{ work_meta_desc|raw }}
{% endif %}
{% elseif translation.work.swedenborgType is not null %}
{% if compare_to2 is defined and compare_to2 is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.desc.swedenborgcomparison3col"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier(), '_2130_': compare_to2.briefIdentifier()})|raw }}
{% elseif compare_to is defined and compare_to is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.desc.swedenborgcomparison"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier()})|raw }}
{% else %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.desc.swedenborg"]|replace({'_1000_': translation.name})|raw }}
{% endif %}
{% else %}
{% if compare_to is defined and compare_to is not null %}
{{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.desc.genericcomparison"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier()})|raw }}
{% else %}
{{ work_meta_desc|raw }}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
{% block content %}
{% if translation is not null %}
{% set force_translation = translation %}
{% set work = translation.work %}
{% set show_compare_box = work.translations|length > 1 and (compare_to2 is not defined or compare_to2 is null) and passage is not null and passage.swedenborgSection is not null %}
{% if (compare_to is not defined or compare_to is null) %}
{% include 'NCBSWBundle:Exposition:search/search_in_work.html.twig' %}
{% endif %}
{% if show_compare_box %}
<span class="mobile-hide" style="float:right;">
{% include 'NCBSWBundle:Exposition:interface/popup/work_compare_popup.html.twig' %}
{#% include 'NCBSWBundle:Exposition:interface/translation_dropdown/dropdown.html.twig' with {'dropdown_target': 'add'} %#}
</span>
{% endif %}
<div style="clear:both"></div>
<span>
<h1>
{% set passage_title = '' %}
{% if passage is not null and passage.swedenborgSection is not null %}
{% set passage_title = app.session.get('ui_str')["exposition.passage.sectiontitle"]|replace({'_8100_': translation.translatedTitle, '_2000_': passage.swedenborgSection})|raw %}
{{ passage_title }}
{% else %}
{{ translation.translatedTitle }}
{% endif %}
</h1>
{% if passage is not null and passage.swedenborgSection is not null %}
<small>{{ app.session.get('ui_str')["generic.writtenby"] }} {{ app.session.get('ui_str')["author.fullname.swedenborg"] }}</small>
{% endif %}
</span>
{% include 'NCBSWBundle:Exposition:sidrbuttonw.html.twig' %}
<div style="clear:both"></div>
{% if compare_to is not defined or compare_to is null %}
{% if IsSwedenborgWork is not defined or IsSwedenborgWork != 1 %}
{% if authors is defined and authors != '' and concept_prev_next is not defined %}
<small>{{ app.session.get('ui_str')["generic.writtenby"] }} {{ authors }}</small>
<div style="clear:both;"></div>
{% else %}
<div style="clear:both;"></div>
{% endif %}
<span class="iconmenuspan">
{% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}{% include 'NCBSWBundle:Exposition:toc_link.html.twig' %}
<li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': translation.getUrl()}) }}" title="{{ app.session.get('ui_str')["generic.bibliographyicon"] }}" class="nav-link"><i class="fas fa-info-circle"></i><span class="mobile-only"> {{ app.session.get('ui_str')["generic.bibliographyicon"] }}</span></a></li>
{% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}
{% include 'NCBSWBundle:General:text_to_speech.html.twig' %}
{% include 'NCBSWBundle:Exposition:related_bible_ref.html.twig' %}
{% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %} {% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}
{% include 'NCBSWBundle:Exposition:edit_translation.html.twig' %}
{% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
</span>
{% else %}
<span class="iconmenuspan">
{% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}{% include 'NCBSWBundle:Exposition:toc_link.html.twig' %}{% include 'NCBSWBundle:Exposition:interface/popup/work_add_popup.html.twig' %}
<li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': translation.getUrl()}) }}" title="{{ app.session.get('ui_str')["generic.bibliographyicon"] }}" class="nav-link"><i class="fas fa-info-circle"></i><span class="mobile-only"> {{ app.session.get('ui_str')["generic.bibliographyicon"] }}</span></a></li>
{% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}
{% include 'NCBSWBundle:General:text_to_speech.html.twig' %}
{% include 'NCBSWBundle:Exposition:related_bible_ref.html.twig' %}
{% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
{% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}
{% include 'NCBSWBundle:Exposition:edit_translation.html.twig' %}
{% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
</span>
{% endif %}
{% endif %}
<span id='prev_next_category'></span>
{% endif %}
{% include 'NCBSWBundle:Exposition:concept_prev_next.html.twig' %}
{% include 'NCBSWBundle:Exposition:passage_view.html.twig' %}
{% if translation is not null %}
<span id='prev_next_category2'></span>
<script>
if(sPrevNextCategory != '')
{
$("#prev_next_category").html(sPrevNextCategory);
$("#prev_next_category2").html(sPrevNextCategory);
}
</script>
{% endif %}
{% endblock %}