{** * templates/frontend/pages/catalogCategory.tpl * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @brief Display the page to view a category of the catalog. * * @uses $category Category Current category being viewed * @uses $publishedSubmissions array List of published submissions in this category * @uses $parentCategory Category Parent category if one exists * @uses $subcategories array List of subcategories if they exist * @uses $prevPage int The previous page number * @uses $nextPage int The next page number * @uses $showingStart int The number of the first item on this page * @uses $showingEnd int The number of the last item on this page * @uses $total int Count of all published submissions in this category *} {include file="frontend/components/header.tpl" pageTitleTranslated=$category->getLocalizedTitle()|escape}
{* Breadcrumb *} {include file="frontend/components/breadcrumbs_catalog.tpl" type="category" parent=$parentCategory currentTitle=$category->getLocalizedTitle()|escape}

{$category->getLocalizedTitle()|escape}

{* Count of articles in this category *}
{translate key="catalog.browseTitles" numTitles=$total}
{* Image and description *} {assign var="image" value=$category->getImage()} {assign var="description" value=$category->getLocalizedDescription()|strip_unsafe_html}
{if $image}
getId()}"> getId()}" alt="null" />
{/if}
{$description|strip_unsafe_html}
{if $subcategories|@count} {/if}

{translate key="catalog.category.heading"}

{* No published titles in this category *} {if empty($publishedSubmissions)}

{translate key="catalog.category.noItems"}

{else} {* Pagination *} {if $prevPage > 1} {capture assign=prevUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="category" path=$category->getPath()|to_array:$prevPage}{/capture} {elseif $prevPage === 1} {capture assign=prevUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="category" path=$category->getPath()}{/capture} {/if} {if $nextPage} {capture assign=nextUrl}{url router=\PKP\core\PKPApplication::ROUTE_PAGE page="catalog" op="category" path=$category->getPath()|to_array:$nextPage}{/capture} {/if} {include file="frontend/components/pagination.tpl" prevUrl=$prevUrl nextUrl=$nextUrl showingStart=$showingStart showingEnd=$showingEnd total=$total } {/if}
{include file="frontend/components/footer.tpl"}