Project

General

Profile

« Previous | Next » 

Revision 48948

getting rid of person entities #2893

View differences:

wellcometrust_2_db.xsl
108 108
								</xsl:when>
109 109
								<xsl:otherwise><FIELD name="oa_mandate_for_publications" type="boolean">false</FIELD></xsl:otherwise>
110 110
							</xsl:choose>
111

  
112
							<xsl:variable name="personSurname" select=".//Person/FamilyName"/>
113
							<xsl:variable name="personFirstName" select=".//Person/GivenName"/>
114
							<xsl:variable name="contactfullname">
115
								<xsl:choose>
116
									<xsl:when test="string-length($personFirstName) &gt; 0 and string-length($personSurname) &gt; 0">
117
										<xsl:value-of select="normalize-space(concat($personSurname, ', ', $personFirstName))"/>
118
									</xsl:when>
119
									<xsl:when test="string-length($personFirstName) &gt; 0">
120
										<xsl:value-of select="normalize-space($personFirstName)"/>
121
									</xsl:when>
122
									<xsl:when test="string-length($personSurname) &gt; 0">
123
										<xsl:value-of select="normalize-space($personSurname)"/>
124
									</xsl:when>
125
									<xsl:otherwise>
126
										<xsl:value-of select="''"/>
127
									</xsl:otherwise>
128
								</xsl:choose>
129
							</xsl:variable>
130
							<xsl:if test="string-length($contactfullname) &gt; 0">
131
								<FIELD name="contactfullname">
132
									<xsl:value-of select="$contactfullname"/>
133
								</FIELD>
134
							</xsl:if>
135

  
111 136
						</ROW>
112 137

  
113 138
						<ROW table="project_fundingpath">
......
127 152
								<xsl:value-of select="$endDate"/>
128 153
							</FIELD>
129 154
						</ROW>
130
						<ROW table="persons">
131
							<FIELD name="_dnet_resource_identifier_">
132
								<xsl:value-of select="$personID"/>
133
							</FIELD>
134
							<FIELD name="id">
135
								<xsl:value-of select="$personID"/>
136
							</FIELD>
137
							<FIELD name="firstname">
138
								<xsl:value-of select=".//Person/GivenName"/>
139
							</FIELD>
140
							<FIELD name="secondnames">
141
								<xsl:value-of select=".//Person/FamilyName"/>
142
							</FIELD>
143
							<FIELD name="collectedfrom">
144
								<xsl:value-of select="$parentDatasourceId"/>
145
							</FIELD>
146
							<FIELD name="optional1">
147
								<xsl:value-of select=".//Person/Title"/>
148
							</FIELD>
149
							<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD>
150
							<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD>
151
						</ROW>
152 155
						<xsl:if test="not(concat($namespacePrefix, '::') = $orgID)">
153 156
							<ROW table="organizations">
154 157
								<FIELD name="_dnet_resource_identifier_">
......
184 187
								<FIELD name="resporganization">
185 188
									<xsl:value-of select="$orgID"/>
186 189
								</FIELD>
187
								<FIELD name="contactperson">
188
									<xsl:value-of select="$personID"/>
189
								</FIELD>
190 190
								<FIELD name="semanticclass">coordinator</FIELD>
191 191
								<FIELD name="semanticscheme">dnet:project_organization_relations</FIELD>
192 192
							</ROW>
......
196 196
			</metadata>
197 197
		</record>
198 198
	</xsl:template>
199
</xsl:stylesheet>
199
</xsl:stylesheet>

Also available in: Unified diff