Project

General

Profile

« Previous | Next » 

Revision 40708

unit test: classpath xslts updated to latest changes

View differences:

dmf2updateActions.xslt
18 18
    <xsl:template match="/*">
19 19
        <xsl:variable name="about" select="/*[local-name() = 'record']/*[local-name() = 'about']"/>
20 20
        <xsl:variable name="dateofcollection" select="//dr:dateOfCollection"/>
21
        <xsl:variable name="dateoftransformation" select="//dr:dateOfTransformation"/>
21 22

  
22 23
        <xsl:variable name="metadata" select="exslt:node-set(//*[local-name()='metadata']/*)"/>
23 24
        <xsl:variable name="collectedDatasourceid">
......
50 51
                <!-- 				<xsl:variable name="country" select="substring(//dr:repositoryCountry,  1, 200)" /> -->
51 52
                <!-- 				<xsl:variable name="accessmode" select="substring(//oaf:accessrights,   1, 200)" /> -->
52 53

  
54
                <xsl:variable name="originalidTest" select="/record/*[local-name() = 'header']/*[local-name() = 'recordIdentifier']"/>
55
                <xsl:variable name="originalid">
56
                    <xsl:choose>
57
                        <xsl:when test="contains($originalidTest, '::')">
58
                            <xsl:value-of select="substring-after($originalidTest, '::')"/>
59
                        </xsl:when>
60
                        <xsl:otherwise>
61
                            <xsl:value-of select="$originalidTest"/>
62
                        </xsl:otherwise>
63
                    </xsl:choose>
64
                </xsl:variable>
65

  
53 66
                <xsl:variable name="result"
54
                              select="dnet:oafResult($resultId, $provenance, $trust, $about, $hostedbyid, $hostedbyname, $collectedfromid, $collectedfromname,
55
				              $objidentifier, $dateofcollection, $metadata)"/>
67
                              select="dnet:oafResult($resultId, $provenance, $trust, $about, $hostedbyid, $hostedbyname,
68
	                          $collectedfromid, $collectedfromname, $originalid, $dateofcollection, $dateoftransformation, $metadata)"/>
56 69

  
57 70
                <ACTIONS>
58 71
	                <ACTION targetKey="{$resultId}" targetColumnFamily="result" targetColumn="{concat('update_', date:nanoTime())}">

Also available in: Unified diff