Open the file IssueHandler.inc.php at pages/issue/IssueHandler.inc.php and under the function “$showToc” (search and find) add the following code.
$pubIdPlugins = PluginRegistry::loadCategory('pubIds', true); $templateMgr->assign('pubIdPlugins', $pubIdPlugins);
Now add DOI code to the article_summary.tpl
{* DOI (requires plugin) *} {* CCDN *} {foreach from=$pubIdPlugins item=pubIdPlugin} {if $pubIdPlugin->getPubIdType() != 'doi'} {continue} {/if} {assign var=pubId value=$article->getStoredPubId($pubIdPlugin->getPubIdType())} {if $pubId} {assign var="doiUrl" value=$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape} <div class="itemdoi"> <span class="doilabel"> <img src="https://demo.codexcafe.net/ojs3/plugins/themes/ajsrp/img/doi_logo.jpg" width="20"> {capture assign=translatedDOI}{translate key="plugins.pubIds.doi.readerDisplayName"}{/capture} {translate key="semicolon" label=$translatedDOI} </span> <span class="doivalue"> <a {if $journal}href="{url journal=$journal->getPath() page="article" op="view" path=$articlePath}"{else}href="{url page="article" op="view" path=$articlePath}"{/if}> {$pubId} </a> </span> </div> {/if} {/foreach}
That’s all!