diff --git a/WebFeedGatewayPlugin.php b/WebFeedGatewayPlugin.php index 2fb357c..5dafe92 100644 --- a/WebFeedGatewayPlugin.php +++ b/WebFeedGatewayPlugin.php @@ -119,6 +119,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 d228053..c4136f7 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} {$language|escape}