OJS 3.3.0-15. Forthcoming plugin. Display DOI in the list of articles in an issue. Forthcoming plugin

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);

and /templates/frontend/objects/article_summary.tpl

{foreach from=$pubIdPlugins item=pubIdPlugin}
	{if $issue->getPublished()}
		{assign var=pubId value=$article->getStoredPubId($pubIdPlugin->getPubIdType())}
	{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>

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.

I solved my problem. A little different, but still. Firstly, /templates/frontend/objects/article_summary.tpl I removed the code:

{foreach from=$pubIdPlugins item=pubIdPlugin}

Instead, I installed the DOI in summary plugin, which is available in the administration panel. DOIs are now displayed in the Forthcoming plugin

This topic was automatically closed after 13 days. New replies are no longer allowed.