Revision 61314
Added by Michele Artini almost 2 years ago
people2pmf.xml | ||
---|---|---|
71 | 71 |
|
72 | 72 |
<language><xsl:value-of select="TransformationFunction:convertString($tf, //dc:language[1], 'Languages')"/></language> |
73 | 73 |
|
74 |
<type><xsl:value-of select="TransformationFunction:convertString($tf, //dc:type[1], 'TextTypologies')" /></type> |
|
75 |
|
|
76 |
<urls> |
|
74 |
<xsl:variable name="infoType" select="normalize-space(//dc:type[contains(.,'info:eu-repo/semantics')])"/> |
|
75 |
<xsl:variable name="peopleType" select="normalize-space(//dc:type[not(contains(.,'info:eu-repo/semantics'))])"/> |
|
76 |
<xsl:choose> |
|
77 |
<xsl:when test="infoType='info:eu-repo/semantics/masterThesis'"> |
|
78 |
<type>Master thesis</type> |
|
79 |
</xsl:when> |
|
80 |
<xsl:when test="infoType='info:eu-repo/semantics/doctoralThesis'"> |
|
81 |
<type>Doctoral thesis</type> |
|
82 |
</xsl:when> |
|
83 |
<xsl:when test="infoType='info:eu-repo/semantics/bachelorThesis'"> |
|
84 |
<type>Bachelor thesis</type> |
|
85 |
</xsl:when> |
|
86 |
<xsl:otherwise> |
|
87 |
<type><xsl:value-of select="TransformationFunction:convertString($tf, $peopleType, 'IstiTypologies')" /></type> |
|
88 |
</xsl:otherwise> |
|
89 |
</xsl:choose> |
|
90 |
|
|
91 |
<urls> |
|
77 | 92 |
<xsl:for-each select="//dc:identifier"> |
78 | 93 |
<xsl:if test="starts-with(., 'http') and contains(., 'www.cnr.it')"> |
79 | 94 |
<!-- <url rights="{$rights}" hostedBy="CNR People"><xsl:value-of select="."/></url>--> |
Also available in: Unified diff
new types in transformation rule