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
Try the following steps:
- 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}
- 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