Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:efg="http://www.europeanfilmgateway.eu/efg"
3
                version="2.0"
4
>
5

    
6
	<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
7

    
8
	<xsl:template match="/">
9
		<xsl:variable name="id" select="//*[local-name() = 'objIdentifier']"/>
10
		<xsl:variable name="type" select="local-name(//*[local-name()='efgEntity']/*)"/>
11

    
12
		<div class="well">
13
			<table>
14
				<tr>
15
					<td style="width: 120px">
16
						<img src="../resources/img/record.png" width="80" height="80"/>
17
					</td>
18
					<td>
19
						<xsl:choose>
20
							<xsl:when test=" $type = 'avcreation' ">
21
								<strong>Title:</strong>
22
								<xsl:value-of select="//efg:title[1]/efg:text"/>
23
								<br/>
24
							</xsl:when>
25
							<xsl:when test=" $type = 'nonavcreation' ">
26
								<strong>Title:</strong>
27
								<xsl:value-of select="//efg:title[1]/efg:text"/>
28
								<br/>
29
							</xsl:when>
30

    
31
							<xsl:when test="$type ='person'">
32
								<strong>Name:</strong>
33
								<xsl:for-each select="//efg:name">
34
									<xsl:value-of select="concat(.,' ')"/>
35
								</xsl:for-each>
36
								<br/>
37
							</xsl:when>
38

    
39
							<xsl:when test="$type ='corporate'">
40
								<strong>Name:</strong>
41
								<xsl:for-each select="//efg:name">
42
									<xsl:value-of select="concat(.,' ')"/>
43
								</xsl:for-each>
44
								<br/>
45
							</xsl:when>
46

    
47
						</xsl:choose>
48
						<strong>Type:</strong>
49
						<i>
50
							<xsl:value-of select="local-name(//*[local-name()='efgEntity']/*)"/>
51
						</i>
52
						<br/>
53
						<br/>
54
						<button class="btn btn-primary btn-sm" ng-click="getDocument('objidentifier', '{$id}')">show record</button>
55
					</td>
56
				</tr>
57
			</table>
58
		</div>
59
	</xsl:template>
60
</xsl:stylesheet>
(2-2/2)