Added print,save,export PDF buttons.

This commit is contained in:
Svetlana Rastegina 2021-03-04 13:47:41 +01:00
parent b49f169474
commit 9e8ee41438
9 changed files with 50 additions and 10 deletions

View file

@ -1984,9 +1984,10 @@ h3.internal-auth {
}
#titleContainer {
font-family: "IPH Astra Serif";
width: auto!important;
}
#individual-info h1.fn {
font-size: 1.6rem;
font-size: 1.5rem;
color: #595B5B;
background-image: url(../images/circle_title.png);
background-repeat: no-repeat;
@ -2636,7 +2637,38 @@ button#scrollToTopBtn:hover {
background-repeat: no-repeat;
background-position: top center;
}
span.iconControlsNotEditable {
position: relative;
}
.expandSwitch {
width: 30%;
font-family: "Roboto";
font-size: 1rem;
text-align: right;
/*background-color: #000000;*/
/*background-image: url(../images/expand_button.png);
background-repeat: no-repeat;
background-position: top center;*/
padding-right: 5px;
}
#individual-info >header {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
width: 100%;
padding-bottom: 5px;
}
#articleTitleWrapper {
width: 70%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
}
#print {
all: unset;
}
/* -------------------------------------------------> */
/* FONTS --------------------------------> */
/* -------------------------------------------------> */

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -33,6 +33,7 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/co
<section id="individual-info" ${infoClass!} role="region" style="width: 100%;">
<#include "individual-adminPanel.ftl">
<header>
<div id="articleTitleWrapper">
<#if relatedSubject??>
<h2>${relatedSubject.relatingPredicateDomainPublic} ${i18n().for} ${relatedSubject.name}</h2>
<p><a href="${relatedSubject.url}" title="${i18n().return_to(relatedSubject.name)}">&larr; ${i18n().return_to(relatedSubject.name)}</a></p>
@ -64,20 +65,22 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/co
<@p.mostSpecificTypesPerson individual editable/>
</#if>
</#if>
</div>
<span id="iconControlsRightSide" class="<#if editable>iconControlsEditable<#else>iconControlsNotEditable</#if>" <#if !user.hasSiteAdminAccess>style="top:5px"</#if>>
<#include "individual-iconControls.ftl">
<#include "individual-iconControls-iph.ftl">
</span>
<#if editable && profilePageTypesEnabled >
<#include "individual-profilePageTypes.ftl">
</#if>
<@expandSwitch />
</header>
<!-- Positions -->
<#include "individual-positions.ftl">
<!-- Overview -->
<#if !editable>
<p></p>
</#if>
</#if>
<#include "individual-overview.ftl">
<!-- Research Areas -->
@ -97,8 +100,6 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/themes/iph/js/co
<#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!>
</#if>
<@expandSwitch />
<#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;">

View file

@ -14,9 +14,7 @@
<div id="articleWrapper">
<#if currentServlet = "individual" && currentServlet != "display">
<div id="searchRightpanel">
<#include "customsearchpanel.ftl" >
</div>
<#include "rightPanel.ftl" >
</#if>
<#include "contentWrapper.ftl">
<#if currentServlet != "individual" && currentServlet != "login" && currentServlet != "display" && currentServlet != "customsearch">

View file

@ -0,0 +1,9 @@
<div id="searchRightpanel">
<div id="articleIconsWrapper">
<button id="print"><img src="${urls.base}/themes/iph/images/print-icon.png"></button>
<button id="save"><img src="${urls.base}/themes/iph/images/print-icon.png"></button>
<button id="exportPdf"><img src="${urls.base}/themes/iph/images/print-icon.png"></button>
</div>
<#include "customsearchpanel.ftl" >
</div>