From 0c8163070bd1a955bb52fc65391db9d060e74afd Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Thu, 25 Feb 2021 15:13:32 +0100 Subject: [PATCH 001/150] Fix compilation template --- .../main/webapp/templates/freemarker/compilation.ftl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/webapp/src/main/webapp/templates/freemarker/compilation.ftl b/webapp/src/main/webapp/templates/freemarker/compilation.ftl index b5078d91..65de02a6 100644 --- a/webapp/src/main/webapp/templates/freemarker/compilation.ftl +++ b/webapp/src/main/webapp/templates/freemarker/compilation.ftl @@ -107,11 +107,13 @@ ${scripts.add(' - - -<#assign rdfUrl = individual.rdfUrl> - -<#if rdfUrl??> - - - - -${stylesheets.add('', - '', - '', - '', - '')} - -${headScripts.add('', - '', - '', - '')} - -${scripts.add('', - '', - '', - '', - '', - '', - '', - '', - '')} - - diff --git a/webapp/src/main/webapp/templates/freemarker/elenphExcerpt.ftl b/webapp/src/main/webapp/templates/freemarker/elenphExcerpt.ftl index 893cbea3..75e92069 100644 --- a/webapp/src/main/webapp/templates/freemarker/elenphExcerpt.ftl +++ b/webapp/src/main/webapp/templates/freemarker/elenphExcerpt.ftl @@ -1,42 +1,269 @@ -<#-- $This file is distributed under the terms of the license in LICENSE$ --> - -<#-- - - This version of individual--foaf-person.ftl is a "router" template. The original VIVO - version of this template now resides in the /themes/wilma/templates directory. - - This version of the template is used when the profile page types feature is enabled. - This template serves to "rout" the user to the correct template based (1) the - profile page type of the foaf person being displayed or (2) the targeted view that - the user wants to see. For example, when a user is routed to a quick view template, - the user has the option of displaying the full view. If the user chooses that option, - the targetedView variable gets set. - - This template could also be used to load just the "individual--foaf-person-2column.ftl" - without enabling profile page types. "individual--foaf-person-2column.ftl" is a slightly - different design than the "individual--foaf-person.ftl" template in the themes/wilma - directory. - - --> - <#include "individual-setup.ftl"> ${scripts.add('')} ${scripts.add('')} -<#assign selectedTemplate = "elenphExcerpt-internal.ftl" > +<#-- Individual profile page template for foaf:Person individuals --> -<#if profilePageTypesEnabled > - <#assign profilePageType = profileType > - - <#-- targetedView takes precedence over the profilePageType. --> - - <#if targetedView?has_content> - <#if targetedView != "standardView"> - <#assign selectedTemplate = "individual--foaf-person-quickview.ftl" > - - <#elseif profilePageType == "quickView" > - <#assign selectedTemplate = "individual--foaf-person-quickview.ftl" > - + +<#-- <#include "individual-setup.ftl"> --> +<#import "individual-qrCodeGenerator.ftl" as qr> +<#import "lib-vivo-properties.ftl" as vp> +<#--Number of labels present--> +<#if !labelCount??> + <#assign labelCount = 0 > -<#include selectedTemplate > +<#--Number of available locales--> +<#if !localesCount??> + <#assign localesCount = 1> + +<#--Number of distinct languages represented, with no language tag counting as a language, across labels--> +<#if !languageCount??> + <#assign languageCount = 1> + +<#assign qrCodeIcon = "qr-code-icon.png"> +<#assign visRequestingTemplate = "foaf-person-2column"> +<#--add the VIVO-ORCID interface --> +<#include "individual-orcidInterface.ftl"> +
+
+ <#include "individual-adminPanel.ftl"> +
+ <#if relatedSubject??> +

${relatedSubject.relatingPredicateDomainPublic} ${i18n().for} ${relatedSubject.name}

+

← ${i18n().return_to(relatedSubject.name)}

+ <#else> +

style="float:left;border-right:1px solid #A6B1B0;"> + <#-- Label --> + <@p.label individual editable labelCount localesCount/> +

+ <#-- Display preferredTitle if it exists; otherwise mostSpecificTypes --> + <#assign title = propertyGroups.pullProperty("http://purl.obolibrary.org/obo/ARG_2000028","http://www.w3.org/2006/vcard/ns#Title")!> + <#if title?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> + <#if (title.statements?size < 1) > + <@p.addLinkWithLabel title editable /> + <#elseif editable> +

${title.name?capitalize!}

+ <@p.verboseDisplay title /> + + <#list title.statements as statement> + <#if !editable > +
${statement.preferredTitle}
+ <#else> + ${statement.preferredTitle} + <@p.editingLinks "${title.localName}" "${title.name}" statement editable title.rangeUri /> + + + + <#-- If preferredTitle is unpopulated, display mostSpecificTypes --> + <#if ! (title.statements)?has_content> + <@p.mostSpecificTypesPerson individual editable/> + + + style="top:5px"> + <#include "individual-iconControls.ftl"> + + <#if editable && profilePageTypesEnabled > + <#include "individual-profilePageTypes.ftl"> + +
+ + <#include "individual-positions.ftl"> + + + <#if !editable> +

+ + <#include "individual-overview.ftl"> + + + <#include "individual-researchAreas.ftl"> + + + <#include "individual-geographicFocus.ftl"> + + <#include "individual-openSocial.ftl"> +
+
+ +<#assign nameForOtherGroup = "${i18n().other}"> +<#if !editable> + <#-- We don't want to see the first name and last name unless we might edit them. --> + <#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/firstName")!> + <#assign skipThis = propertyGroups.pullProperty("http://xmlns.com/foaf/0.1/lastName")!> + +<#if !editable> +<#if authors??> + <#list authors as author> +
+ <#if author.authorFamily??>${author.authorFamily} <#if author.authorGivenName??>${author.authorGivenName} + <#if author.orgName??> +
${author.orgName} + + <#if author.orgAddress??> +
+ Адрес организации: <#if author.orgPostalCode??>${author.orgPostalCode}, ${author.orgAddress}  + + +
+ + +<#else> + <#assign pubAuthors = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#hasAuthor")!> + <#if pubAuthors?has_content> +
Авторы: <@p.addLink pubAuthors editable /> <@p.verboseDisplay pubAuthors />
+ <#if pubAuthors.statements?has_content > +
+ <@p.objectProperty pubAuthors editable /> +
+ + + + <#if articles?has_content> +
В составе статей:
+
+ <#list articles as article> + <#if article?has_content > +
+ ${article.articleName} +
+ + +
+ + + <#assign rubrics = propertyGroups.pullProperty("https://iph.ras.ru/relationships#belongsTo")!> + <#if rubrics?has_content> +
Относится к: <@p.addLink rubrics editable /> <@p.verboseDisplay rubrics />
+ <#if rubrics.statements?has_content > +
+ <@p.objectProperty rubrics editable /> +
+ + + <#assign keywords = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#keywords")!> + <#if keywords?has_content > +
Ключевые слова: <@p.addLink keywords editable /> <@p.verboseDisplay keywords />
+ <#if keywords.statements?has_content && keywords.type == "data"> +
+ <@p.dataPropertyList keywords editable /> +
+ + + <#assign htmlExcerpt = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#htmlExcerpt")!> + <#if htmlExcerpt?has_content > + <#if htmlExcerpt.statements?has_content && htmlExcerpt.type == "data"> +
+ <@p.dataPropertyList htmlExcerpt editable /> + <#-- object property --> +
+ <#else> +
Текст отрывка: <@p.addLink htmlExcerpt editable /> <@p.verboseDisplay htmlExcerpt />
+ + + + <#assign works = propertyGroups.pullProperty("https://litvinovg.pro/text_structures#works")!> + <#if works.statements?has_content || editable > +
+
+

Источники: <@p.addLink works editable /> <@p.verboseDisplay works />

+ <@p.dataPropertyList works editable /> +
+ + + <#assign biblio= propertyGroups.pullProperty("https://litvinovg.pro/text_structures#bibliography")!> + <#if biblio.statements?has_content || editable > +
+
+

Литература: <@p.addLink biblio editable /> <@p.verboseDisplay biblio />

+ <@p.dataPropertyList biblio editable /> +
+ + +<#-- <#include "individual-property-group-tabs.ftl"> --> + +<#if profilePageTypesEnabled && (targetedView?has_content || user.loggedIn) > + + + ${i18n().quick_view_icon} + + + +<#if !editable> + + + +<#assign rdfUrl = individual.rdfUrl> + +<#if rdfUrl??> + + + + +${stylesheets.add('', + '', + '', + '', + '')} + +${headScripts.add('', + '', + '', + '')} + +${scripts.add('', + '', + '', + '', + '', + '', + '', + '', + '')} + + From 7b9214357225631b3a03ef231ca344e56d4a2406 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 2 Mar 2021 14:56:17 +0100 Subject: [PATCH 019/150] Refactoring expand scripts --- .../templates/freemarker/elenphAritcle.ftl | 35 +------------------ .../themes/iph/js/collapsible_elements.js | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 34 deletions(-) create mode 100644 webapp/src/main/webapp/themes/iph/js/collapsible_elements.js diff --git a/webapp/src/main/webapp/templates/freemarker/elenphAritcle.ftl b/webapp/src/main/webapp/templates/freemarker/elenphAritcle.ftl index 04ec2dbf..5185b706 100644 --- a/webapp/src/main/webapp/templates/freemarker/elenphAritcle.ftl +++ b/webapp/src/main/webapp/templates/freemarker/elenphAritcle.ftl @@ -8,6 +8,7 @@ ${scripts.add('')} ${scripts.add('')} ${scripts.add('')} +${scripts.add('')} <#import "individual-qrCodeGenerator.ftl" as qr> <#import "lib-vivo-properties.ftl" as vp> <#--Number of labels present--> @@ -233,22 +234,6 @@ ${scripts.add(' - <#if !editable> ')} ${scripts.add('')} ${scripts.add('')} +${scripts.add('')} <#import "individual-qrCodeGenerator.ftl" as qr> <#import "lib-vivo-properties.ftl" as vp> <#include "text-lib.ftl"> @@ -122,7 +123,7 @@ ${scripts.add(' <#-- <@dumpAll /> --> <#assign selectedTemplate = "individual--foaf-person-2column.ftl" > @@ -281,24 +266,6 @@ for (i = 0; i < coll.length; i++) { - - <#if !editable> ')} +
@@ -109,23 +111,3 @@ - - - - - diff --git a/webapp/src/main/webapp/templates/freemarker/rubrics.ftl b/webapp/src/main/webapp/templates/freemarker/rubrics.ftl index ae08ad5a..38364c94 100644 --- a/webapp/src/main/webapp/templates/freemarker/rubrics.ftl +++ b/webapp/src/main/webapp/templates/freemarker/rubrics.ftl @@ -1,3 +1,5 @@ +${scripts.add('')} + <#list rubrics as rubric> <#if !rubric.parentUri??> <#assign childs = rubric.childs?number> @@ -13,24 +15,6 @@ - - <#macro openButton childs> <#if childs > 0>
+
From 7eea134629cd738286b8c7a68b0a2f4683c259ba Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 2 Mar 2021 15:40:32 +0100 Subject: [PATCH 023/150] Fix authors sign --- .../main/webapp/templates/freemarker/compilation.ftl | 10 +++++----- .../main/webapp/templates/freemarker/elenphAritcle.ftl | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/webapp/src/main/webapp/templates/freemarker/compilation.ftl b/webapp/src/main/webapp/templates/freemarker/compilation.ftl index 10a6f348..cd1726ca 100644 --- a/webapp/src/main/webapp/templates/freemarker/compilation.ftl +++ b/webapp/src/main/webapp/templates/freemarker/compilation.ftl @@ -231,12 +231,12 @@ ${scripts.add('')} <#import "individual-qrCodeGenerator.ftl" as qr> <#import "lib-vivo-properties.ftl" as vp> +<#include "text-lib.ftl"> + <#--Number of labels present--> <#if !labelCount??> <#assign labelCount = 0 > @@ -94,11 +96,9 @@ ${scripts.add(' From 43ff4e44a8cc3406d22f2a2caa41cb1c1c749ce5 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Thu, 4 Mar 2021 16:01:50 +0100 Subject: [PATCH 038/150] Added table of contents js functions --- webapp/src/main/webapp/themes/iph/js/toc.js | 34 +++++++++++++++++++ .../webapp/themes/iph/templates/text-lib.ftl | 33 +++++++++--------- 2 files changed, 51 insertions(+), 16 deletions(-) create mode 100644 webapp/src/main/webapp/themes/iph/js/toc.js diff --git a/webapp/src/main/webapp/themes/iph/js/toc.js b/webapp/src/main/webapp/themes/iph/js/toc.js new file mode 100644 index 00000000..7f5d4434 --- /dev/null +++ b/webapp/src/main/webapp/themes/iph/js/toc.js @@ -0,0 +1,34 @@ + document.addEventListener('DOMContentLoaded', createTOC(), false); + + function createTOC(){ + var complexDocElement = document.getElementById("complexDocument"); + var tocElement = document.getElementById("tocPlaceHolder"); + + if (complexDocElement === null || tocElement === null){ + console.log("no complex document or no placeholder"); + return; + } + addItemsToTOC(complexDocElement,tocElement) + } + function addItemsToTOC(docPart, tocElement){ + var docPartChilds = docPart.childNodes; + for (var i = 0; i < docPartChilds.length; i++){ + var docPartChild = docPartChilds[i]; + if ( docPartChild.nodeType === Node.ELEMENT_NODE && docPartChild.classList.contains("documentPart")){ + var tocElementChild = createTOCItem(docPartChild, tocElement); + addItemsToTOC(docPartChild,tocElementChild); + } + } + } + function createTOCItem(docPart, tocElement){ + var newTOCElement = document.createElement("div"); + var anchor = docPart.getAttribute('id'); + var docPartButton = docPart.previousElementSibling; + var itemName = docPartButton.textContent; + var link = document.createElement("a"); + link.setAttribute("href","#" + anchor); + link.innerText = itemName; + newTOCElement.appendChild(link); + tocElement.appendChild(newTOCElement); + return newTOCElement; + } \ No newline at end of file diff --git a/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl b/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl index a63819ba..fad4c505 100644 --- a/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl @@ -53,7 +53,7 @@ <#macro arrangeDocumentParts > -
+
<#assign lastLevel = 0 > <#list paths as order> <#-- ${order.path} --> @@ -65,32 +65,33 @@ <#assign bibliographyCounter = excerptProperties.bibliographyCounter > - <@startDocumentPart order.level?number lastLevel/> + <@startDocumentPart order.level?number order.path lastLevel/> <#if excerptText?? && excerptTextName?? && excerptTextName?has_content && excerptText?has_content>
${excerptText} - <@arrangeSources works worksCounter?number order.elenphExcerpt /> - <@arrangeLiterature bibliography bibliographyCounter?number order.elenphExcerpt />
+ <@arrangeSources works worksCounter?number order.path order.elenphExcerpt /> + <@arrangeLiterature bibliography bibliographyCounter?number order.path order.elenphExcerpt /> <#assign lastLevel = order.level?number > <@endDocumentPart lastLevel /> + <@arrangeSources works works?size "anchor-all-sources" /> + <@arrangeLiterature bibliography bibliography?size "anchor-all-literature" />
- <@arrangeSources works works?size /> - <@arrangeLiterature bibliography bibliography?size /> + -<#macro startDocumentPart newLevel lastLevel=0 > +<#macro startDocumentPart newLevel path lastLevel=0 > <#assign depth = newLevel - lastLevel > <#if depth == 0> <@closeDocPart 1 /> - <@openDocPart 1 /> + <@openDocPart 1 path /> <#elseif depth > 0> - <@openDocPart depth /> + <@openDocPart depth path /> <#else > <@closeDocPart -depth+1 /> - <@openDocPart 1 /> + <@openDocPart 1 path /> @@ -107,17 +108,17 @@ -<#macro openDocPart count> +<#macro openDocPart count path > <#list 1..count as x> -
+
-<#macro arrangeSources sources counter filter="none"> +<#macro arrangeSources sources counter identifier filter="none"> <#if sources?? && sources?has_content && counter > 0> -
+
<#list sources as source> <#if filter == "none" || source.excerpt == filter >
@@ -129,10 +130,10 @@ -<#macro arrangeLiterature literature counter filter="none"> +<#macro arrangeLiterature literature counter identifier filter="none"> <#if literature?? && literature?has_content && counter > 0> -
+
<#list literature as literatureItem> <#if filter == "none" || literatureItem.excerpt == filter >
From b49f1694745c95442b15e0bba5fa5679c4e2161d Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 5 Mar 2021 00:04:59 +0100 Subject: [PATCH 039/150] Open parent document parts when go to part from TOC --- webapp/src/main/webapp/themes/iph/js/toc.js | 25 +++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/webapp/src/main/webapp/themes/iph/js/toc.js b/webapp/src/main/webapp/themes/iph/js/toc.js index 7f5d4434..8200dc0e 100644 --- a/webapp/src/main/webapp/themes/iph/js/toc.js +++ b/webapp/src/main/webapp/themes/iph/js/toc.js @@ -26,9 +26,30 @@ var docPartButton = docPart.previousElementSibling; var itemName = docPartButton.textContent; var link = document.createElement("a"); - link.setAttribute("href","#" + anchor); + link.setAttribute("href", "javascript:goToDocumentPart(\"" + anchor + "\");" ); link.innerText = itemName; newTOCElement.appendChild(link); tocElement.appendChild(newTOCElement); return newTOCElement; - } \ No newline at end of file + } + function goToDocumentPart(targetId){ + if (targetId ===""){ + return; + } + var targetNode = document.getElementById(targetId); + if (targetNode === null){ + console.log("document has no target node to go to") + return; + } + showParents(targetNode); + document.getElementById(targetId).scrollIntoView(); + } + function showParents(targetNode){ + if (targetNode != null && "complexDocument" !== targetNode.id){ + if (targetNode.style.display === "none") { + targetNode.style.display = "block"; + } + showParents(targetNode.parentElement); + } + } + \ No newline at end of file From 9e8ee4143813a2e56a8132fc70adf10170330dfa Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Thu, 4 Mar 2021 13:47:41 +0100 Subject: [PATCH 040/150] Added print,save,export PDF buttons. --- webapp/src/main/webapp/themes/iph/css/iph.css | 36 +++++++++++++++++- .../themes/iph/images/expand_button.png | Bin 0 -> 665 bytes .../webapp/themes/iph/images/print-icon.png | Bin 0 -> 654 bytes .../webapp/themes/iph/images/save-icon.png | Bin 0 -> 532 bytes .../themes/iph/images/save-pdf-icon.png | Bin 0 -> 1193 bytes .../webapp/themes/iph/images/share-icon.png | Bin 1671 -> 1364 bytes .../themes/iph/templates/elenphAritcle.ftl | 11 +++--- .../main/webapp/themes/iph/templates/page.ftl | 4 +- .../themes/iph/templates/rightPanel.ftl | 9 +++++ 9 files changed, 50 insertions(+), 10 deletions(-) create mode 100644 webapp/src/main/webapp/themes/iph/images/expand_button.png create mode 100644 webapp/src/main/webapp/themes/iph/images/print-icon.png create mode 100644 webapp/src/main/webapp/themes/iph/images/save-icon.png create mode 100644 webapp/src/main/webapp/themes/iph/images/save-pdf-icon.png create mode 100644 webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index e7ed4a5e..6aa66b03 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -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 --------------------------------> */ /* -------------------------------------------------> */ diff --git a/webapp/src/main/webapp/themes/iph/images/expand_button.png b/webapp/src/main/webapp/themes/iph/images/expand_button.png new file mode 100644 index 0000000000000000000000000000000000000000..b5e1aac0c03d48b023f8d0f10c88f6543e34d43f GIT binary patch literal 665 zcmeAS@N?(olHy`uVBq!ia0y~yU^D@;)j8OJWaE}CazKhL$=lt9;Xep2*t>i(P=vF< zBeIx*fm;}a85w5HkpK#^mw5WRvOi^J;Smy5d)o^vgo zqTujAp8Lzv|KIz+Pj@bVHQ(#{$GQyTBDsMLu( zTrRBOkRYJ3ZDHpu=8fS@ELof)(iw}=){3oiZaAP2piQL%f%R( zt~2fCHwpYa>-u{Zjw>QJOo56_qd^kMjd#sV0*ifK+cGk3Wi11l^!D0H_l5%z3DZw# zX7xqxRd-m>df=|~tQ9vGfmWO@Tj|?yV3NZ(prYv(wQda# z-i>R3)@{p~dW(f)4W|lF(KD%~=Q#y3bSKzca5;NzZP0v%M$^V6Kt<~ef6ZZN?gDj(I6dbO=uk4S2C_AD zi};yXf>_m*m#>(4>bVRf(?pg$U=SDwRo`i4Xq0K3-KduJ?1QCugM&(=Jc1PKHKZroAh6 iww}E&pdb+VfT#Rvk;1n_!fSwuh{4m<&t;ucLK6UUo(B^E literal 0 HcmV?d00001 diff --git a/webapp/src/main/webapp/themes/iph/images/print-icon.png b/webapp/src/main/webapp/themes/iph/images/print-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e0c8df749424142054d39eb3d647466d079d2faa GIT binary patch literal 654 zcmV;90&)F`P)P000>X1^@s6#OZ}&00006VoOIv0RI60 z0RN!9r;`8x010qNS#tmY3ljhU3ljkVnw%H_000McNliru4c79?$msu9Hl2G`&cTt%P)i(rCgO3*3SM8$F@NR}>@C?+ISgOi{Ol!6hssJH}^ zIJ$U?hkRH__{wP*Yy+J`V&@CJ3624nb>Ia&f-x`y%0WI6Pf#9nWoX^bDNQV+jRZv~ zFpZ@atb%8tDIY)ua888J7V%W17o1UOTu%Ex^E=g_oN&~n<7 zXlL|@5|Pxv5NHQVpxx0Ar4N0}F28u<`^l9j*g<=e1ssQTv5Z!Cd*B$Pfp%vD_*>1< z6w@#CCTIp1pp*D+bU&B{MobaC17j|s&#@{%U8qy(QhZzJN)QubdNBHYe?JC^Iq>r4 zVq}O4wke>_oFcz?Q3AHW6ub$Q1EX~)i_@% literal 0 HcmV?d00001 diff --git a/webapp/src/main/webapp/themes/iph/images/save-icon.png b/webapp/src/main/webapp/themes/iph/images/save-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..917b772b50913c10aaab5e7e7dea4e345eab528e GIT binary patch literal 532 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 delta 1642 zcmV-w29^2L3Wp6LiBL{Q4GJ0x0000DNk~Le0000U0000U2nGNE06Q?QqLCpoe*+RW zE9FY+ga7~r6iGxuR7efgR%>ijMHHTyyLY?0-L|`1L?RD~3JK8yi7kjg?Y0Gznn;Yl ze8t2^j98v61uU;p*0x&;g@7?8kVZg$s0j)fLLao25!$c-??RtVQo15e+BGaN~~0M7I8wCQ$}3?NQ!}k3Fmh>;YWJ>U1dAIA-zMv z|1t2k`6Stv;;bNquAm5aSmJ=@ypAbaVR4(k&nP1q7vr7pSnP0GY}Rd*f3j6EP?c!f zMSvV8gtx+u245x< zH~Ej%w=0eADdyu$VkUskhhsu!E-}&jbEe77O&#Ho0KX^T@`a8x*(_~>twQL^0+VaJ zE*y!jdbcHTM;H{;cr6rsf9gTrCQ*|GMOcW)3C715W4`BR+b*2^ImpKiyd{g+Y<6oo zK-a*wt_RQ${Ytd3>};T4M>KqzI--#UvU0|pW=TcVPl&Wr!tH99oI2gE1VkFfq_PE0 zdrF$K0-&qo!d%l1bOqJrp0<>j&l(zJA>vr(@Y?(u%viuT^zk?2%&X`m^ z$?SYJzHef-Jk)rWzUJfx&ix-^J|b|{qBLsKI@pD4W705UIx7LZYc`=_lDyP;pTkp? zW1Y0aU|IUFrVm5Ba9Z}=oC}Q zTC?kEt7C0L_YKr`50w4F0QPcKiSMt@bq))TcXz2P+?2kl=w-n;zH2ZLq1ixt}Km`y#URMZQbOmwk3l_4y|nP z$J%6w(vYQSgalQ&Q>Ic${s5^f(3zZz|45rDi5x6$2>3Q-+svu5Mf{cZh?>R}Z{o!& ze^0dp54?3!i6)GVF&P9bWUF&hXA+ZXH{33O1K{vp+`%nq)~i@Jz;a_Azrk*Cu5OL^ zf_0^rLgNM%IClXHW>vm@Iwj_Pm_9QAF1SP(7Nv=or<1Gd`WyYq$9un4#;mC@V5DJz zg+Nt)$^^zuJMh%J2ylB$3Bhx5EnX&?Kw4hX <#include "individual-adminPanel.ftl">
+
<#if relatedSubject??>

${relatedSubject.relatingPredicateDomainPublic} ${i18n().for} ${relatedSubject.name}

← ${i18n().return_to(relatedSubject.name)}

@@ -64,20 +65,22 @@ ${scripts.add('')} ${scripts.add('')} ${scripts.add('')} +${scripts.add('')} <#import "individual-qrCodeGenerator.ftl" as qr> <#import "lib-vivo-properties.ftl" as vp> <#include "text-lib.ftl"> @@ -121,8 +122,9 @@ ${scripts.add('')} ${scripts.add('')} ${scripts.add('')} +${scripts.add('')} <#import "individual-qrCodeGenerator.ftl" as qr> <#import "lib-vivo-properties.ftl" as vp> <#include "text-lib.ftl"> diff --git a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl index 50406beb..94527392 100644 --- a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl @@ -5,5 +5,6 @@
<#include "customsearchpanel.ftl" > +
diff --git a/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl b/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl index fad4c505..b29362e1 100644 --- a/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl @@ -184,7 +184,7 @@ <#macro expandSwitch>
-
From f5b8d7d43dcb0b26c9b5470686b93e0313939fd4 Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Mon, 8 Mar 2021 16:10:40 +0100 Subject: [PATCH 045/150] Modified right menu styles. --- .../webapp/themes/iph/images/arrow-down-small.png | Bin 0 -> 318 bytes .../main/webapp/themes/iph/images/small-dot.png | Bin 0 -> 191 bytes webapp/src/main/webapp/themes/iph/js/toc.js | 6 +++++- .../webapp/themes/iph/templates/rightPanel.ftl | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 webapp/src/main/webapp/themes/iph/images/arrow-down-small.png create mode 100644 webapp/src/main/webapp/themes/iph/images/small-dot.png diff --git a/webapp/src/main/webapp/themes/iph/images/arrow-down-small.png b/webapp/src/main/webapp/themes/iph/images/arrow-down-small.png new file mode 100644 index 0000000000000000000000000000000000000000..6121c8da3fecfb21057ba3ecaead2fe42c11fa10 GIT binary patch literal 318 zcmeAS@N?(olHy`uVBq!ia0vp@K+M6x1|*f#O3wo+&H|6fVg?3oVGw3ym^DWND9BhG zj@C$VcfIKR93W`{P1kZ^(D;otwy^EA&sFkAQ{!#^FD zGp=W|HAQv{I(yD~7n{as!J@MN(N_-L8-Bm`F>YM->Z8}RO5+XR?lu-wEE5zvefskm z9iGeWEQ?NXRo^eY&Ez0)vmy13a$9Dhfzu+HiM8!5%6_vn44e65mmfC!(6{?Q_x-d)Y+Za>uI({B=J$Rp-6% hov)RPrDfl;EdMU@|G?VmM}g)uc)I$ztaD0e0syt9J5&Gw literal 0 HcmV?d00001 diff --git a/webapp/src/main/webapp/themes/iph/js/toc.js b/webapp/src/main/webapp/themes/iph/js/toc.js index 8200dc0e..d4d746bc 100644 --- a/webapp/src/main/webapp/themes/iph/js/toc.js +++ b/webapp/src/main/webapp/themes/iph/js/toc.js @@ -22,13 +22,17 @@ } function createTOCItem(docPart, tocElement){ var newTOCElement = document.createElement("div"); + var newTOCElementName = document.createElement("div"); var anchor = docPart.getAttribute('id'); var docPartButton = docPart.previousElementSibling; var itemName = docPartButton.textContent; var link = document.createElement("a"); link.setAttribute("href", "javascript:goToDocumentPart(\"" + anchor + "\");" ); link.innerText = itemName; - newTOCElement.appendChild(link); + newTOCElement.appendChild(newTOCElementName); + newTOCElementName.appendChild(link); + newTOCElement.className = "tocElement"; + newTOCElementName.className = "tocElementName"; tocElement.appendChild(newTOCElement); return newTOCElement; } diff --git a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl index 94527392..e7aee1b5 100644 --- a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl @@ -5,6 +5,8 @@
<#include "customsearchpanel.ftl" > -
+
+
Содержание
+
From 6b2b1be952ab3c283898fe00ed94fcbb2cb12d6d Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Mon, 8 Mar 2021 19:03:12 +0100 Subject: [PATCH 046/150] Added expand button for articles metadata. --- webapp/src/main/webapp/themes/iph/css/iph.css | 48 +++++++++++++++++++ .../themes/iph/templates/elenphAritcle.ftl | 9 ++-- 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index 9e3dca9a..7e749f0e 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -2324,6 +2324,7 @@ span.subclassExpandMinus { font-size: 1.2rem; font-weight: bold; padding-bottom: 10px; + margin-top: 10px; } /* -------------------------------------------------> */ /* ARTICLESTYLES --------------------------------> */ @@ -2356,6 +2357,11 @@ button.collapsible { padding-left: 40px !important; font-family: "IPH Astra Serif"; font-size: 1.4rem !important; + cursor: pointer; + padding: 18px; + width: 100%; + text-align: left; + border: none; } button.collapsible:visited { -webkit-appearance: none; @@ -2703,6 +2709,7 @@ button.collapsible.active { } #individual-intro.person #individual-info { width:87%; + margin-bottom: 0px; } #share-contact { width: 11%; @@ -2773,6 +2780,47 @@ span.iconControlsNotEditable { all: unset; } +#tocPlaceHolder { + margin-top: 10px; + border: 1px solid #8B4513; +} +#tocName { + text-align: center; + font-family: "Roboto"; + font-size: 1.2rem; + border-bottom: 1px solid #8B4513; + padding-top: 5px; + padding-bottom: 5px; +} +.tocElementName a { + +} +.tocElement >div.tocElement { + padding-left: 20px; + background-color: #ffffff; +} +.tocElement >div.tocElement >div.tocElementName { + padding-left: 12px; + background-image: none; + margin-left: 0px; +} +#tocPlaceHolder >div { + background-color: #F6F6F6; +} +#tocPlaceHolder a { + font-family: "Roboto"; + font-size: 1rem; +} +.tocElementName { + background-image: url(../images/arrow-down-small.png); + background-repeat: no-repeat; + background-position: left center; + padding-left: 25px; + margin-left: 8px; + padding-top: 5px; + padding-bottom: 5px; +} + /* -------------------------------------------------> */ /* FONTS --------------------------------> */ /* -------------------------------------------------> */ diff --git a/webapp/src/main/webapp/themes/iph/templates/elenphAritcle.ftl b/webapp/src/main/webapp/themes/iph/templates/elenphAritcle.ftl index 875aa1a1..437a8ced 100644 --- a/webapp/src/main/webapp/themes/iph/templates/elenphAritcle.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/elenphAritcle.ftl @@ -109,11 +109,14 @@ ${scripts.add(' <#include "identity.ftl"> <#include "menu.ftl"> From b7d6345338f1d994a68a52e1a2cd94d0d7fa86fa Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Wed, 10 Mar 2021 12:43:34 +0100 Subject: [PATCH 048/150] Added expand and collapse buttons. --- webapp/src/main/webapp/themes/iph/css/iph.css | 49 +++++++++++++++---- .../themes/iph/images/all-toc-collapse.svg | 6 +++ .../themes/iph/images/all-toc-expand.svg | 6 +++ .../themes/iph/images/arrow-down-small.svg | 3 ++ .../themes/iph/images/arrow-top-small.svg | 3 ++ webapp/src/main/webapp/themes/iph/js/toc.js | 4 +- .../themes/iph/templates/rightPanel.ftl | 10 +++- 7 files changed, 69 insertions(+), 12 deletions(-) create mode 100644 webapp/src/main/webapp/themes/iph/images/all-toc-collapse.svg create mode 100644 webapp/src/main/webapp/themes/iph/images/all-toc-expand.svg create mode 100644 webapp/src/main/webapp/themes/iph/images/arrow-down-small.svg create mode 100644 webapp/src/main/webapp/themes/iph/images/arrow-top-small.svg diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index 7e749f0e..02ccb641 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -2789,18 +2789,52 @@ span.iconControlsNotEditable { font-family: "Roboto"; font-size: 1.2rem; border-bottom: 1px solid #8B4513; - padding-top: 5px; - padding-bottom: 5px; + padding-top: 7px; + padding-bottom: 7px; } -.tocElementName a { - +#wrapperTocButtons { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + font-size: 1rem; + font-family: "Roboto"; + padding-top: 10px; + padding-bottom: 10px; + border-bottom: 1px dashed #8B4513; + color: #000000; + background-color: #ffffff!important; +} +#tocExpandAll:hover { + cursor: pointer; + color: #8B4513; +} +#tocCollapseAll:hover { + cursor: pointer; + color: #8B4513; +} +#tocExpandImageAll { + float: left; + padding-left: 10px; + padding-right: 10px; + padding-top: 2px; +} +#tocCollapseImageAll { + padding-left: 10px; + padding-right: 10px; + padding-top: 2px; + float: right; +} +.tocElementSwitchImage { + padding-right: 10px; + cursor: pointer; } .tocElement >div.tocElement { padding-left: 20px; background-color: #ffffff; } .tocElement >div.tocElement >div.tocElementName { - padding-left: 12px; + padding-left: 14px; background-image: none; margin-left: 0px; } @@ -2812,10 +2846,7 @@ span.iconControlsNotEditable { font-size: 1rem; } .tocElementName { - background-image: url(../images/arrow-down-small.png); - background-repeat: no-repeat; - background-position: left center; - padding-left: 25px; + padding-left: 5px; margin-left: 8px; padding-top: 5px; padding-bottom: 5px; diff --git a/webapp/src/main/webapp/themes/iph/images/all-toc-collapse.svg b/webapp/src/main/webapp/themes/iph/images/all-toc-collapse.svg new file mode 100644 index 00000000..f2f6f449 --- /dev/null +++ b/webapp/src/main/webapp/themes/iph/images/all-toc-collapse.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/webapp/src/main/webapp/themes/iph/images/all-toc-expand.svg b/webapp/src/main/webapp/themes/iph/images/all-toc-expand.svg new file mode 100644 index 00000000..fd8c4338 --- /dev/null +++ b/webapp/src/main/webapp/themes/iph/images/all-toc-expand.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/webapp/src/main/webapp/themes/iph/images/arrow-down-small.svg b/webapp/src/main/webapp/themes/iph/images/arrow-down-small.svg new file mode 100644 index 00000000..e470467a --- /dev/null +++ b/webapp/src/main/webapp/themes/iph/images/arrow-down-small.svg @@ -0,0 +1,3 @@ + + + diff --git a/webapp/src/main/webapp/themes/iph/images/arrow-top-small.svg b/webapp/src/main/webapp/themes/iph/images/arrow-top-small.svg new file mode 100644 index 00000000..4a9456ed --- /dev/null +++ b/webapp/src/main/webapp/themes/iph/images/arrow-top-small.svg @@ -0,0 +1,3 @@ + + + diff --git a/webapp/src/main/webapp/themes/iph/js/toc.js b/webapp/src/main/webapp/themes/iph/js/toc.js index 6a400d0f..81f02a10 100644 --- a/webapp/src/main/webapp/themes/iph/js/toc.js +++ b/webapp/src/main/webapp/themes/iph/js/toc.js @@ -73,7 +73,7 @@ } $.extend(this, urlsBase); var imgElement = nameContainer.firstElementChild; - imgElement.src = urlsBase + "/themes/iph/images/save.svg"; + imgElement.src = urlsBase + "/themes/iph/images/arrow-top-small.svg"; } @@ -86,7 +86,7 @@ } $.extend(this, urlsBase); var imgElement = nameContainer.firstElementChild; - imgElement.src = urlsBase + "/themes/iph/images/print.svg"; + imgElement.src = urlsBase + "/themes/iph/images/arrow-down-small.svg"; } diff --git a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl index e7aee1b5..a6e2ec50 100644 --- a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl @@ -5,8 +5,16 @@
<#include "customsearchpanel.ftl" > -
+
From 975a778b0473ec00e9243260859dab370c5ea67c Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Wed, 10 Mar 2021 19:58:51 +0100 Subject: [PATCH 049/150] Made rubric list collapsible --- .../themes/iph/js/collapsible_elements.js | 41 +++++++++++++++---- .../themes/iph/templates/compilation.ftl | 7 +--- .../themes/iph/templates/elenphAritcle.ftl | 7 +--- .../webapp/themes/iph/templates/text-lib.ftl | 16 ++++---- 4 files changed, 43 insertions(+), 28 deletions(-) diff --git a/webapp/src/main/webapp/themes/iph/js/collapsible_elements.js b/webapp/src/main/webapp/themes/iph/js/collapsible_elements.js index 13b308a7..98a3aa25 100644 --- a/webapp/src/main/webapp/themes/iph/js/collapsible_elements.js +++ b/webapp/src/main/webapp/themes/iph/js/collapsible_elements.js @@ -5,17 +5,40 @@ function addCollapsibleOnClick() { var coll = document.getElementsByClassName("collapsible"); var i; for (i = 0; i < coll.length; i++) { - coll[i].addEventListener("click", function() { - this.classList.toggle("active"); - var content = this.nextElementSibling; - if (content.style.display === "block") { - content.style.display = "none"; - } else { - content.style.display = "block"; - } - }); + var collapsibleLink = coll[i].querySelector('.collapsibleLink'); + if (collapsibleLink === null){ + collapseNextElementOnClick(coll[i]); + } else { + collapseNextOuterElementOnClick(collapsibleLink); + } + } } + +function collapseNextOuterElementOnClick(element){ + element.addEventListener("click", function() { + this.classList.toggle("active"); + var content = this.parentElement.nextElementSibling; + if (content.style.display === "block") { + content.style.display = "none"; + } else { + content.style.display = "block"; + } + }); +} + +function collapseNextElementOnClick(element){ + element.addEventListener("click", function() { + this.classList.toggle("active"); + var content = this.nextElementSibling; + if (content.style.display === "block") { + content.style.display = "none"; + } else { + content.style.display = "block"; + } + }); +} + function applyExpandSettings() { if (localStorage.getItem('switchExpand') === true || localStorage.getItem('switchExpand') === 'true') { var expandSwitchCB = document.getElementById("expandCB"); diff --git a/webapp/src/main/webapp/themes/iph/templates/compilation.ftl b/webapp/src/main/webapp/themes/iph/templates/compilation.ftl index c5ccdef0..4606b758 100644 --- a/webapp/src/main/webapp/themes/iph/templates/compilation.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/compilation.ftl @@ -122,8 +122,6 @@ ${scripts.add('')} ${scripts.add('')} +${scripts.add('')} <#-- Individual profile page template for foaf:Person individuals --> diff --git a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl index a6e2ec50..4dc8a838 100644 --- a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl @@ -1,6 +1,6 @@
- +
diff --git a/webapp/src/main/webapp/themes/iph/templates/rubric.ftl b/webapp/src/main/webapp/themes/iph/templates/rubric.ftl index 70ce7bd8..a4b5eb3b 100644 --- a/webapp/src/main/webapp/themes/iph/templates/rubric.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/rubric.ftl @@ -2,6 +2,7 @@ <#include "individual-setup.ftl"> ${scripts.add('')} +${scripts.add('')}
diff --git a/webapp/src/main/webapp/themes/iph/templates/rubrics.ftl b/webapp/src/main/webapp/themes/iph/templates/rubrics.ftl index 38364c94..60c48ed7 100644 --- a/webapp/src/main/webapp/themes/iph/templates/rubrics.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/rubrics.ftl @@ -1,4 +1,5 @@ ${scripts.add('')} +${scripts.add('')} <#list rubrics as rubric> <#if !rubric.parentUri??> From 5d884b22fe38ada0fca82b79367d576185af9c0c Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Thu, 11 Mar 2021 13:15:34 +0100 Subject: [PATCH 052/150] Fixed padding top on article title. --- webapp/src/main/webapp/themes/iph/css/iph.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index 7a561ed6..929ce0ac 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -2867,7 +2867,10 @@ span.iconControlsNotEditable { padding-top: 5px; padding-bottom: 5px; } - +.display-title-editable { + font-size: 1.15em!important; + padding-top: 12px; +} /* -------------------------------------------------> */ /* FONTS --------------------------------> */ /* -------------------------------------------------> */ From aaa5b644a654f50a8a0d1bcb217652a2f9c5442a Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Thu, 11 Mar 2021 14:16:47 +0100 Subject: [PATCH 053/150] Added images for buttons. --- webapp/src/main/webapp/themes/iph/css/iph.css | 22 +++++++++++++------ .../themes/iph/images/arrow-down-big.svg | 3 +++ .../themes/iph/images/arrow-top-big.svg | 3 +++ 3 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 webapp/src/main/webapp/themes/iph/images/arrow-down-big.svg create mode 100644 webapp/src/main/webapp/themes/iph/images/arrow-top-big.svg diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index 929ce0ac..5bb6361a 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -2684,12 +2684,6 @@ button.collapsible.active { .parentRubric >li { margin-bottom: 8px; } -#wrapper-content >div.label { - font-family: "IPH Astra Serif"; - font-size: 1.2rem; - margin-bottom: 4px; - color: #8B4513; -} .childRubric { font-family: "IPH Astra Serif"; font-size: 1.2rem; @@ -2724,7 +2718,7 @@ button.collapsible.active { } #individual-intro.person #individual-info { width:87%; - margin-bottom: 0px; + margin-bottom: 10px; } #share-contact { width: 11%; @@ -2871,6 +2865,20 @@ span.iconControlsNotEditable { font-size: 1.15em!important; padding-top: 12px; } +.collapsibleLink { + font-family: "IPH Astra Serif"; + font-size: 1.3rem; + cursor: pointer; +} +.collapsibleLink:hover { + color: #8B4513; +} +.label.collapsible { + padding-top: 10px; + padding-right: 10px; + padding-bottom: 10px; + border-bottom: 1px dashed #9C9C9C; +} /* -------------------------------------------------> */ /* FONTS --------------------------------> */ /* -------------------------------------------------> */ diff --git a/webapp/src/main/webapp/themes/iph/images/arrow-down-big.svg b/webapp/src/main/webapp/themes/iph/images/arrow-down-big.svg new file mode 100644 index 00000000..e470467a --- /dev/null +++ b/webapp/src/main/webapp/themes/iph/images/arrow-down-big.svg @@ -0,0 +1,3 @@ + + + diff --git a/webapp/src/main/webapp/themes/iph/images/arrow-top-big.svg b/webapp/src/main/webapp/themes/iph/images/arrow-top-big.svg new file mode 100644 index 00000000..4a9456ed --- /dev/null +++ b/webapp/src/main/webapp/themes/iph/images/arrow-top-big.svg @@ -0,0 +1,3 @@ + + + From 836fd45f3c9a9360e34f0c65d7cb8c66726c1bf8 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Thu, 11 Mar 2021 14:46:36 +0100 Subject: [PATCH 054/150] Improved collapsible element --- .../src/main/webapp/themes/iph/js/collapsible_elements.js | 7 ++++--- webapp/src/main/webapp/themes/iph/templates/text-lib.ftl | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/webapp/src/main/webapp/themes/iph/js/collapsible_elements.js b/webapp/src/main/webapp/themes/iph/js/collapsible_elements.js index 98a3aa25..f46de148 100644 --- a/webapp/src/main/webapp/themes/iph/js/collapsible_elements.js +++ b/webapp/src/main/webapp/themes/iph/js/collapsible_elements.js @@ -9,15 +9,16 @@ function addCollapsibleOnClick() { if (collapsibleLink === null){ collapseNextElementOnClick(coll[i]); } else { - collapseNextOuterElementOnClick(collapsibleLink); + expandableNextOuterElementOnClick(collapsibleLink); } } } -function collapseNextOuterElementOnClick(element){ +function expandableNextOuterElementOnClick(element){ element.addEventListener("click", function() { - this.classList.toggle("active"); + this.parentElement.classList.toggle("expanded"); + this.parentElement.classList.toggle("collapsed"); var content = this.parentElement.nextElementSibling; if (content.style.display === "block") { content.style.display = "none"; diff --git a/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl b/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl index 102c3adb..89d2f111 100644 --- a/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl @@ -37,14 +37,14 @@ <#macro documentRubrics > <#assign docRubrics = propertyGroups.pullProperty("https://iph.ras.ru/relationships#belongsTo")!> <#if ( docRubrics?? && docRubrics?has_content ) || (rubrics?? && rubrics?has_content)> -
+
<#if docRubrics?? && docRubrics?has_content > <@p.addLink docRubrics editable /> <@p.verboseDisplay docRubrics />
<#if rubrics?? && rubrics?has_content> -
+
<#list rubrics as rubric>
  • ${rubric.rubricName} From 844734824aa5bac94aaf394e4482081c852f3ad3 Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Thu, 11 Mar 2021 19:30:33 +0100 Subject: [PATCH 055/150] Modified collapse/expande button style and hided right block on result search page. --- webapp/src/main/webapp/themes/iph/css/iph.css | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index 5bb6361a..6b5780ae 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -537,11 +537,6 @@ ul#header-nav { /* margin-right: 13px; */ font-size: 1.1rem; } - -.collapsible { - margin-top: 10pxl; -} - ul#header-nav li { float: left; display: block; @@ -2879,6 +2874,26 @@ span.iconControlsNotEditable { padding-bottom: 10px; border-bottom: 1px dashed #9C9C9C; } +.collapsible.collapsed { + background-image: url(../images/arrow-down-big.svg); + background-repeat: no-repeat; + background-position: 1% 50%; + padding: 18px 18px 18px 40px; + cursor: pointer; +} +.collapsible.expanded { + background-image: url(../images/arrow-top-big.svg); + background-repeat: no-repeat; + background-position: 1% 50%; + padding: 18px 18px 18px 40px; + cursor: pointer; +} +.searchTOC { + display: none; +} +span#searchHelp { + display: none; +} /* -------------------------------------------------> */ /* FONTS --------------------------------> */ /* -------------------------------------------------> */ From 7352adc7250d2d1413492e99d547563d7c335e21 Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Thu, 11 Mar 2021 19:42:11 +0100 Subject: [PATCH 056/150] Fixed page result pagination styles. --- webapp/src/main/webapp/themes/iph/css/iph.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index 6b5780ae..1d0a7c33 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -2894,6 +2894,19 @@ span.iconControlsNotEditable { span#searchHelp { display: none; } +.searchpages >span { + font-size: 1.2rem; + font-family: "IPH Astra Serif"; + background-color: #FDF5E6; + padding: 0 0.4em; + border-radius: 3px; + margin-left: 0px; + margin-right: 0px; +} +.searchpages a { + margin-left: 0.3em; + margin-right: 0.3em; +} /* -------------------------------------------------> */ /* FONTS --------------------------------> */ /* -------------------------------------------------> */ From e76bff14305e9d352b2aedbed6aa62a8d7b9997b Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Thu, 11 Mar 2021 19:51:38 +0100 Subject: [PATCH 057/150] Added page result pagination border. --- webapp/src/main/webapp/themes/iph/css/iph.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index 1d0a7c33..add7d717 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -2525,11 +2525,14 @@ button.collapsible.metadataRubrics.active { } .excerptSearchResult { margin-top: 15px; + font-family: "IPH Astra Serif"; + font-style: normal; + font-size: 1.4rem; } .excerptSearchResult >a { font-family: IPH Astra Serif; font-style: normal; - font-size: 1.2rem; + font-size: 1.4rem; } .excerptSearchResult >a:hover { color: #8B4513; @@ -2907,6 +2910,13 @@ span#searchHelp { margin-left: 0.3em; margin-right: 0.3em; } +p.snippet { + font-size: 1.1rem; +} +.searchpages { + border-top: 1px solid #dde4e3; + padding-top: 20px; +} /* -------------------------------------------------> */ /* FONTS --------------------------------> */ /* -------------------------------------------------> */ From e31b92fae2145d27cabb455a0bac5b987847c9d2 Mon Sep 17 00:00:00 2001 From: Svetlana Rastegina Date: Thu, 11 Mar 2021 21:32:07 +0100 Subject: [PATCH 058/150] Fixed expand button style and metadata content style. --- webapp/src/main/webapp/themes/iph/css/iph.css | 31 ++++++++++++++++--- .../webapp/themes/iph/templates/text-lib.ftl | 2 +- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index add7d717..b79ef71c 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -151,9 +151,12 @@ input.form-control { input.block { margin-bottom: 20px; } -label { +.label { margin-top: .5em; margin-bottom: .5em; + font-size: 1.2rem; + font-family: "IPH Astra Serif"; + color: #000000; } label.inline { display: inline; @@ -2878,18 +2881,25 @@ span.iconControlsNotEditable { border-bottom: 1px dashed #9C9C9C; } .collapsible.collapsed { + padding: 18px 18px 18px 10px; +} +.collapsible.collapsed >div.collapsibleLink { background-image: url(../images/arrow-down-big.svg); background-repeat: no-repeat; - background-position: 1% 50%; - padding: 18px 18px 18px 40px; + background-position: left center; cursor: pointer; + padding-left: 30px; } .collapsible.expanded { + padding: 18px 18px 18px 10px; + border-bottom: 1px solid #dde4e3; +} +.collapsible.expanded >div.collapsibleLink { background-image: url(../images/arrow-top-big.svg); background-repeat: no-repeat; - background-position: 1% 50%; - padding: 18px 18px 18px 40px; + background-position: left center; cursor: pointer; + padding-left: 30px; } .searchTOC { display: none; @@ -2917,6 +2927,17 @@ p.snippet { border-top: 1px solid #dde4e3; padding-top: 20px; } +.expandedContent { + padding-left: 20px; + padding-top: 10px; + margin-bottom: 10px; + padding-bottom: 5px; +} +.expandedContent a { + font-family: "IPH Astra Serif"; + font-size: 1.2rem; + padding-bottom: 2px; +} /* -------------------------------------------------> */ /* FONTS --------------------------------> */ /* -------------------------------------------------> */ diff --git a/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl b/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl index 89d2f111..3c6e2b0b 100644 --- a/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/text-lib.ftl @@ -44,7 +44,7 @@
  • <#if rubrics?? && rubrics?has_content> -
    + <#include "customsearchpanel.ftl" >