diff --git a/Classes/Controller/ValidationFormController.php b/Classes/Controller/ValidationFormController.php index a504686076..ab59106d99 100644 --- a/Classes/Controller/ValidationFormController.php +++ b/Classes/Controller/ValidationFormController.php @@ -60,7 +60,7 @@ public function mainAction(): ResponseInterface } } - $this->view->assign("url", $siteLanguage->getBase()->getPath() . '?middleware=dlf/domDocumentValidation'); + $this->view->assign("url", $siteLanguage->getBase()->getPath() . '?middleware=dlf/dom-document-validation'); $this->view->assign("disabledValidators", $disabledValidators); return $this->htmlResponse(); } diff --git a/Classes/Middleware/DOMDocumentValidation.php b/Classes/Middleware/DOMDocumentValidation.php index 24d247a6dc..dfbae83f2d 100644 --- a/Classes/Middleware/DOMDocumentValidation.php +++ b/Classes/Middleware/DOMDocumentValidation.php @@ -70,7 +70,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface $parameters = $request->getQueryParams(); // Return if not this middleware - if (!isset($parameters['middleware']) || ($parameters['middleware'] != 'dlf/domDocumentValidation')) { + if (!isset($parameters['middleware']) || ($parameters['middleware'] != 'dlf/dom-document-validation')) { return $handler->handle($request); } diff --git a/Configuration/RequestMiddlewares.php b/Configuration/RequestMiddlewares.php index f328daa0f6..ca3997cd7a 100644 --- a/Configuration/RequestMiddlewares.php +++ b/Configuration/RequestMiddlewares.php @@ -24,13 +24,13 @@ 'typo3/cms-frontend/prepare-tsfe-rendering' ] ], - 'dlf/embedded3DViewer' => [ + 'dlf/embedded-3D-viewer' => [ 'target' => \Kitodo\Dlf\Middleware\Embedded3dViewer::class, 'after' => [ 'typo3/cms-frontend/prepare-tsfe-rendering' ] ], - 'dlf/domDocumentValidation' => [ + 'dlf/dom-document-validation' => [ 'target' => \Kitodo\Dlf\Middleware\DOMDocumentValidation::class, 'after' => [ 'typo3/cms-frontend/prepare-tsfe-rendering' diff --git a/Documentation/Developers/Validation.rst b/Documentation/Developers/Validation.rst index 7d10cf876d..4808df3fe3 100644 --- a/Documentation/Developers/Validation.rst +++ b/Documentation/Developers/Validation.rst @@ -71,7 +71,7 @@ To use the validator, the XSL Schematron must be available alongside the XSL pro DOMDocumentValidation Middleware ======= -``Kitodo\Dlf\Validation\DOMDocumentValidation`` middleware must be used by setting the ``middleware`` parameter to ``dlf/domDocumentValidation``. Additionally, the ``url`` parameter must contain the URL of the DOMDocument content to be validated, and the ``type`` parameter must specify the corresponding validation configuration type. +``Kitodo\Dlf\Validation\DOMDocumentValidation`` middleware must be used by setting the ``middleware`` parameter to ``dlf/dom-document-validation``. Additionally, the ``url`` parameter must contain the URL of the DOMDocument content to be validated, and the ``type`` parameter must specify the corresponding validation configuration type. .. _DOMDocumentValidation Middleware Configuration: