Project

General

Profile

« Previous | Next » 

Revision 37183

fixed user action mapping

View differences:

similarity_2_hbase.xsl
11 11
	
12 12
		<xsl:variable name="source" select="/SIMILARITY/SOURCE/@id" />
13 13
		<xsl:variable name="target" select="/SIMILARITY/TARGET/@id" />
14
		<xsl:variable name="type" select="/SIMILARITY/TYPE/@name" />
14 15

  
16
		<xsl:variable name="columnFamily">
17
			<xsl:choose>
18
				<xsl:when test="$type = 'result'">resultResult_dedupSimilarity_isSimilarTo</xsl:when>
19
				<xsl:when test="$type = 'person'">personPerson_dedupSimilarity_isSimilarTo</xsl:when>
20
				<xsl:when test="$type = 'organization'">organizationOrganization_dedupSimilarity_isSimilarTo</xsl:when>
21
			</xsl:choose>
22
		</xsl:variable>
23

  
15 24
		<ROWS>
16
			<xsl:if test="string-length($source) &gt; 0 and string-length($target) &gt; 0">
17
				<ROW key="{$source}" columnFamily="resultResult_dedupSimilarity_isSimilarTo">
25
			<xsl:if test="string-length($source) &gt; 0 and string-length($target) &gt; 0 and string-length($columnFamily) &gt; 0">
26
				<ROW key="{$source}" columnFamily="{$columnFamily}">
18 27
					<QUALIFIER name="{$target}" type="base64"></QUALIFIER>
19 28
				</ROW>
20 29
			</xsl:if>

Also available in: Unified diff