Revision 48964
Added by Claudio Atzori about 6 years ago
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/wellcometrust_2_db.xsl | ||
---|---|---|
111 | 111 |
|
112 | 112 |
<xsl:variable name="personSurname" select="normalize-space(.//Person/FamilyName)"/> |
113 | 113 |
<xsl:variable name="personFirstName" select="normalize-space(.//Person/GivenName)"/> |
114 |
<xsl:variable name="personInitials" select="normalize-space(.//Person/Initials)"/> |
|
115 |
<xsl:variable name="personTitle" select="normalize-space(.//Person/Title)"/> |
|
116 |
|
|
114 | 117 |
<xsl:variable name="contactfullname"> |
115 | 118 |
<xsl:choose> |
116 | 119 |
<xsl:when test="string-length($personFirstName) > 0 and string-length($personSurname) > 0"> |
117 |
<xsl:value-of select="normalize-space(concat($personSurname, ', ', $personFirstName))"/>
|
|
120 |
<xsl:value-of select="normalize-space(concat($personTitle, ' ', $personSurname, ', ', $personFirstName, ' ', $personInitials))"/>
|
|
118 | 121 |
</xsl:when> |
119 | 122 |
<xsl:when test="string-length($personFirstName) > 0"> |
120 |
<xsl:value-of select="$personFirstName"/>
|
|
123 |
<xsl:value-of select="normalize-space(concat($personFirstName, ' ', $personInitials))"/>
|
|
121 | 124 |
</xsl:when> |
122 | 125 |
<xsl:when test="string-length($personSurname) > 0"> |
123 |
<xsl:value-of select="$personSurname"/> |
|
126 |
<xsl:choose> |
|
127 |
<xsl:when test="string-length($personInitials) > 0"> |
|
128 |
<xsl:value-of select="normalize-space(concat($personTitle, ' ', $personSurname, ', ', $personInitials))"/> |
|
129 |
</xsl:when> |
|
130 |
<xsl:otherwise> |
|
131 |
<xsl:value-of select="normalize-space(concat($personTitle, ' ', $personSurname))"/> |
|
132 |
</xsl:otherwise> |
|
133 |
</xsl:choose> |
|
124 | 134 |
</xsl:when> |
125 | 135 |
<xsl:otherwise> |
126 | 136 |
<xsl:value-of select="''"/> |
... | ... | |
132 | 142 |
<xsl:value-of select="$contactfullname"/> |
133 | 143 |
</FIELD> |
134 | 144 |
</xsl:if> |
135 |
|
|
136 | 145 |
</ROW> |
137 |
|
|
138 | 146 |
<ROW table="project_fundingpath"> |
139 | 147 |
<FIELD name="_dnet_resource_identifier_"> |
140 | 148 |
<xsl:value-of select="concat($fundingID,'@@', $projectID)"/> |
Also available in: Unified diff
more accurate mapping for contactfullname