Project

General

Profile

« Previous | Next » 

Revision 63181

Added by Michele Artini 6 months ago

cineca: types

View differences:

modules/dnet-isti/trunk/src/main/resources/cineca-people/iris-test-tr.xsl
91 91
						<xsl:value-of select="TransformationFunction:convertString($tf, //dc:language[1], 'Languages')" />
92 92
					</language>
93 93

  
94
					<xsl:variable name="infoType" select="normalize-space(//oaire:resourceType[contains(., 'info:eu-repo/semantics')])" />
95
					<xsl:variable name="peopleType" select="normalize-space(//oaire:resourceType[not(contains(., 'info:eu-repo/semantics'))])" />
96
					<xsl:choose>
97
						<xsl:when test="//oaire:resourceType/@uri">
98
							<type><xsl:value-of select="TransformationFunction:convertString($tf, //oaire:resourceType/@uri, 'IopTypologies')" /></type>
99
						</xsl:when>
100
						<xsl:when test="//oaire:resourceType">
101
							<type><xsl:value-of select="TransformationFunction:convertString($tf, //oaire:resourceType, 'IopTypologies')" /></type>
102
						</xsl:when>
103
						<xsl:otherwise>
104
							<type>Other</type>
105
						</xsl:otherwise>
106
					</xsl:choose>
94
					<type>
95
						<xsl:variable name="resTypeFromUri" select="TransformationFunction:convertString($tf, //oaire:resourceType/@uri, 'IopTypologies')" />
96
						<xsl:choose>
97
							<xsl:when test="$resTypeFromUri">
98
								<xsl:value-of select="$resTypeFromUri" />
99
							</xsl:when>
100
							<xsl:otherwise>
101
								<xsl:variable name="resTypeFromText" select="TransformationFunction:convertString($tf, //oaire:resourceType, 'IopTypologies')" />
102
								<xsl:choose>
103
									<xsl:when test="$resTypeFromText">
104
										<xsl:value-of select="$resTypeFromText" />
105
									</xsl:when>
106
									<xsl:otherwise>
107
										Other
108
									</xsl:otherwise>
109
								</xsl:choose>
110
							</xsl:otherwise>
111
						</xsl:choose>
112
					</type>
107 113

  
108 114

  
109 115
					<!-- TODO -->

Also available in: Unified diff