Skip to content

Commit

Permalink
MIR-1329 Add Property to enable PDF/A Validation in Workflow
Browse files Browse the repository at this point in the history
Adds a mycore property to enable PDF/A validation seperately to Mir Workflow. Default is false.
  • Loading branch information
Antoniafriedrich committed Oct 16, 2024
1 parent 68112b0 commit 7112add
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mir-module/src/main/resources/config/mir/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ MCR.Object.Static.Content.Generator.mir-history.Transformer=mir-history
MCR.URIResolver.xslImports.mirworkflow=metadata/mir-workflow.xsl
MIR.Workflow.Menu=false
MIR.Workflow.Box=false

MIR.EnablePdfaValidationInWorkflow=false
##############################################################################
# new Metadata Layout #
##############################################################################
Expand Down
6 changes: 5 additions & 1 deletion mir-module/src/main/resources/xsl/metadata/mir-workflow.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<xsl:param name="CurrentUser"/>

<xsl:param name="MIR.Workflow.Debug" select="'false'"/>
<xsl:param name="MIR.EnablePdfaValidationInWorkflow" select="'false'"/>
<xsl:key use="@id" name="rights" match="/mycoreobject/rights/right"/>
<xsl:variable name="id" select="/mycoreobject/@ID"/>

Expand Down Expand Up @@ -127,7 +128,10 @@
Dokument submitted
</xsl:message>
</xsl:if>
<xsl:apply-templates select="." mode="displayPdfError"/>

<xsl:if test="normalize-space($MIR.EnablePdfaValidationInWorkflow)='true'">
<xsl:apply-templates select="." mode="displayPdfError"/>
</xsl:if>
</xsl:template>

<xsl:template match="mycoreobject" mode="creatorReview" priority="10">
Expand Down

0 comments on commit 7112add

Please sign in to comment.