Revision 48364
Added by Alessia Bardi almost 7 years ago
sfi_2_db.xsl | ||
---|---|---|
10 | 10 |
|
11 | 11 |
<xsl:variable name="prefix" select="string('sfi_________')"/> |
12 | 12 |
|
13 |
<record |
|
14 |
> |
|
13 |
<record> |
|
15 | 14 |
|
16 | 15 |
<xsl:copy-of select=".//*[local-name()='header']"/> |
17 | 16 |
|
... | ... | |
44 | 43 |
<xsl:value-of select="$parentDatasourceId"/> |
45 | 44 |
</FIELD> |
46 | 45 |
<FIELD name="provenanceactionclass">sysimport:crosswalk:entityregistry</FIELD> |
46 |
<!-- oa_mandate_for_publications is true for projects started after 2005 --> |
|
47 |
<xsl:choose> |
|
48 |
<!-- Invalid date: we need at least YYYY --> |
|
49 |
<xsl:when test="string-length($startDate) < 4"> |
|
50 |
<FIELD name="oa_mandate_for_publications" type="boolean">false</FIELD> |
|
51 |
</xsl:when> |
|
52 |
<xsl:when test="xs:date($startDate) >= xs:date('2009-01-01')"> |
|
53 |
<FIELD name="oa_mandate_for_publications" type="boolean">true</FIELD> |
|
54 |
</xsl:when> |
|
55 |
<xsl:otherwise><FIELD name="oa_mandate_for_publications" type="boolean">false</FIELD></xsl:otherwise> |
|
56 |
</xsl:choose> |
|
47 | 57 |
</ROW> |
48 | 58 |
|
49 | 59 |
<xsl:if test="normalize-space(.//column[@name='Programme Name'])"> |
Also available in: Unified diff
SFI OA mandates starts from 2009 (#1506#change-23022)