Buttons to add Bibliography and Works

This commit is contained in:
Georgy Litvinov 2020-10-30 17:42:11 +01:00
parent 13ddaad34d
commit ec75b995c4

View file

@ -105,7 +105,7 @@
</#if>
<#assign author = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#author")!>
<#if author?has_content >
<#if author?has_content || editable >
<div class="label">Авторы: <@p.addLink author editable /> <@p.verboseDisplay author /> </div>
<#if author.statements?has_content && author.type == "data">
<div class="author" style="list-style:none;">
@ -151,19 +151,19 @@
</#if>
<#assign works = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#works")!>
<#if works.statements?has_content && works.type == "data">
<#if works.statements?has_content || editable >
<br/>
<div class="works" style="list-style:none;">
<h2 class="label">Работы:</h2>
<h2 class="label">Работы: <@p.addLink works editable /> <@p.verboseDisplay works /></h2>
<@p.dataPropertyList works editable />
</div>
</#if>
<#assign biblio= propertyGroups.pullProperty("https://litvinovg.pro/text_structures#bibliography")!>
<#if biblio.statements?has_content && biblio.type == "data">
<#if biblio.statements?has_content || editable >
<br/>
<div class="biblio" style="list-style:none;">
<h2 class="label">Литература:</h2>
<h2 class="label">Литература: <@p.addLink biblio editable /> <@p.verboseDisplay biblio /></h2>
<@p.dataPropertyList biblio editable />
</div>
</#if>