diff --git a/dbscripts/xml/upgrade.xml b/dbscripts/xml/upgrade.xml index 2754a85bfda..1f7e9d1db04 100644 --- a/dbscripts/xml/upgrade.xml +++ b/dbscripts/xml/upgrade.xml @@ -177,6 +177,7 @@ + diff --git a/lib/pkp b/lib/pkp index d40ab58d3bb..2be77f2f00c 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit d40ab58d3bb25240acbac0d7c3dd058e705fa5fb +Subproject commit 2be77f2f00c066ffc96e8d45f394f79535da334d diff --git a/lib/ui-library b/lib/ui-library index 77c0c661905..6179eefb98b 160000 --- a/lib/ui-library +++ b/lib/ui-library @@ -1 +1 @@ -Subproject commit 77c0c661905ec978972390022b9c195fd958899b +Subproject commit 6179eefb98bddd827db5aa604ac46bbd01f00892 diff --git a/pages/catalog/CatalogBookHandler.php b/pages/catalog/CatalogBookHandler.php index 858f522ac53..c154ec2740f 100755 --- a/pages/catalog/CatalogBookHandler.php +++ b/pages/catalog/CatalogBookHandler.php @@ -297,6 +297,11 @@ public function book($args, $request) $rorIdIcon = file_exists($rorIconPath) ? file_get_contents($rorIconPath) : ''; $templateMgr->assign('rorIdIcon', $rorIdIcon); + // Credit Role Terms + $templateMgr->assign([ + 'creditRoleTerms' => Repo::CreditRole()->getTerms(), + ]); + // Ask robots not to index outdated versions and point to the canonical url for the latest version if ($this->publication->getId() != $submission->getData('currentPublicationId')) { $templateMgr->addHeader('noindex', ''); diff --git a/plugins/themes/default/styles/objects/monograph_full.less b/plugins/themes/default/styles/objects/monograph_full.less index 6b049282b05..11a79ba9d7e 100644 --- a/plugins/themes/default/styles/objects/monograph_full.less +++ b/plugins/themes/default/styles/objects/monograph_full.less @@ -66,6 +66,12 @@ vertical-align: middle; } } + + .credit_roles { + display: block; + font-size: @font-sml; + line-height: @double; + } } .entry_details { diff --git a/templates/frontend/components/authors.tpl b/templates/frontend/components/authors.tpl index 3cea04ee03f..982fe217c62 100644 --- a/templates/frontend/components/authors.tpl +++ b/templates/frontend/components/authors.tpl @@ -12,6 +12,7 @@ * @uses $editors Array List of editors for this monograph if this is an edited * volume. Otherwise empty. * @uses $isChapterRequest bool Is true, if a chapter landing page is requested and not a monograph landing page + * @uses $creditRoleTerms Array of translated credit role terms: roles and degrees *}
@@ -57,6 +58,21 @@ {/if} + {if $author->getData('creditRoles')} + + {strip} + {foreach $author->getData('creditRoles') as $credit} + + {$creditRoleTerms.roles[$credit.role]|escape} + {if $creditRoleTerms.degrees[$credit.degree]} +  ({$creditRoleTerms.degrees[$credit.degree]|escape}) + {/if} + + {if !$credit@last}{translate key="common.commaListSeparator"}{/if} + {/foreach} + {/strip} + + {/if}
{/foreach}