- {** allow pages to provide their own titles **} - {if !$suppressPageTitle} -
-

{$pageTitleTranslated}

-
- {/if} diff --git a/templates/frontend/components/archiveHeader.tpl b/templates/frontend/components/archiveHeader.tpl index 7c45048..db6f55d 100644 --- a/templates/frontend/components/archiveHeader.tpl +++ b/templates/frontend/components/archiveHeader.tpl @@ -8,10 +8,9 @@ * Archive header containing a search form and a category listing *} -
+
{* Search *} -
\ No newline at end of file diff --git a/templates/frontend/pages/archive.tpl b/templates/frontend/pages/preprints.tpl similarity index 87% rename from templates/frontend/pages/archive.tpl rename to templates/frontend/pages/preprints.tpl index 4f3547a..e955385 100644 --- a/templates/frontend/pages/archive.tpl +++ b/templates/frontend/pages/preprints.tpl @@ -1,8 +1,8 @@ {** - * templates/frontend/pages/archive.tpl + * templates/frontend/pages/preprints.tpl * - * Copyright (c) 2014-2020 Simon Fraser University - * Copyright (c) 2003-2020 John Willinsky + * 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 a list of preprints. @@ -12,7 +12,7 @@ * @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 monographs + * @uses $total int Count of all published preprints *} {capture assign="pageTitle"} {if $prevPage} @@ -24,13 +24,14 @@ {include file="frontend/components/header.tpl" pageTitleTranslated=$pageTitle}
- - {* Search and category listing *} - {include file="frontend/components/archiveHeader.tpl"} + {include file="frontend/components/breadcrumbs.tpl" currentTitle=$pageTitle}

{$pageTitle|escape}

+ + {* Search and category listing *} + {include file="frontend/components/archiveHeader.tpl"} {* No preprints have been published *} {if empty($publishedSubmissions)} diff --git a/templates/frontend/pages/sections.tpl b/templates/frontend/pages/sections.tpl index abe9f3e..2f0982d 100644 --- a/templates/frontend/pages/sections.tpl +++ b/templates/frontend/pages/sections.tpl @@ -46,12 +46,12 @@ {* Pagination *} {if $prevPage > 1} - {capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="preprints" op="section" path=$sectionPath|to_array:$prevPage}{/capture} + {capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath|to_array:$prevPage}{/capture} {elseif $prevPage === 1} - {capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="preprints" op="section" path=$sectionPath}{/capture} + {capture assign="prevUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath}{/capture} {/if} {if $nextPage} - {capture assign="nextUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="preprints" op="section" path=$sectionPath|to_array:$nextPage}{/capture} + {capture assign="nextUrl"}{url|escape router=$smarty.const.ROUTE_PAGE page="section" op="view" path=$sectionPath|to_array:$nextPage}{/capture} {/if} {include file="frontend/components/pagination.tpl"