Project

General

Profile

1

    
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
                <xsl:for-each select="rels/rel/to[@class='hasAuthor']">
29
                    <xsl:sort select="field[@name='ranking']/@value"/>
30
                    <xsl:value-of select="../fullname"/>
31
                    <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
                </a>
54
            </td>
55

    
56
            <!-- Publication Type -->
57
            <td>
58
                <xsl:value-of select="children/instance[1]/instancetype/@classname"/>
59
            </td>
60

    
61
            <!-- Journal -->
62
            <td>
63
                <xsl:value-of select="replace(source, '[&#x007F;-&#x009F;]', ' ')"/>
64
            </td>
65

    
66
            <!-- Funder|Project Name (GA Number) -->
67
            <td>
68
                <xsl:for-each select="rels/rel/to[@class='isProducedBy']">
69
                    <xsl:value-of select="../funding/funder/@shortname"/>
70
                    <xsl:text>|</xsl:text>
71
                    <xsl:choose>
72
                        <xsl:when test="../acronym">
73
                            <xsl:value-of select="../acronym"/>
74
                        </xsl:when>
75
                        <xsl:otherwise>
76
                            <xsl:text>"</xsl:text>
77
                            <xsl:value-of select="../title"/>
78
                            <xsl:text>"</xsl:text>
79
                        </xsl:otherwise>
80
                    </xsl:choose>
81
                    <xsl:text>(</xsl:text>
82
                    <xsl:value-of select="../code"/>
83
                    <xsl:text>)</xsl:text>
84
                    <xsl:if test="not(position()=last())">
85
                        <xsl:text>;</xsl:text>
86
                    </xsl:if>
87
                </xsl:for-each>
88
            </td>
89

    
90
            <!-- Access -->
91
            <td>
92
                <xsl:value-of select="bestaccessright/@classname"/>
93
            </td>
94
        </tr>
95
    </xsl:template>
96

    
97
    <xsl:template match="pid[@classid='doi']">
98
        <xsl:value-of select="."/>
99
    </xsl:template>
100

    
101
</xsl:stylesheet>
(23-23/47)