Added metadata switch button.

This commit is contained in:
Svetlana Rastegina 2021-03-24 19:22:44 +01:00
parent 7d8c144b0f
commit 6597a750e5

View file

@ -73,16 +73,20 @@ ${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">
<span id="iconControlsRightSide" class="<#if editable>iconControlsEditable<#else>iconControlsNotEditable</#if>" <#if !user.hasSiteAdminAccess></#if>> <@expandMetadataSwitch />
<#include "individual-iconControls-iph.ftl"> </div>
</span> <div class="toolsWrapper">
<#if editable && profilePageTypesEnabled > <div class="articleButtons">
<#include "individual-profilePageTypes.ftl"> <span id="iconControlsRightSide" class="<#if editable>iconControlsEditable<#else>iconControlsNotEditable</#if>" <#if !user.hasSiteAdminAccess></#if>>
</#if> <#include "individual-iconControls-iph.ftl">
<button id="print"><img onclick="javascript:printPageContent();" src="${urls.base}/themes/iph/images/print.svg"></button> </span>
</div> <#if editable && profilePageTypesEnabled >
</div> <#include "individual-profilePageTypes.ftl">
</#if>
<button id="print"><img onclick="javascript:printPageContent();" src="${urls.base}/themes/iph/images/print.svg"></button>
</div>
</div>
</div> </div>
</header> </header>
<!-- Positions --> <!-- Positions -->
@ -109,30 +113,33 @@ ${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>
<@authors_metadata /> </div>
<#else> <div class="autoMetadataExpand" style="display:none;">
<#assign pubAuthors = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#hasAuthor")!> <#if !editable>
<#if pubAuthors?has_content> <@authors_metadata />
<div class=" <#else>
<#if pubAuthors.statements?has_content > <#assign pubAuthors = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#hasAuthor")!>
collapsible collapsed <#if pubAuthors?has_content>
<#else> <div class="
nonePubAuthors <#if pubAuthors.statements?has_content >
</#if> collapsible collapsed
"> <#else>
<div class="collapsibleLink" style="display:inline;">Авторы: <@p.addLink pubAuthors editable /> <@p.verboseDisplay pubAuthors /></div> nonePubAuthors
</div> </#if>
<div class="expandedAuthors" style="display:none;"> ">
<#if pubAuthors.statements?has_content > <div class="collapsibleLink" style="display:inline;">Авторы: <@p.addLink pubAuthors editable /> <@p.verboseDisplay pubAuthors /></div>
<div class="pubAuthors" style="list-style:none;"> </div>
<@p.objectProperty pubAuthors editable /> <div class="expandedAuthors" style="display:none;">
</div> <#if pubAuthors.statements?has_content >
</#if> <div class="pubAuthors" style="list-style:none;">
</div> <@p.objectProperty pubAuthors editable />
</#if> </div>
</#if> </#if>
</div>
</#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">