Hi,
OMP version: 3.4.0.9
we have a bunch of books that are retrospectively turning open access. Sometimes this happens chapter by chapter. For some reason the copyright holders can only be set for the whole book and not per chapter or am I missing something?
Having the whole “set” of people listed who were somehow contributing to the volume does feel misleading especially when the content is under CC BY.
Would this be a way to address this?
{if $publication->getData('copyrightYear') && ($chapter->getData('licenseUrl') || $publication->getData('licenseUrl'))}
<div class="item copyright">
{if $chapter->getData('licenseUrl')}
{* chapter is open access *}
© {$publication->getData('copyrightYear')|escape}
{assign var="authors" value=$chapter->getAuthors()}
{foreach name="authors" from=$authors item=author}
{strip}
{if $author->getLocalizedAffiliation()}
{capture assign="authorName"}<span class="label">{$author->getFullName()|escape}</span>{/capture}
{capture assign="authorAffiliation"}<span class="value">{$author->getLocalizedAffiliation()|escape}</span>{/capture}
{translate key="submission.authorWithAffiliation" name=$authorName affiliation=$authorAffiliation}
{else}
<span class="label">{$author->getFullName()|escape}</span>
{/if}
{if !$smarty.foreach.authors.last}
{translate key="submission.authorListSeparator"}
{/if}
{/strip}
{/foreach}
{elseif $publication->getData('copyrightYear') && $publication->getLocalizedData('copyrightHolder')}
{translate|escape key="submission.copyrightStatement" copyrightYear=$publication->getData('copyrightYear') copyrightHolder=$publication->getLocalizedData('copyrightHolder')}
{/if}
</div>
{/if}
{* Copyright statement *}
{if $publication->getData('copyrightYear')}
<div class="item copyright">
{if $chapter->getData('licenseUrl') || $publication->getData('licenseUrl')}
{* Wenn eine Lizenz existiert: Zeige Jahr + Autoren *}
Copyright (c) {$publication->getData('copyrightYear')|escape}
{assign var="authors" value=$chapter->getAuthors()}
{foreach name="authors" from=$authors item=author}
{strip}
{* ... (Name und Affiliation Logik) ... *}
{if $author->getLocalizedAffiliation()}
{capture assign="authorName"}{$author->getFullName()|escape}{/capture}
{capture assign="authorAffiliation"}<span class="value">{$author->getLocalizedAffiliation()|escape}</span>{/capture}
{translate key="submission.authorWithAffiliation" name=$authorName affiliation=$authorAffiliation}
{else}
{$author->getFullName()|escape}
{/if}
{* DAS HIER ist der sichtbare Trenner im Browser: *}
{if !$smarty.foreach.authors.last}, {/if}
{/strip}
{/foreach}
{elseif $publication->getLocalizedData('copyrightHolder')}
{* Fallback: Klassischer Copyright-Satz *}
{translate|escape key="submission.copyrightStatement" copyrightYear=$publication->getData('copyrightYear') copyrightHolder=$publication->getLocalizedData('copyrightHolder')}
{/if}
</div>
{/if}
This seems to be working.