Skip to content

Commit

Permalink
pkp/pkp-lib#1828 display keywords on the article view page
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Sep 1, 2017
1 parent d1d5cb6 commit 929049b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/themes/default/styles/objects/article_details.less
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
}
}

.item.doi {
.item.doi,
.item.keywords {
padding-top: 0;

.label {
Expand Down
16 changes: 16 additions & 0 deletions templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,22 @@
{/if}
{/foreach}

{* Keywords *}
{if !empty($keywords[$currentLocale])}
<div class="item keywords">
<span class="label">
{translate key="article.subject"}
</span>
<span class="value">
{foreach from=$keywords item=keyword}
{foreach name=keywords from=$keyword item=keywordItem}
{$keywordItem|escape}{if !$smarty.foreach.keywords.last}, {/if}
{/foreach}
{/foreach}
</span>
</div>
{/if}

{* Abstract *}
{if $article->getLocalizedAbstract()}
<div class="item abstract">
Expand Down

0 comments on commit 929049b

Please sign in to comment.