Move authors metadata to macro

This commit is contained in:
Georgy Litvinov 2021-03-03 17:26:00 +01:00
parent 5f6cff9824
commit d98ec70ff7
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> </div>
</#if> </#if>
<#if authors??> <@authors_metadata />
<#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>
<@documentRubrics /> <@documentRubrics />

View file

@ -108,21 +108,7 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/co
</div> </div>
</#if> </#if>
<@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>
<@documentRubrics /> <@documentRubrics />

View file

@ -73,7 +73,7 @@
<@arrangeLiterature bibliography bibliography?size order.elenphExcerpt /> <@arrangeLiterature bibliography bibliography?size order.elenphExcerpt />
</div> </div>
</#if> </#if>
</div> <#-- articleExcerpt --> </div>
</#list> </#list>
</div> </div>
<@arrangeSources works works?size /> <@arrangeSources works works?size />
@ -111,6 +111,22 @@
</#macro> </#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> <#macro authors_underline>