{% if division is not defined %} {% set division=null %}{% endif %}{% if division is null and passage is defined and passage is not empty %} {% set division=passage.division %}{% endif %}{% if translation is not defined %} {% set translation=null %}{% endif %}{% if translation is null and excerpt is defined and excerpt is not null %} {% set translation=excerpt.startArea.translation %}{% endif %}{% if work is not defined %} {% set work=null %}{% endif %}{% if work is null %} {% if translation is not null %} {% set work=translation.work %} {% elseif division is not null %} {% set work=division.work %} {% endif %}{% endif %}{% set sCategoryIndex = '' %}{% set nCategoryID = '' %}{% if category is not defined or category is null %} {% if work is not null and work.swedenborgType is not null %} {% set category='swedenborg' %} {% elseif all_stories is defined %} {% set category='story' %} {% else %} {% set category=null %} {% endif %}{% endif %}{% if category is null and collection is defined and collection is not null %} {% for coll_category in collection.categories if coll_category.indexPage is not null %} {% set category=coll_category %} {% endfor %}{% endif %}{% if category is null and translation is not null %} {% for tr_category in translation.categories if tr_category.indexPage is not null %} {% set category=tr_category %} {% set sCategoryIndex = category.indexPage %} {% endfor %}{% endif %}{% if category is null and work is not null %} {% for work_category in work.categories if work_category.indexPage is not null %} {% set category=work_category %} {% set sCategoryIndex = work_category.indexPage %} {% endfor %}{% endif %}{% set nColNum = 0 %}{% if column_num is defined %} {% set nColNum = column_num %}{% endif %}{% if category is not null and category != 'swedenborg' and category != 'story' %} {% set nCategoryID = category.id %}{% endif %}{% set bConcept = (nCategoryID == 12) %}{% set bBookSummary = false %}{% if is_book_summary is defined %} {% set bBookSummary = true %}{% endif %}{% set bChapterExplanation = false %}{% if is_chapter_explanation is defined %} {% set bChapterExplanation = true %}{% endif %}{% set bVerseExplanation = false %}{% if is_verse_explanation is defined %} {% set bVerseExplanation = true %}{% endif %}{% set sLink = '' %}{% set first_crumb = true %}<ol class="breadcrumb" id="breadcrumb{{ nColNum }}"> {% if type_id is defined and type_id != 1 %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} {% if type_id == 2 %} {% set sLink = asset('/bundles/ncbsw/translation/' ~ file) %} {% elseif type_id == 3 %} {% set sLink = doc_link %} {% endif %} <a href="{{ sLink }}">{% if translation is not null and translation.translatedTitle is not empty %}{{ translation.translatedTitle }}{% else %}{{ work.title }}{% endif %}</a> </li> {% elseif category == 'swedenborg' %} {% if not bInFrame %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} <a href="{{ path('swedenborg') }}" title="{{ app.session.get('ui_str')["linktitle.short.swedenborg.main"] }}"><i class="fad fa-feather-pointed"></i></a> </li> {% endif %} {% elseif category == 'story' and all_stories is defined %} {% if all_stories is defined %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} <a href="{{ path('bible_stories') }}" title="{{ app.session.get('ui_str')["linktitle.short.bible.storyexplanations"] }}"><i class="fad fa-book-open-reader"></i></a> </li> {% endif %} {% elseif category is not null and category != 'story' and category != 'swedenborg' %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} {% if category.indexPage is not null and (index_path is not defined or index_path is null) %} <a href="{{ path(category.indexPage) }}">{% if category.indexPage == 'consider' %}<i class='fad fa-sun'></i> {% elseif category.indexPage == 'concepts' or category.indexPage == 'concordance' %}<i class='fas fa-key'></i> {% elseif category.indexPage == 'q_and_a' %}<i class='fad fa-comments'></i> {% endif %}{{ app.session.get('ui_str')["linktitle.short."~index_page_title_paths[category.indexPage]] }} {% if concordance_has_searched_list is defined %} <i class="fa-kit fa-solid-filter-magnifying-glass"></i> {% endif %} </a> {% else %} <a href="{{ uri(category) }}">{{ category.name }}</a> {% endif %} </li> {% elseif bBookSummary %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} <button type="button" class="btn btn-text" >{{ app.session.get('ui_str')["linktitle.short.bible.booksummaries"] }}</button> </li> {% elseif bChapterExplanation %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} {% include 'NCBSWBundle:Exposition:interface/popup/chapter_summary_popup.html.twig' %} </li> {% elseif bVerseExplanation %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} <button type="button" class="btn btn-text" >{{ app.session.get('ui_str')["linktitle.short.bible.verseexplanations"] }}</button> </li> {% elseif index_path is defined %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} <a href="{{ path(index_path) }}">{{ app.session.get('ui_str')["linktitle.short."~index_page_title_paths[index_path]] }}</a> </li> {% endif %} {% if chapter_explanations_for_combo is defined and chapter_explanations_for_combo is not empty %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} {% include 'NCBSWBundle:Exposition:interface/popup/chapter_summary_work_popup.html.twig' %} </li> {% endif %} {% if sLink == '' %} {% if collection is defined and collection is not null %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} <a href="{{ uri(collection) }}">{{ collection.name }}</a> </li> {% endif %} {% if work is not null and not bConcept and not bVerseExplanation and not bChapterExplanation and not bBookSummary and category != 'story' and nCategoryID != 47 and nCategoryID != 52 %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} {% if category == 'swedenborg' %} {% include 'NCBSWBundle:Exposition:interface/popup/work_popup.html.twig' %} {% elseif category == 'story' and all_stories is defined %} {% if all_stories is defined %} {% include 'NCBSWBundle:Exposition:interface/popup/story_popup.html.twig' %} {% elseif story is defined %} <a href="{{ uri(story) }}">{% if story.name is not empty %}{{ story.name }}{% else %}{{ work.title }}{% endif %}</a> {% else %} <a href="{{ uri(work) }}">{% if translation is not null and translation.translatedTitle is not empty %}{{ translation.translatedTitle }}{% else %}{{ work.title }}{% endif %}</a> {% endif %} {% elseif category is not null and category != 'story' %} {% if nCategoryID == 13 %} {% include 'NCBSWBundle:Exposition:interface/popup/topic_popup.html.twig' %} {% elseif nCategoryID == 14 %} {% include 'NCBSWBundle:Exposition:interface/popup/biblestudy_popup.html.twig' %} {% else %} <button type="button" class="btn btn-text" style="font-weight:400;">{{ translation.translatedtitle }}</button> {% endif %} {% else %} <a href="{{ uri(work) }}">{% if translation is not null and translation.translatedTitle is not empty %}{{ translation.translatedTitle }}{% else %}{{ work.title }}{% endif %}</a> {% endif %} </li> {% endif %} {% if translation is not null and compare_to is defined and compare_to is not null %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} <button type="button" class="btn btn-text" >{{ app.session.get('ui_str')["exposition.breadcrumbs.translationslabel"] }}</button> {% include 'NCBSWBundle:Exposition:interface/popup/work_translation_popup.html.twig' with {'dropdown_target': 'left'} %} ~ {% include 'NCBSWBundle:Exposition:interface/popup/work_translation_popup.html.twig' with {'dropdown_target': 'right'} %} {% if compare_to2 is defined and compare_to2 is not null %} ~ {% include 'NCBSWBundle:Exposition:interface/popup/work_translation_popup.html.twig' with {'dropdown_target': '3col'} %} {% endif %} </li> {% elseif translation is not null and (work.translations|length > 1 or not translation.isOriginal) %} {% set force_translation = translation %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} {% if sCategoryIndex != 'consider' and category != 'story' and not bChapterExplanation %} <button type="button" class="btn btn-text" >{{ app.session.get('ui_str')["exposition.breadcrumbs.translationlabel"] }}</button> {% endif %} {% include 'NCBSWBundle:Exposition:interface/popup/work_translation_popup.html.twig' with {'dropdown_target': (passage is defined) ? null : 'index', 'is_concept': bConcept } %} </li> {% endif %} {% if division is not null and division.name is not null and ((division.work is not null and division.work.divisions|length > 1) or (division.superdivision is not null and division.superdivision.subdivisions|length > 1)) %} <li class="breadcrumb-item"> {% if first_crumb %} {% set first_crumb = false %} {% endif %} <a href="{{ uri(division) }}{% if compare_to is defined and compare_to is not null %}?compareTo={{ compare_to.url }}{% endif %}">{{ division.name }}</a> </li> {% endif %} {% endif %} </ol>