Added metadata switch button on compilation page.

This commit is contained in:
Svetlana Rastegina 2021-03-24 20:16:10 +01:00 committed by Georgy Litvinov
parent e04cbce072
commit 588552eecd
3 changed files with 22 additions and 11 deletions

View file

@ -0,0 +1,3 @@
<svg width="16" height="12" viewBox="0 0 16 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2 5L7.5 10.5L14 2" stroke="#8B4513" stroke-width="2.5" stroke-linecap="square" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 218 B

View file

@ -72,6 +72,10 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/to
</#if>
</div>
<div class="articleToolsContainer">
<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>>
<#include "individual-iconControls-iph.ftl">
@ -130,7 +134,10 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/to
</#if>
</#if>
<div class="metaDataName collapsible collapsed">
<div class="collapsibleLink" style="display:inline;">Метаданные</div>
</div>
<div class="autoMetadataExpand" style="display:none;">
<#assign firstPub = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#firstPublication")!>
<#if firstPub.statements?has_content && firstPub.type == "data">
<div class="firstPub" style="list-style:none;">
@ -143,6 +150,7 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/to
<@authors_metadata />
<@documentRubrics />
</div>
<@arrangeDocumentParts />