Added metadata switch button.

This commit is contained in:
Svetlana Rastegina 2021-03-24 19:22:44 +01:00 committed by Georgy Litvinov
parent 79a619a6d5
commit 755ac5d01e

View file

@ -73,7 +73,11 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/to
</#if> </#if>
</div> </div>
<div class="articleToolsContainer"> <div class="articleToolsContainer">
<div class="articleButtons"> <div class="metadataSwitch">
<@expandMetadataSwitch />
</div>
<div class="toolsWrapper">
<div class="articleButtons">
<span id="iconControlsRightSide" class="<#if editable>iconControlsEditable<#else>iconControlsNotEditable</#if>" <#if !user.hasSiteAdminAccess></#if>> <span id="iconControlsRightSide" class="<#if editable>iconControlsEditable<#else>iconControlsNotEditable</#if>" <#if !user.hasSiteAdminAccess></#if>>
<#include "individual-iconControls-iph.ftl"> <#include "individual-iconControls-iph.ftl">
</span> </span>
@ -81,8 +85,8 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/to
<#include "individual-profilePageTypes.ftl"> <#include "individual-profilePageTypes.ftl">
</#if> </#if>
<button id="print"><img onclick="javascript:printPageContent();" src="${urls.base}/themes/iph/images/print.svg"></button> <button id="print"><img onclick="javascript:printPageContent();" src="${urls.base}/themes/iph/images/print.svg"></button>
</div> </div>
</div> </div>
</div> </div>
</header> </header>
<!-- Positions --> <!-- Positions -->
@ -109,10 +113,13 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/to
<#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/firstName")!> <#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/firstName")!>
<#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!> <#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!>
</#if> </#if>
<div class="metaDataName collapsible collapsed">
<#if !editable> <div class="collapsibleLink" style="display:inline;">Метаданные</div>
</div>
<div class="autoMetadataExpand" style="display:none;">
<#if !editable>
<@authors_metadata /> <@authors_metadata />
<#else> <#else>
<#assign pubAuthors = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#hasAuthor")!> <#assign pubAuthors = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#hasAuthor")!>
<#if pubAuthors?has_content> <#if pubAuthors?has_content>
<div class=" <div class="
@ -132,7 +139,7 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/to
</#if> </#if>
</div> </div>
</#if> </#if>
</#if> </#if>
<#if articles?has_content> <#if articles?has_content>
<div class="collapsible collapsed"> <div class="collapsible collapsed">
@ -176,7 +183,7 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/to
</div> </div>
</div> </div>
</#if> </#if>
</div>
<#assign htmlExcerpt = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#htmlExcerpt")!> <#assign htmlExcerpt = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#htmlExcerpt")!>
<#if htmlExcerpt?has_content > <#if htmlExcerpt?has_content >
<#if htmlExcerpt.statements?has_content && htmlExcerpt.type == "data"> <#if htmlExcerpt.statements?has_content && htmlExcerpt.type == "data">