diff --git a/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.inc.php b/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.inc.php
index dd8b9f28088..38a3db58cb5 100644
--- a/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.inc.php
+++ b/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.inc.php
@@ -67,7 +67,7 @@ function articleView($hookName, $args) {
}
$i=0;
- foreach (explode($article->getAuthorString(), ', ') as $author) {
+ foreach (explode(', ', $article->getAuthorString()) as $author) {
$templateMgr->addHeader('dublinCoreAuthor' . $i++, '');
}
@@ -119,9 +119,11 @@ function articleView($hookName, $args) {
$templateMgr->addHeader('dublinCoreSourceUri', '');
$i=0;
- if ($subjects = $article->getSubject(null)) foreach ($subjects as $locale => $localeSubject) {
- foreach (explode($localeSubject, '; ') as $subject) if ($subject) {
- $templateMgr->addHeader('dublinCoreSubject' . $i++, '');
+ $dao = DAORegistry::getDAO('SubmissionKeywordDAO');
+ $keywords = $dao->getKeywords($article->getId(), array(AppLocale::getLocale()));
+ foreach ($keywords as $locale => $localeKeywords) {
+ foreach ($localeKeywords as $keyword) {
+ $templateMgr->addHeader('dublinCoreSubject' . $i++, '');
}
}