diff --git a/WebFeedGatewayPlugin.php b/WebFeedGatewayPlugin.php index 10f3926..c3ddacf 100644 --- a/WebFeedGatewayPlugin.php +++ b/WebFeedGatewayPlugin.php @@ -116,6 +116,11 @@ public function fetch($args, $request): bool 'omp' => 'book', 'ops' => 'view' }, + 'publisher' => match ($applicationIdentifier) { + 'ojs' => $context->getData('publisherInstitution'), + 'omp' => $context->getData('publisher'), + 'ops' => $context->getData('name'), + }, 'openAccess' => match ($applicationIdentifier) { 'ojs' => Submission::ARTICLE_ACCESS_OPEN, 'omp' => null, diff --git a/templates/rss.tpl b/templates/rss.tpl index ca588d0..0050c0f 100644 --- a/templates/rss.tpl +++ b/templates/rss.tpl @@ -31,9 +31,8 @@ {$description|strip|escape:"html"} {* optional elements *} - {assign var="publisherInstitution" value=$context->getData('publisherInstitution')} - {if $publisherInstitution} - {$publisherInstitution|strip|escape:"html"} + {if $publisher} + {$publisher|strip|escape:"html"} {/if} {if $context->getPrimaryLocale()}