Add Glyphicons in abstract view and PDF OJS 3.0.2

How i can add icon like Glyphicons in abstract view and PDF or DOI number like this photo. I am using OJS 3.0.2

32%20AM

Try the following steps:

  1. Place the codes below in /templates/frontend/objects/article_summary.tpl (In mine, started in line 80-100)

{translate key=“article.abstract”} {$article->getViews()} | {if is_a($article, ‘PublishedArticle’)}{assign var=galleys value=$article->getGalleys()}{/if}
{if $galleys}
{foreach from=$galleys item=galley name=galleyList}
{$galley->getGalleyLabel()} {$galley->getViews()} |
{/foreach}
{/if}

{* DOI (requires plugin) *}
{foreach from=$pubIdPlugins item=pubIdPlugin}
        {if $issue->getPublished()}
                {assign var=pubId value=$article->getStoredPubId($pubIdPlugin->getPubIdType())}
            {else}
                {assign var=pubId value=$pubIdPlugin->getPubId($article)}{* Preview pubId *}
        {/if}
        {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}">
                    {$doiUrl}
                </a>
        {/if}
{/foreach}
  1. Place the codes below to /pages/issue/IssueHandler.inc.php#L267 (This is to display the DOI)

$pubIdPlugins = PluginRegistry::loadCategory(‘pubIds’, true);

$templateMgr->assign(‘pubIdPlugins’, $pubIdPlugins);

1 Like