From 2d71f68ee82f46fa794ddeadcd383b52191d8269 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Tue, 9 Sep 2025 12:53:26 -0300 Subject: [PATCH] pkp/pkp-lib#11795 fix publisher metadata for omp and ops --- WebFeedGatewayPlugin.php | 5 +++++ templates/rss.tpl | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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}