diff --git a/src/Service/CommonTransformService.php b/src/Service/CommonTransformService.php index 468d456dc91a821628fb750aaddb91c731b6e8df..86412e92cc42496b98b0213be0a93837d2c68f7d 100644 --- a/src/Service/CommonTransformService.php +++ b/src/Service/CommonTransformService.php @@ -110,6 +110,13 @@ class CommonTransformService return $shouldTransform; } + protected function handleAddrLine(DOMElement $teiEl, HTMLDocument $doc): DOMNode + { + $htmlEl = $doc->p(); + + return $htmlEl; + } + protected function handlePb(DOMElement $el, HTMLDocument $doc): DOMNode { $graphics = $this->graphics; diff --git a/src/Service/EditedTextService.php b/src/Service/EditedTextService.php index 8650b621722db6825d06c19e093893770b29f980..e89e3ea857ecdb6357f577fd895bdedfabc3a026 100644 --- a/src/Service/EditedTextService.php +++ b/src/Service/EditedTextService.php @@ -79,6 +79,14 @@ class EditedTextService extends CommonTransformService return $this->allAnnotationIds; } + protected function handleDateline(DOMElement $teiEl, HTMLDocument $doc): DOMNode + { + $htmlEl = $doc->p(); + $htmlEl->setAttribute('class', 'inline'); + + return $htmlEl; + } + protected function handleBibl(DOMNode $teiEl, HTMLDocument $doc): ?DOMNode { if ($teiEl->hasChildNodes() && 'ref' === $teiEl->childNodes[0]->nodeName) { diff --git a/src/Service/TranscriptionService.php b/src/Service/TranscriptionService.php index 6c0662a47a1bb7a856fbf3444976876916a79ef1..5a305ec8300258fa04d995617a92e1b4ce56073d 100644 --- a/src/Service/TranscriptionService.php +++ b/src/Service/TranscriptionService.php @@ -62,6 +62,14 @@ class TranscriptionService extends CommonTransformService { return $doc->span(); } + + protected function handleDateline(DOMElement $teiEl, HTMLDocument $doc): DOMNode + { + $htmlEl = $doc->p(); + $htmlEl->setAttribute('class', 'inline'); + + return $htmlEl; + } protected function handleAdd(DOMElement $teiEl, HTMLDocument $doc): ?DOMNode {