1 |
45426
|
katerina.i
|
|
2 |
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
3 |
|
|
xmlns:dri="http://www.driver-repository.eu/namespace/dri"
|
4 |
|
|
xmlns:oaf="http://namespace.openaire.eu/oaf"
|
5 |
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
6 |
|
|
|
7 |
|
|
<!-- Turn off auto-insertion of <?xml> tag and set indenting on -->
|
8 |
|
|
<xsl:output method="html" encoding="utf-8" omit-xml-declaration="yes" media-type="text/html" />
|
9 |
|
|
|
10 |
|
|
<!-- strip whitespace from whitespace-only nodes -->
|
11 |
|
|
<xsl:strip-space elements="*"/>
|
12 |
|
|
|
13 |
|
|
<xsl:template match = "/">
|
14 |
|
|
<xsl:apply-templates select="//oaf:result"/>
|
15 |
|
|
</xsl:template>
|
16 |
|
|
|
17 |
|
|
<!-- Title, Authors, Publication Year, DOI, Download From, Publication Type, Journal, Funder, Project Name (GA Number), Access -->
|
18 |
|
|
|
19 |
|
|
<xsl:template match="oaf:result">
|
20 |
|
|
<tr>
|
21 |
|
|
<!-- Title -->
|
22 |
|
|
<td>
|
23 |
|
|
<xsl:value-of select="title"/>
|
24 |
|
|
</td>
|
25 |
|
|
|
26 |
|
|
<!-- Authors -->
|
27 |
|
|
<td>
|
28 |
50401
|
katerina.i
|
<xsl:for-each select="creator">
|
29 |
|
|
<xsl:sort select="@rank"/>
|
30 |
|
|
<xsl:value-of select="."/>
|
31 |
45426
|
katerina.i
|
<xsl:if test="not(position()=last())">
|
32 |
|
|
<xsl:text>;</xsl:text>
|
33 |
|
|
</xsl:if>
|
34 |
|
|
</xsl:for-each>
|
35 |
|
|
</td>
|
36 |
|
|
|
37 |
|
|
<!-- Publication Year -->
|
38 |
|
|
<td>
|
39 |
|
|
<xsl:value-of select="dateofacceptance"/>
|
40 |
|
|
</td>
|
41 |
|
|
|
42 |
|
|
<!-- DOI -->
|
43 |
|
|
<td>
|
44 |
|
|
<xsl:apply-templates select="pid"/>
|
45 |
|
|
</td>
|
46 |
|
|
|
47 |
|
|
<!-- Download from -->
|
48 |
|
|
<td>
|
49 |
|
|
<a target="_blank">
|
50 |
|
|
<xsl:attribute name="href">
|
51 |
|
|
<xsl:value-of select="children/instance[1]/webresource[1]"/>
|
52 |
|
|
</xsl:attribute>
|
53 |
|
|
<xsl:value-of select="children/instance[1]/webresource[1]"/>
|
54 |
|
|
</a>
|
55 |
|
|
</td>
|
56 |
|
|
|
57 |
|
|
<!-- Publication Type -->
|
58 |
|
|
<td>
|
59 |
|
|
<xsl:value-of select="children/instance[1]/instancetype/@classname"/>
|
60 |
|
|
</td>
|
61 |
|
|
|
62 |
|
|
<!-- Journal -->
|
63 |
|
|
<td>
|
64 |
46242
|
katerina.i
|
<xsl:value-of select="replace(source, '[-Ÿ]', ' ')"/>
|
65 |
45426
|
katerina.i
|
</td>
|
66 |
|
|
|
67 |
|
|
<!-- Funder|Project Name (GA Number) -->
|
68 |
|
|
<td>
|
69 |
|
|
<xsl:for-each select="rels/rel/to[@class='isProducedBy']">
|
70 |
|
|
<xsl:value-of select="../funding/funder/@shortname"/>
|
71 |
|
|
<xsl:text>|</xsl:text>
|
72 |
|
|
<xsl:choose>
|
73 |
|
|
<xsl:when test="../acronym">
|
74 |
|
|
<xsl:value-of select="../acronym"/>
|
75 |
|
|
</xsl:when>
|
76 |
|
|
<xsl:otherwise>
|
77 |
|
|
<xsl:text>"</xsl:text>
|
78 |
|
|
<xsl:value-of select="../title"/>
|
79 |
|
|
<xsl:text>"</xsl:text>
|
80 |
|
|
</xsl:otherwise>
|
81 |
|
|
</xsl:choose>
|
82 |
|
|
<xsl:text>(</xsl:text>
|
83 |
|
|
<xsl:value-of select="../code"/>
|
84 |
|
|
<xsl:text>)</xsl:text>
|
85 |
|
|
<xsl:if test="not(position()=last())">
|
86 |
|
|
<xsl:text>;</xsl:text>
|
87 |
|
|
</xsl:if>
|
88 |
|
|
</xsl:for-each>
|
89 |
|
|
</td>
|
90 |
|
|
|
91 |
|
|
<!-- Access -->
|
92 |
|
|
<td>
|
93 |
50401
|
katerina.i
|
<xsl:value-of select="bestaccessright/@classname"/>
|
94 |
45426
|
katerina.i
|
</td>
|
95 |
|
|
</tr>
|
96 |
|
|
</xsl:template>
|
97 |
|
|
|
98 |
|
|
<xsl:template match="pid[@classid='doi']">
|
99 |
|
|
<xsl:value-of select="."/>
|
100 |
|
|
</xsl:template>
|
101 |
|
|
|
102 |
|
|
</xsl:stylesheet>
|