Revision 40605
Added by Katerina Iatropoulou over 8 years ago
project.xsl | ||
---|---|---|
15 | 15 |
<result type ="result"> |
16 | 16 |
<xsl:apply-templates select="//header"/> |
17 | 17 |
<xsl:apply-templates select="//oaf:project"/> |
18 |
<xsl:apply-templates select="//rel"/> |
|
19 |
<!--xsl:apply-templates select="//funding[parent[not(node())]] "/--> |
|
20 |
<xsl:apply-templates select="//funding_level_2"/> |
|
18 |
<!-- |
|
19 |
<xsl:apply-templates select="//rel"/> |
|
20 |
<xsl:apply-templates select="//funding[parent[not(node())]] "/ |
|
21 |
|
|
22 |
<xsl:apply-templates select="//funding_level_2"/> |
|
21 | 23 |
<xsl:apply-templates select="//funding_level_1"/> |
22 | 24 |
<xsl:apply-templates select="//funding_level_0"/> |
23 |
<xsl:apply-templates select="//funder"/> |
|
25 |
|
|
26 |
<xsl:apply-templates select="//funder"/> --> |
|
24 | 27 |
</result> |
25 | 28 |
</xsl:template> |
26 | 29 |
|
... | ... | |
206 | 209 |
</field> |
207 | 210 |
</xsl:for-each> |
208 | 211 |
|
212 |
<xsl:for-each select="./fundingtree/funder"> |
|
213 |
<field name="funder" multiplicity="true"> |
|
214 |
<field name="funderid" indexId="funderid" label=""> |
|
215 |
<xsl:attribute name="value"> <xsl:value-of select="./id"/> </xsl:attribute> |
|
216 |
</field> |
|
217 |
<field name="fundershortname" indexId="fundershortname" label=""> |
|
218 |
<xsl:attribute name="value"> <xsl:value-of select="./shortname"/> </xsl:attribute> |
|
219 |
</field> |
|
220 |
<field name="fundername" indexId="fundername" label=""> |
|
221 |
<xsl:attribute name="value"> <xsl:value-of select="./name"/> </xsl:attribute> |
|
222 |
</field> |
|
223 |
</field> |
|
224 |
</xsl:for-each> |
|
225 |
|
|
209 | 226 |
</xsl:template> |
210 | 227 |
|
211 | 228 |
|
... | ... | |
380 | 397 |
</xsl:template> |
381 | 398 |
|
382 | 399 |
|
383 |
<xsl:template match="funder"> |
|
384 |
<test></test> |
|
385 |
<field name="funder" multiplicity="true"> |
|
386 |
<field name="funderid" indexId="funderid" label=""> |
|
387 |
<xsl:attribute name="value"> <xsl:value-of select="./id"/> </xsl:attribute> |
|
388 |
</field> |
|
389 |
<field name="fundershortname" indexId="fundershortname" label=""> |
|
390 |
<xsl:attribute name="value"> <xsl:value-of select="./shortname"/> </xsl:attribute> |
|
391 |
</field> |
|
392 |
<field name="fundername" indexId="fundername" label=""> |
|
393 |
<xsl:attribute name="value"> <xsl:value-of select="./name"/> </xsl:attribute> |
|
394 |
</field> |
|
395 |
</field> |
|
396 |
</xsl:template> |
|
397 | 400 |
|
401 |
|
|
398 | 402 |
<!--xsl:template match="funding[parent[not(node())]]" > |
399 | 403 |
<field name='funding'> |
400 | 404 |
<xsl:choose> |
Also available in: Unified diff
added organization id in api + funder in organization + reload vocabularies once a day