Project

General

Profile

« Previous | Next » 

Revision 50430

store subjects as text arrays

View differences:

modules/dnet-openaireplus-workflows/branches/dsm/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/opendoar_2_db.xsl
49 49
				<xsl:variable name="subjects">
50 50
					<xsl:for-each select=".//clTitle">
51 51
						<xsl:if test="position() &gt; 1">,</xsl:if>
52
						<xsl:value-of select="."/>
52
						<xsl:value-of select="concat('&quot;', ., '&quot;')"/>
53 53
					</xsl:for-each>
54 54
				</xsl:variable>
55 55

  
......
103 103
						</FIELD>
104 104
						
105 105
						<FIELD name="subjects">
106
							<xsl:value-of select="normalize-space($subjects)"/>
106
							<xsl:value-of select="concat('{', normalize-space($subjects), '}')"/>
107 107
						</FIELD>
108 108
					</ROW>
109 109

  
modules/dnet-openaireplus-workflows/branches/dsm/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/re3data_2_db.xsl
10 10
	<xsl:variable name="subjects">
11 11
		<xsl:for-each select="//*[local-name()='subject']">
12 12
			<xsl:if test="position() &gt; 1">,</xsl:if>
13
			<xsl:value-of select="substring-after(., ' ')"/>
13
			<xsl:value-of select="concat('&quot;', substring-after(., ' '), '&quot;')"/>
14 14
		</xsl:for-each>
15 15
	</xsl:variable>
16 16

  
......
109 109
							<xsl:value-of select=".//*[local-name()='certificate']"/>
110 110
						</FIELD>
111 111
						<FIELD name="subjects">
112
							<xsl:value-of select="$subjects"/>
112
							<xsl:value-of select="concat('{', normalize-space($subjects), '}')"/>
113 113
						</FIELD>
114 114
					</ROW>
115 115

  

Also available in: Unified diff