Hello! For archived articles, I have code that displays the DOI in a list of all articles in the published issue. This code was taken from the forum and slightly modified. It is located in /pages/issue/IssueHandler.inc.pkp
$pubIdPlugins = PluginRegistry::loadCategory('pubIds', true);
$templateMgr->assign('pubIdPlugins', $pubIdPlugins);
$templateMgr->display('frontend/pages/issue.tpl');
and /templates/frontend/objects/article_summary.tpl
{foreach from=$pubIdPlugins item=pubIdPlugin}
{if $issue->getPublished()}
{assign var=pubId value=$article->getStoredPubId($pubIdPlugin->getPubIdType())}
{/if}
{if $pubId}
{assign var="doiUrl" value=$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}
<img src="/files/img/DOI_logo.png">{translate key="plugins.pubIds.doi.readerDisplayName"} :
<a href="{$doiUrl}">{$doiUrl}</a>
{/if}
{/foreach}
I would like the DOI to also show up in the Forthcoming plugin article list, but the same method doesn’t work there. What can I do? There’s probably a method the plugin can’t call, but I’ve tried many options that unfortunately didn’t help.