From 929049b1343d57cb6f1e5a036396598840a50f6d Mon Sep 17 00:00:00 2001 From: Bozana Bokan Date: Fri, 1 Sep 2017 16:05:04 +0200 Subject: [PATCH] pkp/pkp-lib#1828 display keywords on the article view page --- .../default/styles/objects/article_details.less | 3 ++- templates/frontend/objects/article_details.tpl | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/plugins/themes/default/styles/objects/article_details.less b/plugins/themes/default/styles/objects/article_details.less index 147ddfeb966..1c51c6804b6 100644 --- a/plugins/themes/default/styles/objects/article_details.less +++ b/plugins/themes/default/styles/objects/article_details.less @@ -114,7 +114,8 @@ } } - .item.doi { + .item.doi, + .item.keywords { padding-top: 0; .label { diff --git a/templates/frontend/objects/article_details.tpl b/templates/frontend/objects/article_details.tpl index c39ea2c86bc..b170cb23519 100644 --- a/templates/frontend/objects/article_details.tpl +++ b/templates/frontend/objects/article_details.tpl @@ -129,6 +129,22 @@ {/if} {/foreach} + {* Keywords *} + {if !empty($keywords[$currentLocale])} +
+ + {translate key="article.subject"} + + + {foreach from=$keywords item=keyword} + {foreach name=keywords from=$keyword item=keywordItem} + {$keywordItem|escape}{if !$smarty.foreach.keywords.last}, {/if} + {/foreach} + {/foreach} + +
+ {/if} + {* Abstract *} {if $article->getLocalizedAbstract()}