Move authors metadata to macro

This commit is contained in:
Georgy Litvinov 2021-03-03 17:26:00 +01:00
parent 428bd78152
commit 8a5c3f40b0
3 changed files with 19 additions and 31 deletions

View file

@ -132,21 +132,7 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/co
</div>
</#if>
<#if authors??>
<#list authors as author>
<div class="affiliations" >
<b><#if author.authorFamily??>${author.authorFamily}&nbsp;</#if><#if author.authorGivenName??>${author.authorGivenName}</#if></b>
<#if author.orgName??>
<br><span style="color:rgba(0,0,0,0.54);">${author.orgName}</span>
</#if>
<#if author.orgAddress??>
<br>
<span style="color:rgba(0,0,0,0.54);">Адрес организации: <#if author.orgPostalCode??>${author.orgPostalCode},&nbsp;</#if>${author.orgAddress}&nbsp;</span>
</#if>
</div>
</#list>
</#if>
<@authors_metadata />
<@documentRubrics />

View file

@ -108,21 +108,7 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/co
</div>
</#if>
<#if authors??>
<#list authors as author>
<div class="affiliations" >
<b><#if author.authorFamily??>${author.authorFamily}&nbsp;</#if><#if author.authorGivenName??>${author.authorGivenName}</#if></b>
<#if author.orgName??>
<br><span style="color:rgba(0,0,0,0.54);">${author.orgName}</span>
</#if>
<#if author.orgAddress??>
<br>
<span style="color:rgba(0,0,0,0.54);">Адрес организации: <#if author.orgPostalCode??>${author.orgPostalCode},&nbsp;</#if>${author.orgAddress}&nbsp;</span>
</#if>
</div>
</#list>
</#if>
<@authors_metadata />
<@documentRubrics />

View file

@ -73,7 +73,7 @@
<@arrangeLiterature bibliography bibliography?size order.elenphExcerpt />
</div>
</#if>
</div> <#-- articleExcerpt -->
</div>
</#list>
</div>
<@arrangeSources works works?size />
@ -111,6 +111,22 @@
</#macro>
<#macro authors_metadata>
<#if authors??>
<#list authors as author>
<div class="affiliations" >
<b><#if author.authorFamily??>${author.authorFamily}&nbsp;</#if><#if author.authorGivenName??>${author.authorGivenName}</#if></b>
<#if author.orgName??>
<br><span style="color:rgba(0,0,0,0.54);">${author.orgName}</span>
</#if>
<#if author.orgAddress??>
<br>
<span style="color:rgba(0,0,0,0.54);">Адрес организации: <#if author.orgPostalCode??>${author.orgPostalCode},&nbsp;</#if>${author.orgAddress}&nbsp;</span>
</#if>
</div>
</#list>
</#if>
</#macro>
<#macro authors_underline>