From b3e93412bb95dc75881bad18299b38ac00a1697f Mon Sep 17 00:00:00 2001 From: Antoniafriedrich Date: Tue, 22 Oct 2024 15:57:45 +0200 Subject: [PATCH] MIR-1303 Add handling for non-validatable PDF documents --- .../config/mir/messages_de.properties | 8 +- .../config/mir/messages_en.properties | 8 +- .../xsl/metadata/mir-pdf-errorbox.xsl | 83 +++++++++++++------ 3 files changed, 68 insertions(+), 31 deletions(-) diff --git a/mir-module/src/main/resources/config/mir/messages_de.properties b/mir-module/src/main/resources/config/mir/messages_de.properties index 9d2b4797a4..072595f597 100644 --- a/mir-module/src/main/resources/config/mir/messages_de.properties +++ b/mir-module/src/main/resources/config/mir/messages_de.properties @@ -921,6 +921,8 @@ pdf.errorbox.button.info=Mehr Informationen pdf.errorbox.button.download=Herunterladen pdf.errorbox.conformity.level=Konformit\u00E4tstufe pdf.errorbox.unknown.error=Keine weiteren Informationen! -pdf.errorbox.clause="Paragraph" -pdf.errorbox.test="Test" -pdf.errorbox.specification="Spezifikation" +pdf.errorbox.clause=Paragraph +pdf.errorbox.test=Test +pdf.errorbox.no.conformity=Keine +pdf.errorbox.specification=Spezifikation +pdf.errorbox.validationerror.message=Leider konnte dieses Dokument aufgrund eines unbekannten Fehlers nicht validiert werden. diff --git a/mir-module/src/main/resources/config/mir/messages_en.properties b/mir-module/src/main/resources/config/mir/messages_en.properties index bed12b0ab5..2d9c64b9a0 100644 --- a/mir-module/src/main/resources/config/mir/messages_en.properties +++ b/mir-module/src/main/resources/config/mir/messages_en.properties @@ -873,6 +873,8 @@ pdf.errorbox.button.info=Learn More pdf.errorbox.button.download=Download pdf.errorbox.conformity.level=Conformity level pdf.errorbox.unknown.error=No further information! -pdf.errorbox.clause="Clause" -pdf.errorbox.test="Test" -pdf.errorbox.specification="Specification" +pdf.errorbox.clause=Clause +pdf.errorbox.test=Test +pdf.errorbox.no.conformity=None +pdf.errorbox.specification=Specification +pdf.errorbox.validationerror.message=Unfortunately, this document could not be validated due to an unknown error. diff --git a/mir-module/src/main/resources/xsl/metadata/mir-pdf-errorbox.xsl b/mir-module/src/main/resources/xsl/metadata/mir-pdf-errorbox.xsl index 7bc72285c3..720e454a43 100644 --- a/mir-module/src/main/resources/xsl/metadata/mir-pdf-errorbox.xsl +++ b/mir-module/src/main/resources/xsl/metadata/mir-pdf-errorbox.xsl @@ -15,7 +15,8 @@ - +
@@ -32,8 +33,8 @@
- +

@@ -65,6 +66,7 @@ + warning danger success @@ -73,44 +75,63 @@

  • -

    - - - - - - -

    + + + + + +

    + + + + + + +

    +
    +
    + select="concat($ServletsBaseURL,'MCRFileNodeServlet/',$derivate,'/', + mcrxsl:encodeURIPath(@name))"/> + - - - - -
  • - + + +
  • -

    +

    @@ -132,10 +153,13 @@

    - - - - +
  • + + +

    + +

    +
    +
    + +