diff --git a/LRE4-2-DIM.xslt b/LRE4-2-DIM.xslt index 8da2f5ad9735e96759210f750d5115c06a7c90d5..61c431c3a7aefbaef6a30b62a032c4bd248cb38a 100755 --- a/LRE4-2-DIM.xslt +++ b/LRE4-2-DIM.xslt @@ -274,21 +274,21 @@ </xsl:call-template> </xsl:if> <!-- ******** Technical.Format ********** --> -<!-- <xsl:if test="contains($theValue, 'package in')"> - <xsl:variable name="format" + <xsl:if test="contains($theValue, 'package in')"> + <xsl:variable name="mergedvalue" select="ancestor::*[1]/ancestor::*[1]/child::*[2]" /> + <xsl:variable name="format" + select="substring-after($mergedvalue, 'LRE.packageInValues')" /> <xsl:call-template name="addLiteralDimField"> <xsl:with-param name="mdschema" select="'lom'" /> <xsl:with-param name="element" select="'technical-format'" /> <xsl:with-param name="value" select="$format" /> </xsl:call-template> - </xsl:if> --> + </xsl:if> </xsl:if> </xsl:template> - - <!-- ********* Parsing LOM Fields ************ -->