1 |
10059
|
mecum
|
<?xml version="1.0"?>
|
2 |
10159
|
mecum
|
<xsl:stylesheet
|
3 |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
4 |
10418
|
mecum
|
xmlns:gmd="http://www.isotc211.org/2005/gmd"
|
5 |
|
|
xmlns:gco="http://www.isotc211.org/2005/gco"
|
6 |
10385
|
mecum
|
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0">
|
7 |
10059
|
mecum
|
<xsl:template match="gmd:URL">
|
8 |
10159
|
mecum
|
<xsl:variable name="url">
|
9 |
|
|
<xsl:value-of select="./text()" />
|
10 |
|
|
</xsl:variable>
|
11 |
10059
|
mecum
|
<xsl:element name="a">
|
12 |
|
|
<xsl:attribute name="href">
|
13 |
|
|
<xsl:value-of select="$url" />
|
14 |
|
|
</xsl:attribute>
|
15 |
|
|
<xsl:value-of select="$url" />
|
16 |
|
|
</xsl:element>
|
17 |
|
|
</xsl:template>
|
18 |
10159
|
mecum
|
<xsl:template match="gmd:date">
|
19 |
|
|
<xsl:apply-templates />
|
20 |
|
|
</xsl:template>
|
21 |
|
|
<xsl:template match="gmd:dateStamp">
|
22 |
|
|
<xsl:apply-templates />
|
23 |
|
|
</xsl:template>
|
24 |
|
|
<xsl:template match="gmd:dateType">
|
25 |
|
|
<xsl:apply-templates />
|
26 |
|
|
</xsl:template>
|
27 |
|
|
<xsl:template match="gmd:resourceConstraints">
|
28 |
|
|
<!-- Show the title if it's present -->
|
29 |
|
|
<xsl:if test="../@xlink:title">
|
30 |
|
|
<div class="control-group">
|
31 |
|
|
<label class="control-label">Title</label>
|
32 |
|
|
<div class="controls">
|
33 |
|
|
<div class="controls-well">
|
34 |
|
|
<xsl:apply-templates select="../@xlink:title" />
|
35 |
|
|
</div>
|
36 |
|
|
</div>
|
37 |
|
|
</div>
|
38 |
|
|
</xsl:if>
|
39 |
|
|
<xsl:apply-templates />
|
40 |
|
|
</xsl:template>
|
41 |
10160
|
mecum
|
<xsl:template match="gmd:distributionInfo">
|
42 |
|
|
<xsl:apply-templates />
|
43 |
|
|
</xsl:template>
|
44 |
10384
|
mecum
|
<!-- BDM: This is a short template for the thesaurus rather than a full
|
45 |
|
|
implementation. I did this for space reasons in the view. At some later
|
46 |
|
|
point we could consider showing the full thesaurus citation some other way.
|
47 |
|
|
-->
|
48 |
|
|
<xsl:template match="gmd:thesaurusName">
|
49 |
|
|
<xsl:value-of select="./gmd:CI_Citation/gmd:title" />
|
50 |
|
|
</xsl:template>
|
51 |
10418
|
mecum
|
|
52 |
|
|
<!-- gmd:code -->
|
53 |
|
|
<xsl:template match="gmd:code">
|
54 |
|
|
<xsl:variable name="code">
|
55 |
|
|
<xsl:value-of select="./gco:CharacterString/text()" />
|
56 |
|
|
</xsl:variable>
|
57 |
|
|
|
58 |
|
|
<xsl:choose>
|
59 |
|
|
<xsl:when test="starts-with($code, 'http://')">
|
60 |
|
|
<xsl:element name="a">
|
61 |
|
|
<xsl:attribute name="href">
|
62 |
|
|
<xsl:value-of select="$code" />
|
63 |
|
|
</xsl:attribute>
|
64 |
|
|
<xsl:value-of select="$code" />
|
65 |
|
|
</xsl:element>
|
66 |
|
|
</xsl:when>
|
67 |
|
|
<xsl:otherwise>
|
68 |
|
|
<xsl:value-of select="$code" />
|
69 |
|
|
</xsl:otherwise>
|
70 |
|
|
</xsl:choose>
|
71 |
|
|
</xsl:template>
|
72 |
|
|
|
73 |
|
|
<!-- gmd:verticalCRS -->
|
74 |
|
|
<xsl:template match="gmd:verticalCRS">
|
75 |
|
|
<xsl:choose>
|
76 |
|
|
<xsl:when test="./@xlink:href and ./@xlink:title">
|
77 |
|
|
<xsl:element name="a">
|
78 |
|
|
<xsl:attribute name="href"><xsl:value-of select="./@xlink:href" /></xsl:attribute>
|
79 |
|
|
<xsl:value-of select="./@xlink:title" />
|
80 |
|
|
</xsl:element>
|
81 |
|
|
</xsl:when>
|
82 |
|
|
<xsl:otherwise>See metadata record for full CRS information.</xsl:otherwise>
|
83 |
|
|
</xsl:choose>
|
84 |
|
|
</xsl:template>
|
85 |
10385
|
mecum
|
</xsl:stylesheet>
|