Revision 50430
Added by Claudio Atzori about 6 years ago
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() > 1">,</xsl:if> |
52 |
<xsl:value-of select="."/>
|
|
52 |
<xsl:value-of select="concat('"', ., '"')"/>
|
|
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() > 1">,</xsl:if> |
13 |
<xsl:value-of select="substring-after(., ' ')"/>
|
|
13 |
<xsl:value-of select="concat('"', substring-after(., ' '), '"')"/>
|
|
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
store subjects as text arrays