Project

General

Profile

« Previous | Next » 

Revision 41330

added "http://" to organization urls if missing, ticket #662

View differences:

modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/corda_2_db.xsl
179 179
							<FIELD name="id"><xsl:value-of select="$organizationId" /></FIELD>
180 180
							<FIELD name="legalshortname"><xsl:value-of select="./OrganisationShortName" /></FIELD>
181 181
							<FIELD name="legalname"><xsl:value-of select="./OrganisationLegalName" /></FIELD>
182
							<FIELD name="websiteurl"><xsl:value-of select="./OrganisationWebPage" /></FIELD>
182
							<FIELD name="websiteurl">
183
								<xsl:choose>
184
									<xsl:when test="starts-with(normalize-space(./OrganisationWebPage), 'http')">
185
										<xsl:value-of select="./OrganisationWebPage" />
186
									</xsl:when>
187
									<xsl:when test="string-length(normalize-space(./OrganisationWebPage)) &gt; 0">
188
										<xsl:value-of select="concat('http://', normalize-space(./OrganisationWebPage))" />
189
									</xsl:when>
190
								</xsl:choose>
191
							</FIELD>
183 192
							<FIELD name="ec_legalbody" type="boolean"><xsl:value-of select="./PublicBody" /></FIELD>
184 193
							<FIELD name="ec_legalperson" type="boolean"><xsl:value-of select="./LegalPerson" /></FIELD>
185 194
							<FIELD name="ec_nonprofit" type="boolean"><xsl:value-of select="./NonProfit" /></FIELD>
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/corda_h2020_2_db.xsl
80 80
								<FIELD name="id"><xsl:value-of select="$organizationId" /></FIELD>
81 81
								<FIELD name="legalshortname"><xsl:value-of select="./OrganisationShortName" /></FIELD>
82 82
								<FIELD name="legalname"><xsl:value-of select="./OrganisationLegalName" /></FIELD>
83
								<FIELD name="websiteurl"><xsl:value-of select="./OrganisationWebPage" /></FIELD>
83
								<FIELD name="websiteurl">
84
									<xsl:choose>
85
										<xsl:when test="starts-with(normalize-space(./OrganisationWebPage), 'http')">
86
											<xsl:value-of select="./OrganisationWebPage" />
87
										</xsl:when>
88
										<xsl:when test="string-length(normalize-space(./OrganisationWebPage)) &gt; 0">
89
											<xsl:value-of select="concat('http://', normalize-space(./OrganisationWebPage))" />
90
										</xsl:when>
91
									</xsl:choose>
92
								</FIELD>
84 93
								<FIELD name="ec_legalbody" type="boolean"><xsl:value-of select="./PublicBody" /></FIELD>
85 94
								<FIELD name="ec_legalperson" type="boolean"><xsl:value-of select="./LegalPerson" /></FIELD>
86 95
								<FIELD name="ec_nonprofit" type="boolean"><xsl:value-of select="./NonProfit" /></FIELD>
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/opendoar_2_db.xsl
211 211
							<xsl:value-of select="normalize-space(//oAcronym)"/>
212 212
						</FIELD>
213 213
						<FIELD name="websiteurl">
214
							<xsl:value-of select="normalize-space(//oUrl)"/>
214
							<xsl:choose>
215
								<xsl:when test="starts-with(normalize-space(//oUrl), 'http')">
216
									<xsl:value-of select="normalize-space(//oUrl)" />
217
								</xsl:when>
218
								<xsl:when test="string-length(normalize-space(//oUrl)) &gt; 0">
219
									<xsl:value-of select="concat('http://', normalize-space(//oUrl))" />
220
								</xsl:when>
221
							</xsl:choose>
215 222
						</FIELD>
216 223
						<FIELD name="countryClass">
217 224
							<xsl:choose>
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/re3data_2_db.xsl
222 222
								<xsl:value-of select="./*[local-name()='institutionAdditionalName'][1]"/>
223 223
							</FIELD>
224 224
							<FIELD name="websiteurl">
225
								<xsl:value-of select="./*[local-name()='institutionURL']"/>
225
								<xsl:choose>
226
									<xsl:when test="starts-with(normalize-space(./*[local-name()='institutionURL']), 'http')">
227
										<xsl:value-of select="./*[local-name()='institutionURL']" />
228
									</xsl:when>
229
									<xsl:when test="string-length(normalize-space(./*[local-name()='institutionURL'])) &gt; 0">
230
										<xsl:value-of select="concat('http://', normalize-space(./*[local-name()='institutionURL']))" />
231
									</xsl:when>
232
								</xsl:choose>
226 233
							</FIELD>
227 234
							<FIELD name="countryClass">
228 235
								<xsl:value-of select="./*[local-name()='institutionCountry']"/>

Also available in: Unified diff