I'm hoping to be able to display a modified ToC of the current issue on the sidebar for every page in the journal site.
http://dev.mediaculture.ci.qut.edu.au/ojs/index.php/mcjournal/issue/current/showToc
This will work fine until I browse to a different page within the site. Is there a variable I need to extract/pass to my customized issue.tpl file (called issue-side.tpl) to ensure that ALL pages display the ToC?
On a similar, but related issue, I'd like the title page of an issue to be displayed at the same time as the ToC:
http://journal.media-culture.org.au/
But by using OJS
issue-side.tpl:
- Code: Select all
<ul>
{if $publishedArticles}
{foreach name=sections from=$publishedArticles item=section }
{foreach from=$section.articles item=article}
<li>
<span class="articleTitle"><a href="{url page="article" op="view" path=$article->getBestArticleId($currentJournal)}" class="file">
{$article->getArticleTitle()|strip_unsafe_html}
</a></span>
{if (!$subscriptionRequired || $article->getAccessStatus() || $subscribedUser || $subscribedDomain)}
{foreach from=$article->getGalleys() item=galley name=galleyList}
<a href="{url page="article" op="view" path=$article->getBestArticleId($currentJournal)|to_array:$galley->getGalleyId()}" class="file">{$galley->getLabel()|escape}</a>
{/foreach}
{/if}
-
{foreach from=$article->getAuthors() item=author name=authorList}
<span class="articleAuthor"><a href="{url op="authors" path="view" firstname=$author->getFirstName() middleName=$author->getMiddleName() lastName=$author->getLastName() affiliation=$author->getAffiliation()}">{$author->getFullName()|escape}{if !$smarty.foreach.authorList.last},{/if}</a></span>
{/foreach}
</li>
{/foreach}
{/foreach}
{/if}</ul>
