From a8730f979edb098428ff116a482a31ac55f370a4 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 11 Aug 2020 14:41:26 +0200 Subject: [PATCH] Remove empty text excerpts --- src/main/java/w2phtml/rdf/DocumentStructure.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/w2phtml/rdf/DocumentStructure.java b/src/main/java/w2phtml/rdf/DocumentStructure.java index 2525636..6730f96 100644 --- a/src/main/java/w2phtml/rdf/DocumentStructure.java +++ b/src/main/java/w2phtml/rdf/DocumentStructure.java @@ -258,7 +258,7 @@ public class DocumentStructure { if (docPart.isEmpty()) { return; } - if (docPart.getBody().isEmpty() && isMaster(element)) { + if (docPart.getBody().isEmpty()) { return; } Resource excerpt = createExcerpt(docPart); @@ -269,9 +269,6 @@ public class DocumentStructure { addMetadataProperties(excerpt,docPart.getMetadata()); } } - private boolean isMaster(Resource element) { - return element.getNameSpace().contains(TS + ELENPHARTICLE); - } public void createTree() { createElements();