Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions InlineHtmlGalleyBlockPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions InlineHtmlGalleyPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
17 changes: 10 additions & 7 deletions templates/blockAuthors.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
{foreach from=$publication->getData('authors') item=author}
<div class="author">
<strong>{$author->getFullName()|escape}</strong>
{if $author->getLocalizedAffiliation()}
<div class="article-author-affilitation">
{$author->getLocalizedAffiliation()|escape}
</div>
{/if}
{if $author->getOrcid()}
{if count($author->getAffiliations()) > 0}
<div class="article-author-affilitation">
{foreach name="affiliations" from=$author->getAffiliations() item="affiliation"}
<span>{$affiliation->getLocalizedName()|escape}</span>
{if !$smarty.foreach.affiliations.last}{translate key="common.commaListSeparator"}{/if}
{/foreach}
</div>
{/if}
{if $author->getOrcid()}
<div class="orcid">
{$orcidIcon}
<a href="{$author->getOrcid()|escape}" target="_blank">
Expand All @@ -35,4 +38,4 @@
{/foreach}
</div>
</div>
{/if}
{/if}
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<version>
<application>inlineHtmlGalley</application>
<type>plugins.generic</type>
<release>1.4.0.1</release>
<date>2026-09-04</date>
<release>1.4.0.2</release>
<date>2026-09-16</date>
<lazy-load>1</lazy-load>
<class>InlineHtmlGalleyPlugin</class>
</version>