Output biblio and works for each excerpt
This commit is contained in:
parent
6196cbc8b3
commit
1ac49647a3
2 changed files with 57 additions and 46 deletions
|
@ -127,62 +127,70 @@ ${scripts.add('<script async type="text/javascript" src="//cdn.plu.mx/widget-pop
|
|||
<div class = "articleExcerpt">
|
||||
<#-- ${order.path} -->
|
||||
<#list excerpts as excerptProperties>
|
||||
|
||||
<#if order.elenphExcerpt?has_content && excerptProperties.elenphExcerpt == order.elenphExcerpt>
|
||||
<#if excerptProperties.property == "https://litvinovg.pro/text_structures#htmlExcerpt">
|
||||
<#assign excerptText = excerptProperties.value >
|
||||
</#if>
|
||||
<#if excerptProperties.property == "http://www.w3.org/2000/01/rdf-schema#label">
|
||||
<#assign excerptTextName = excerptProperties.value >
|
||||
</#if>
|
||||
<#assign excerptText = excerptProperties.htmlContent >
|
||||
<#assign excerptTextName = excerptProperties.htmlLabel >
|
||||
<#assign worksCounter = excerptProperties.worksCounter >
|
||||
<#assign bibliographyCounter = excerptProperties.bibliographyCounter >
|
||||
</#if>
|
||||
</#list>
|
||||
<#if excerptText?? && excerptTextName?? && excerptTextName?has_content && excerptText?has_content>
|
||||
<button type="button" style="border:none;padding: 18px;width: 100%; text-align:left;" class="collapsible">${excerptTextName}</button>
|
||||
<div class="htmlExcerpt" style="list-style:none; display:none;">
|
||||
${excerptText}
|
||||
</div>
|
||||
${excerptText}
|
||||
<#if works?? && works?has_content && worksCounter?number > 0 >
|
||||
<button type="button" class="collapsible" style="border:none;padding: 18px;width: 100%;text-align:left;">Работы</button>
|
||||
<div class="works" style="display:none;">
|
||||
<#list works as work>
|
||||
<#if work.elenphExcerpt == order.elenphExcerpt >
|
||||
<div class="work" style="list-style:none;">
|
||||
<p> ${work.works} </p>
|
||||
</div>
|
||||
</#if>
|
||||
</#list>
|
||||
</div>
|
||||
</#if>
|
||||
|
||||
<#if bibliography?? && bibliography?has_content && bibliographyCounter?number > 0>
|
||||
<button type="button" class="collapsible" style="border:none;padding: 18px;width: 100%; text-align: left;">Литература</button>
|
||||
<div class="bibliography" style="display:none;">
|
||||
<#list bibliography as one_bibliography>
|
||||
<#if one_bibliography.elenphExcerpt == order.elenphExcerpt >
|
||||
<div class="bibliography_entry" style="list-style:none;">
|
||||
<p> ${one_bibliography.bibliography} </p>
|
||||
</div>
|
||||
</#if>
|
||||
</#list>
|
||||
</div>
|
||||
</#if>
|
||||
</div>
|
||||
|
||||
</#if>
|
||||
</div> <#-- articleExcerpt -->
|
||||
|
||||
</#list>
|
||||
</div>
|
||||
<#-- <@dump var="works" /> -->
|
||||
<#if works??>
|
||||
<#assign no_works = true>
|
||||
<#list works as work>
|
||||
<#if no_works>
|
||||
<button type="button" class="collapsible" style="border:none;padding: 18px;width: 100%;text-align:left;">Работы</button>
|
||||
<div class="works" style="display:none;">
|
||||
<#assign no_works = false>
|
||||
</#if>
|
||||
<div class="work" style="list-style:none;">
|
||||
<p> ${work.works} </p>
|
||||
|
||||
<#if works?? && works?has_content>
|
||||
<button type="button" class="collapsible" style="border:none;padding: 18px;width: 100%;text-align:left;">Работы</button>
|
||||
<div class="works" style="display:none;">
|
||||
<#list works as work>
|
||||
<div class="work" style="list-style:none;">
|
||||
<p> ${work.works} </p>
|
||||
</div>
|
||||
</#list>
|
||||
</div>
|
||||
|
||||
</#list>
|
||||
<#if !no_works>
|
||||
</div> <#-- works class-->
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
<#if bibliography??>
|
||||
<#assign no_bibliography = true>
|
||||
<#list bibliography as one_bibliography>
|
||||
<#if no_bibliography>
|
||||
<button type="button" class="collapsible" style="border:none;padding: 18px;width: 100%; text-align: left;">Литература</button>
|
||||
<div class="bibliography" style="display:none;">
|
||||
<#assign no_bibliography = false>
|
||||
</#if>
|
||||
<div class="bibliography_entry" style="list-style:none;">
|
||||
<p> ${one_bibliography.bibliography} </p>
|
||||
<#if bibliography?? && bibliography?has_content>
|
||||
<button type="button" class="collapsible" style="border:none;padding: 18px;width: 100%; text-align: left;">Литература</button>
|
||||
<div class="bibliography" style="display:none;">
|
||||
<#list bibliography as one_bibliography>
|
||||
<div class="bibliography_entry" style="list-style:none;">
|
||||
<p> ${one_bibliography.bibliography} </p>
|
||||
</div>
|
||||
</#list>
|
||||
</div>
|
||||
|
||||
|
||||
</#list>
|
||||
<#if !no_bibliography>
|
||||
</div> <#-- bibliography class-->
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
<#if authors??>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue