Fixed margin top lists on search result page.

Rename prefix
This commit is contained in:
Svetlana Rastegina 2021-02-26 20:42:17 +01:00 committed by Georgy Litvinov
parent 55f925de2e
commit 2033013a35
2 changed files with 40 additions and 32 deletions

View file

@ -10,14 +10,14 @@
:hasTargetField "ALLTEXT" ; :hasTargetField "ALLTEXT" ;
:hasSelectQuery """ :hasSelectQuery """
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ts_: <https://litvinovg.pro/text_structures#> PREFIX ts: <https://litvinovg.pro/text_structures#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?value SELECT DISTINCT ?value
WHERE { WHERE {
?uri rdf:type ts_:elenphArticle . ?uri rdf:type ts:elenphArticle .
?uri ts_:hasTOC ?toc . ?uri ts:hasTOC ?toc .
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . ?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?elenphExcerpt .
VALUES ?property { ts_:works ts_:bibliography ts_:htmlExcerpt ts_:keywords } VALUES ?property { ts:works ts:bibliography ts:htmlExcerpt ts:keywords }
?elenphExcerpt ?property ?value . ?elenphExcerpt ?property ?value .
} }
""" . """ .
@ -43,20 +43,20 @@
:hasTargetField "text" ; :hasTargetField "text" ;
:hasSelectQuery """ :hasSelectQuery """
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ts_: <https://litvinovg.pro/text_structures#> PREFIX ts: <https://litvinovg.pro/text_structures#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?htmlExcerpt SELECT DISTINCT ?htmlExcerpt
WHERE { WHERE {
{ {
?uri rdf:type ts_:textExcerpt . ?uri rdf:type ts:textExcerpt .
?uri ts_:htmlExcerpt ?htmlExcerpt . ?uri ts:htmlExcerpt ?htmlExcerpt .
} }
UNION UNION
{ {
?uri rdf:type ts_:publication . ?uri rdf:type ts:publication .
?uri ts_:hasTOC ?toc . ?uri ts:hasTOC ?toc .
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?artExcerpt . ?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?artExcerpt .
?artExcerpt ts_:htmlExcerpt ?htmlExcerpt . ?artExcerpt ts:htmlExcerpt ?htmlExcerpt .
} }
} }
""" . """ .
@ -68,21 +68,21 @@
:hasTargetField "rubrics" ; :hasTargetField "rubrics" ;
:hasSelectQuery """ :hasSelectQuery """
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ts_: <https://litvinovg.pro/text_structures#> PREFIX ts: <https://litvinovg.pro/text_structures#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX pr: <https://iph.ras.ru/relationships#> PREFIX pr: <https://iph.ras.ru/relationships#>
SELECT DISTINCT ?rubric SELECT DISTINCT ?rubric
WHERE { WHERE {
{ {
?uri rdf:type ts_:elenphExcerpt . ?uri rdf:type ts:elenphExcerpt .
?uri pr:belongsTo ?assignedRubric . ?uri pr:belongsTo ?assignedRubric .
?assignedRubric (pr:hasParent)* ?rubric . ?assignedRubric (pr:hasParent)* ?rubric .
} }
UNION UNION
{ {
?uri rdf:type ts_:elenphArticle . ?uri rdf:type ts:elenphArticle .
?uri ts_:hasTOC ?toc . ?uri ts:hasTOC ?toc .
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?artExcerpt . ?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?artExcerpt .
?artExcerpt pr:belongsTo ?assignedRubric . ?artExcerpt pr:belongsTo ?assignedRubric .
?assignedRubric (pr:hasParent)* ?rubric . ?assignedRubric (pr:hasParent)* ?rubric .
} }
@ -111,20 +111,20 @@
:hasTargetField "keywords" ; :hasTargetField "keywords" ;
:hasSelectQuery """ :hasSelectQuery """
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ts_: <https://litvinovg.pro/text_structures#> PREFIX ts: <https://litvinovg.pro/text_structures#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?keywords SELECT DISTINCT ?keywords
WHERE { WHERE {
{ {
?uri rdf:type ts_:elenphArticle . ?uri rdf:type ts:elenphArticle .
?uri ts_:hasTOC ?toc . ?uri ts:hasTOC ?toc .
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . ?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?elenphExcerpt .
?elenphExcerpt ts_:keywords ?keywords . ?elenphExcerpt ts:keywords ?keywords .
} }
UNION UNION
{ {
?uri rdf:type ts_:elenphExcerpt . ?uri rdf:type ts:elenphExcerpt .
?uri ts_:keywords ?keywords . ?uri ts:keywords ?keywords .
} }
} }
""" . """ .
@ -136,20 +136,20 @@
:hasTargetField "bibliography" ; :hasTargetField "bibliography" ;
:hasSelectQuery """ :hasSelectQuery """
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ts_: <https://litvinovg.pro/text_structures#> PREFIX ts: <https://litvinovg.pro/text_structures#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?bibliography SELECT DISTINCT ?bibliography
WHERE { WHERE {
{ {
?uri rdf:type ts_:elenphArticle . ?uri rdf:type ts:elenphArticle .
?uri ts_:hasTOC ?toc . ?uri ts:hasTOC ?toc .
?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . ?toc (ts:hasTOCItem/ts:pointsTo)+/ts:hasText ?elenphExcerpt .
?elenphExcerpt ts_:bibliography ?bibliography . ?elenphExcerpt ts:bibliography ?bibliography .
} }
UNION UNION
{ {
?uri rdf:type ts_:elenphExcerpt . ?uri rdf:type ts:elenphExcerpt .
?uri ts_:bibliography ?bibliography . ?uri ts:bibliography ?bibliography .
} }
} }
""" . """ .

View file

@ -2414,7 +2414,7 @@ button.collapsible.active:focus {
font-family: IPH Astra Serif; font-family: IPH Astra Serif;
font-style: italic; font-style: italic;
font-size: 1.2rem; font-size: 1.2rem;
margin-top: 10px;
} }
.virtualArticleWorks >div.virtualWorks >div.work { .virtualArticleWorks >div.virtualWorks >div.work {
background-image: url(../images/bullet_icon.png); background-image: url(../images/bullet_icon.png);
@ -2443,9 +2443,17 @@ button.collapsible.active:focus {
font-style: normal; font-style: normal;
font-size: 1.2rem; font-size: 1.2rem;
} }
.excerptSearchResult >a:hover {
color: #8B4513;
}
.virtualArticleBiblio >div.virtualBibliography { .virtualArticleBiblio >div.virtualBibliography {
margin-top: 10px; margin-top: 10px;
} }
.virtualArticleSwitch >label.switch {
font-family: IPH Astra Serif;
font-style: normal;
font-size: 1.2rem;
}
.virtualArticleBiblio >div.virtualBibliography >div.bibliography { .virtualArticleBiblio >div.virtualBibliography >div.bibliography {
background-image: url(../images/bullet_icon.png); background-image: url(../images/bullet_icon.png);
background-repeat: no-repeat; background-repeat: no-repeat;