Skip to content

Commit

Permalink
Submodule update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Sep 25, 2019
1 parent b03167d commit 355cdd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions classes/DOCXConverterDocument.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function __construct(DOCXArchive $docxArchive)
parent::__construct($docxArchive);
$this->xpath = new DOMXPath($this);

$this->cleanXml();
$this->removeTableParagraphs();
$this->stripExternalLinks();
}
Expand Down Expand Up @@ -128,13 +127,6 @@ public function setDocumentMeta(Request $reguest, Submission $submission) {
// TODO convert abstract from HTML to JATS to be displayed by Texture
}

private function cleanXml() {
$nodesToRemove = $this->xpath->query("//body//*[not(normalize-space()) and not(.//@*)]");
foreach ($nodesToRemove as $nodeToRemove) {
$nodeToRemove->parentNode->removeChild($nodeToRemove);
}
}

private function removeTableParagraphs() {
$cellParagraphs = $this->xpath->query("//td/p|//th/p");
foreach ($cellParagraphs as $cellParagraph) {
Expand Down

0 comments on commit 355cdd6

Please sign in to comment.