From 51e570bcbccd0d906673d4f5008f5481afcb52f6 Mon Sep 17 00:00:00 2001 From: Richard Hoover <16406238+wopsononock@users.noreply.github.com> Date: Thu, 17 Sep 2026 17:07:25 -0400 Subject: [PATCH 1/4] Update author affiliation retrieval --- README.md | 4 ++-- templates/blockAuthors.tpl | 17 ++++++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fd14b0c..a6532ef 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This plugin provides inline display of article galleys for PKP Open Journal Syst ## Requirements -* OJS 3.4.x +* OJS 3.5.x * The PKP plugin htmlArticleGalley (which ships by default with OJS) * [Bootstrap3 theme](https://github.com/NateWr/bootstrap3) * The plugin will function with other themes, but the structure of the blocks conforms to bootstrap3 expectations @@ -40,6 +40,6 @@ The plugin provides article metadata as sidebar blocks, which may be enabled and ## Author / License -Written by Clinton Graham and Chrysanthemum Lovelace and Tazio Polanco for the [University of Pittsburgh](http://www.pitt.edu). Copyright (c) University of Pittsburgh. +Written by Clinton Graham, Chrysanthemum Lovelace and Tazio Polanco for the [University of Pittsburgh](http://www.pitt.edu). Copyright (c) University of Pittsburgh. Released under a license of GPL v2 or later. diff --git a/templates/blockAuthors.tpl b/templates/blockAuthors.tpl index 9207422..1b72c7b 100644 --- a/templates/blockAuthors.tpl +++ b/templates/blockAuthors.tpl @@ -18,12 +18,15 @@ {foreach from=$publication->getData('authors') item=author}
{$author->getFullName()|escape} - {if $author->getLocalizedAffiliation()} -
- {$author->getLocalizedAffiliation()|escape} -
- {/if} - {if $author->getOrcid()} + {if count($author->getAffiliations()) > 0} +
+ {foreach name="affiliations" from=$author->getAffiliations() item="affiliation"} + {$affiliation->getLocalizedName()|escape} + {if !$smarty.foreach.affiliations.last}{translate key="common.commaListSeparator"}{/if} + {/foreach} +
+ {/if} + {if $author->getOrcid()}
{$orcidIcon} @@ -35,4 +38,4 @@ {/foreach}
-{/if} \ No newline at end of file +{/if} From 88cf232f448ec5afa6ab291ac3b0468161d61d5b Mon Sep 17 00:00:00 2001 From: Richard Hoover <16406238+wopsononock@users.noreply.github.com> Date: Thu, 17 Sep 2026 17:15:15 -0400 Subject: [PATCH 2/4] Remove unused getSupportedContexts method --- InlineHtmlGalleyBlockPlugin.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/InlineHtmlGalleyBlockPlugin.php b/InlineHtmlGalleyBlockPlugin.php index d80f65d..8e4ad68 100644 --- a/InlineHtmlGalleyBlockPlugin.php +++ b/InlineHtmlGalleyBlockPlugin.php @@ -76,14 +76,6 @@ function getHideManagement() { return true; } - /** - * Get the supported contexts (e.g. BLOCK_CONTEXT_...) for this block. - * @return array - */ - function getSupportedContexts() { - return array(BLOCK_CONTEXT_SIDEBAR); - } - /** * Get the parent plugin * @return object From 7337d33ca65e7c46941c670ff40364a0a3889cc0 Mon Sep 17 00:00:00 2001 From: Richard Hoover <16406238+wopsononock@users.noreply.github.com> Date: Thu, 17 Sep 2026 17:18:47 -0400 Subject: [PATCH 3/4] version bump --- version.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.xml b/version.xml index ce59f89..173fcd0 100644 --- a/version.xml +++ b/version.xml @@ -14,8 +14,8 @@ inlineHtmlGalley plugins.generic - 1.4.0.1 - 2026-09-04 + 1.4.0.2 + 2026-09-16 1 InlineHtmlGalleyPlugin From df7160a45ad2145592c73ee24a32e544daab5fde Mon Sep 17 00:00:00 2001 From: Richard Hoover <16406238+wopsononock@users.noreply.github.com> Date: Fri, 18 Sep 2026 11:09:04 -0400 Subject: [PATCH 4/4] Update hook sequence syntax --- InlineHtmlGalleyPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InlineHtmlGalleyPlugin.php b/InlineHtmlGalleyPlugin.php index d848246..19842c4 100644 --- a/InlineHtmlGalleyPlugin.php +++ b/InlineHtmlGalleyPlugin.php @@ -96,8 +96,8 @@ function register($category, $path, $mainContextId = null) { new InlineHtmlGalleyGalleysSidebarBlockPlugin($this->getName(), $this->getPluginPath()), $this->getPluginPath() ); - Hook::add('ArticleHandler::view', array($this, 'articleViewCallback'), HOOK_SEQUENCE_LATE); - Hook::add('TemplateResource::getFilename', array($this, '_overridePluginTemplates'), HOOK_SEQUENCE_CORE); + Hook::add('ArticleHandler::view', array($this, 'articleViewCallback'), Hook::SEQUENCE_LATE); + Hook::add('TemplateResource::getFilename', array($this, '_overridePluginTemplates'), Hook::SEQUENCE_CORE); } return true;