From 0e1614a31ae0548bb5d83afccc7186ac0255e5db Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Wed, 3 Mar 2021 16:15:03 +0100 Subject: [PATCH] Refactoring document structure --- .../everytime/compilationDataGetters.n3 | 12 +-- .../everytime/elenphArticleDataGetters.n3 | 12 +-- .../themes/iph/templates/compilation.ftl | 77 +------------------ .../themes/iph/templates/elenphAritcle.ftl | 71 +---------------- .../webapp/themes/iph/templates/text-lib.ftl | 61 +++++++++++++++ 5 files changed, 75 insertions(+), 158 deletions(-) diff --git a/home/src/main/resources/rdf/display/everytime/compilationDataGetters.n3 b/home/src/main/resources/rdf/display/everytime/compilationDataGetters.n3 index eb0564b6..c09ddb08 100644 --- a/home/src/main/resources/rdf/display/everytime/compilationDataGetters.n3 +++ b/home/src/main/resources/rdf/display/everytime/compilationDataGetters.n3 @@ -74,11 +74,11 @@ display:getCompilationBibliographyDataGetter PREFIX rdfs: PREFIX ts_: PREFIX rdf: - SELECT DISTINCT ?bibliography ?elenphExcerpt + SELECT DISTINCT ?bibliography ?excerpt WHERE { ?individualURI ts_:hasTOC ?toc . - ?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . - ?elenphExcerpt ts_:bibliography ?bibliography . + ?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?excerpt . + ?excerpt ts_:bibliography ?bibliography . } ORDER BY ?bibliography """ . @@ -90,11 +90,11 @@ display:getCompilationWorksDataGetter PREFIX rdfs: PREFIX ts_: PREFIX rdf: - SELECT DISTINCT ?works ?elenphExcerpt + SELECT DISTINCT ?works ?excerpt WHERE { ?individualURI ts_:hasTOC ?toc . - ?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . - ?elenphExcerpt ts_:works ?works . + ?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?excerpt . + ?excerpt ts_:works ?works . } ORDER BY ?works """ . diff --git a/home/src/main/resources/rdf/display/everytime/elenphArticleDataGetters.n3 b/home/src/main/resources/rdf/display/everytime/elenphArticleDataGetters.n3 index 8a801c4e..2f52a5a9 100644 --- a/home/src/main/resources/rdf/display/everytime/elenphArticleDataGetters.n3 +++ b/home/src/main/resources/rdf/display/everytime/elenphArticleDataGetters.n3 @@ -75,11 +75,11 @@ display:getArticleBibliographyDataGetter PREFIX rdfs: PREFIX ts_: PREFIX rdf: - SELECT DISTINCT ?bibliography ?elenphExcerpt + SELECT DISTINCT ?bibliography ?excerpt WHERE { ?individualURI ts_:hasTOC ?toc . - ?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . - ?elenphExcerpt ts_:bibliography ?bibliography . + ?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?excerpt . + ?excerpt ts_:bibliography ?bibliography . } ORDER BY ?bibliography """ . @@ -91,11 +91,11 @@ display:getArticleWorksDataGetter PREFIX rdfs: PREFIX ts_: PREFIX rdf: - SELECT DISTINCT ?works ?elenphExcerpt + SELECT DISTINCT ?works ?excerpt WHERE { ?individualURI ts_:hasTOC ?toc . - ?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?elenphExcerpt . - ?elenphExcerpt ts_:works ?works . + ?toc (ts_:hasTOCItem/ts_:pointsTo)+/ts_:hasText ?excerpt . + ?excerpt ts_:works ?works . } ORDER BY ?works """ . diff --git a/webapp/src/main/webapp/themes/iph/templates/compilation.ftl b/webapp/src/main/webapp/themes/iph/templates/compilation.ftl index 4ea7b81a..f8696875 100644 --- a/webapp/src/main/webapp/themes/iph/templates/compilation.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/compilation.ftl @@ -150,82 +150,7 @@ ${scripts.add('