Add DOI in the Article Summary

I get some trouble in order to add the DOI in the article summary. I have added the following code to the public_html/plugins/themes/bootstrap3/templates/frontend/objects/article_summary.tpl

However, the DOI is only appeared on the current issue page or in the Archives page (
32 AM

Unfortunately, it was not appeared on the home page (


{* DOI (requires plugin) *}
            {foreach from=$pubIdPlugins item=pubIdPlugin}
                {if $issue->getPublished()}
                    {assign var=pubId value=$article->getStoredPubId($pubIdPlugin->getPubIdType())}
                    {assign var=pubId value=$pubIdPlugin->getPubId($article)}{* Preview pubId *}
            {if $pubId}
                {assign var="doiUrl" value=$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}
                    <i class="glyphicon glyphicon-link"></i>{translate key="plugins.pubIds.doi.readerDisplayName"}
                    <a href="{$doiUrl}">

Is there some thing wrong with the code that I used?

1 Like

Hi @Tarmizi

In home page, looking into Github, I think you should edit:
bootstrap3/templates/frontend/objects/issue_toc.tpl , or add to your child theme and edit it.

Because this is the file called in bootstrap3/templates/frontend/pages/indexJournal.tpl.

I hope it helps you.

Israel Cefrin
Public Knowledge Project Team

Hi @Tarmizi

See also: DOI on summary / Table of Content for OJS 3 - #15 by eddhie

Does this help?


Dear @bozana,
I really appreciated your reply. I have edited the code based on your suggestion. And finally, the DOI code appeared on our homepage.
Thanks a lot for your help.

Dear All

I have enabled doi plug-in and add DOI Suffix in metadata tab for an article. In the article detail page the DOI url is not shown.

Should I do anything more?

by the way I use OJS

Thanks a lot