Revision 42622
Added by Alessia Bardi over 8 years ago
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/xslt/re3data_2_db.xsl | ||
---|---|---|
136 | 136 |
<xsl:value-of select="concat($apiId, '@@baseUrl')"/> |
137 | 137 |
</FIELD> |
138 | 138 |
<FIELD name="param">baseUrl</FIELD> |
139 |
<xsl:variable name="baseURL" select="normalize-space(.)"/> |
|
139 | 140 |
<FIELD name="original"> |
140 |
<xsl:value-of select="."/> |
|
141 |
<xsl:choose> |
|
142 |
<xsl:when test="$baseURL != ''"><xsl:value-of select="$baseURL"/></xsl:when> |
|
143 |
<xsl:otherwise><xsl:value-of select="string('http://unavailable.base.url')"/></xsl:otherwise> |
|
144 |
</xsl:choose> |
|
141 | 145 |
</FIELD> |
142 | 146 |
<FIELD name="api"> |
143 | 147 |
<xsl:value-of select="$apiId"/> |
Also available in: Unified diff
re3data updated db should not fail for repos without a base url: if this is the case now we set the fake URL: http://unavailable.base.url