Can you tell me how I can change this in the existing IssueArchive code?
{**
* templates/frontend/pages/issueArchive.tpl
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @brief Display a list of recent issues.
*
* @uses $issues Array Collection of issues to display
* @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 monographs
*}
{capture assign="pageTitle"}
{if $prevPage}
{translate key="archive.archivesPageNumber" pageNumber=$prevPage+1}
{else}
{translate key="archive.archives"}
{/if}
{/capture}
{include file="frontend/components/header.tpl" pageTitleTranslated=$pageTitle}
<main class="page page_issue_archive">
<div class="container-fluid container-page">
{include file="frontend/components/headings.tpl" currentTitle=$pageTitle}
{* No issues have been published *}
{if empty($issues)}
<div class="no_issues">
<p>{translate key="current.noCurrentIssueDesc"}</p>
</div>
{* List issues *}
{else}
<div class="flex_container issues_list">
{foreach from=$issues item=issue}
<div class="issue_item">
{include file="frontend/objects/issue_summary.tpl"}
</div>
{/foreach}
</div>
{* Pagination *}
{capture assign="prevUrl"}
{if $prevPage > 1}
{url router=$smarty.const.ROUTE_PAGE page="issue" op="archive" path=$prevPage}
{elseif $prevPage === 1}
{url router=$smarty.const.ROUTE_PAGE page="issue" op="archive"}
{/if}
{/capture}
{capture assign="nextUrl"}
{if $nextPage}
{url router=$smarty.const.ROUTE_PAGE page="issue" op="archive" path=$nextPage}
{/if}
{/capture}
{include
file="frontend/components/pagination.tpl"
prevUrl=$prevUrl|trim
nextUrl=$nextUrl|trim
showingStart=$showingStart
showingEnd=$showingEnd
total=$total
}
{/if}
</div> <!-- end of a container -->
</main>
{include file="frontend/components/footer.tpl"}
Hi, @mpbraendle . I also used your code for displaying the archive by year. Everything is great, but the only issue is that the toggle button doesnât work. What do you think could be the problem?
In the JavaScript console log, you see an error that â$ is not definedâ. This is a short name for JQuery.
If you compare the page source code of your archive page and the archive page given in the URL above, youâll see that a few scripts (especially the JQuery library) are missing.
@mpbraendle Hi, thank you for your reply. Iâve discovered another problem. In the âBack Issuesâ section, I have many journal issues up until 2013, but no more than 25 items are displayed on the archive page. I canât figure out what this is related to. Can you help me? https://journal.orleu-edu.kz/index.php/vesti-no/issue/archive
the items_per_page setting in your config.inc.php (also increases the number of submissions displayed in the Archive tab in the backend, may slow down the backend considerably)
change the number of items per page in Website Settings > Tab Setup > Lists (has the same effect as 1, on a per journal basis)
or modify the $count variable in function archive in pages/issue/IssueHandler.php . This only affects the archive page in the frontend