diff --git a/.env b/.env index 802db8ed..18606915 100644 --- a/.env +++ b/.env @@ -43,7 +43,7 @@ USE_GIT_CLI=true # Content team doesn't want TN book intros to show in DOC. # future, if desired we could have them show by sleec -SHOW_TN_BOOK_INTRO=false +SHOW_TN_BOOK_INTRO=true # If true, then check USFM content for certain USFM structural defects # and attempt a fix so that the USFM can then be parsed. diff --git a/backend/document/domain/parsing.py b/backend/document/domain/parsing.py index b54c25c7..f4e15d48 100644 --- a/backend/document/domain/parsing.py +++ b/backend/document/domain/parsing.py @@ -779,7 +779,7 @@ def tn_book_content( resource_dir: str, resource_requests: Sequence[ResourceRequest], layout_for_print: bool, - include_tn_book_intros: bool = False, + show_tn_book_intro: bool = settings.SHOW_TN_BOOK_INTRO, ) -> TNBook: chapter_verses = tn_chapter_verses( resource_dir, @@ -788,7 +788,7 @@ def tn_book_content( resource_requests, ) book_intro = "" - if include_tn_book_intros: + if show_tn_book_intro: book_intro = book_intro_markdown(resource_dir, resource_lookup_dto.book_code) if book_intro: book_intro = markdown_transformer.remove_sections(book_intro)