Skip to content

Commit bb817d0

Browse files
authored
Merge pull request DSpace#11473 from IgorBaptist4/fix-8443-submission-forms-migrate
fix: DSpace#8443 - Remove the step 'complete' and fix the processing-class for step 'collection'
2 parents 915a06a + 677c7b5 commit bb817d0

File tree

1 file changed

+35
-26
lines changed

1 file changed

+35
-26
lines changed

dspace/config/migration/item-submissions.xsl

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,35 +34,44 @@ configuration file into a DSpace 7.x (or above) item-submission.xml -->
3434

3535
<xsl:template name="transformSteps">
3636
<xsl:for-each select="/item-submission/step-definitions/step">
37-
<step-definition>
38-
<xsl:attribute name="id">
39-
<xsl:value-of select="@id"/>
40-
</xsl:attribute>
41-
<heading>
42-
<xsm:value-of select="./heading"/>
43-
</heading>
44-
<processing-class>
45-
<xsm:value-of select="./processing-class"/>
46-
</processing-class>
47-
<type>
37+
<xsl:if test="@id != 'complete'">
38+
<step-definition>
39+
<xsl:attribute name="id">
40+
<xsl:value-of select="@id"/>
41+
</xsl:attribute>
42+
<heading>
43+
<xsm:value-of select="./heading"/>
44+
</heading>
45+
<processing-class>
46+
<xsl:choose>
47+
<xsl:when test="@id='collection'">
48+
<xsl:text>org.dspace.app.rest.submit.step.CollectionStep</xsl:text>
49+
</xsl:when>
50+
<xsl:otherwise>
51+
<xsm:value-of select="./processing-class"/>
52+
</xsl:otherwise>
53+
</xsl:choose>
54+
</processing-class>
55+
<type>
56+
<xsl:choose>
57+
<xsl:when test="@id='collection' or @id='upload' or @id='licence' or @id='sample'">
58+
<xsl:value-of select="@id"/>
59+
</xsl:when>
60+
<xsl:otherwise>
61+
<xsl:text>submission-form</xsl:text>
62+
</xsl:otherwise>
63+
</xsl:choose>
64+
</type>
4865
<xsl:choose>
49-
<xsl:when test="@id='collection' or @id='upload' or @id='licence' or @id='sample'">
50-
<xsl:value-of select="@id"/>
66+
<xsl:when test="@id='collection'">
67+
<scope visibility="hidden" visibilityOutside="hidden">submission</scope>
68+
</xsl:when>
69+
<xsl:when test="@id='license'">
70+
<scope visibilityOutside="read-only">submission</scope>
5171
</xsl:when>
52-
<xsl:otherwise>
53-
<xsl:text>submission-form</xsl:text>
54-
</xsl:otherwise>
5572
</xsl:choose>
56-
</type>
57-
<xsl:choose>
58-
<xsl:when test="@id='collection'">
59-
<scope visibility="hidden" visibilityOutside="hidden">submission</scope>
60-
</xsl:when>
61-
<xsl:when test="@id='license'">
62-
<scope visibilityOutside="read-only">submission</scope>
63-
</xsl:when>
64-
</xsl:choose>
65-
</step-definition>
73+
</step-definition>
74+
</xsl:if>
6675
</xsl:for-each>
6776
</xsl:template>
6877

0 commit comments

Comments
 (0)