1 |
9786
|
leinfelder
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
9797
|
leinfelder
|
<xsl:stylesheet version="1.0" xmlns:dct="http://purl.org/dc/terms/"
|
3 |
|
|
xmlns:dcx="http://ns.dataone.org/metadata/schema/onedcx/v1.0"
|
4 |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
5 |
|
|
xmlns="http://purl.org/dc/terms/">
|
6 |
9786
|
leinfelder
|
|
7 |
|
|
|
8 |
9797
|
leinfelder
|
<xsl:template name="onedcx">
|
9 |
|
|
<article class="container" id="Metadata">
|
10 |
|
|
<xsl:for-each select="*">
|
11 |
9786
|
leinfelder
|
|
12 |
9797
|
leinfelder
|
<xsl:call-template name="citation" />
|
13 |
|
|
<xsl:call-template name="general" />
|
14 |
|
|
<xsl:call-template name="keywords" />
|
15 |
|
|
<xsl:call-template name="people" />
|
16 |
|
|
<xsl:call-template name="geography" />
|
17 |
|
|
<xsl:call-template name="temporal" />
|
18 |
9786
|
leinfelder
|
|
19 |
9797
|
leinfelder
|
</xsl:for-each>
|
20 |
9786
|
leinfelder
|
|
21 |
9797
|
leinfelder
|
</article>
|
22 |
|
|
</xsl:template>
|
23 |
9786
|
leinfelder
|
|
24 |
9797
|
leinfelder
|
<xsl:template name="citation">
|
25 |
|
|
<cite class="citation">
|
26 |
|
|
<xsl:value-of
|
27 |
|
|
select="normalize-space(dcx:dcTerms/dct:bibliographicCitation)" />
|
28 |
|
|
</cite>
|
29 |
|
|
</xsl:template>
|
30 |
9786
|
leinfelder
|
|
31 |
9797
|
leinfelder
|
<xsl:template name="general">
|
32 |
|
|
<h4>General Content</h4>
|
33 |
|
|
<div class="control-group">
|
34 |
|
|
<label class="control-label">Title</label>
|
35 |
|
|
<div class="controls controls-well">
|
36 |
|
|
<strong>
|
37 |
|
|
<xsl:value-of select="normalize-space(dcx:simpleDc/dct:title)" />
|
38 |
|
|
</strong>
|
39 |
|
|
</div>
|
40 |
|
|
</div>
|
41 |
|
|
<div class="control-group">
|
42 |
|
|
<label class="control-label">Identifier</label>
|
43 |
|
|
<div class="controls">
|
44 |
|
|
<div class="controls-well">
|
45 |
|
|
<xsl:value-of select="$pid" />
|
46 |
|
|
</div>
|
47 |
|
|
</div>
|
48 |
|
|
</div>
|
49 |
|
|
<div class="control-group">
|
50 |
|
|
<label class="control-label">Alternate Identifier</label>
|
51 |
|
|
<div class="controls">
|
52 |
|
|
<div class="controls-well">
|
53 |
|
|
<xsl:value-of select="normalize-space(dcx:simpleDc/dct:identifier)" />
|
54 |
|
|
</div>
|
55 |
|
|
</div>
|
56 |
|
|
</div>
|
57 |
|
|
|
58 |
|
|
<div class="control-group">
|
59 |
|
|
<label class="control-label">Online Access</label>
|
60 |
|
|
<div class="controls controls-well">
|
61 |
|
|
<xsl:for-each select="dcx:dcTerms/dct:references">
|
62 |
|
|
<a>
|
63 |
|
|
<xsl:attribute name="href">
|
64 |
|
|
<xsl:value-of select="." />
|
65 |
|
|
</xsl:attribute>
|
66 |
|
|
<xsl:value-of select="." />
|
67 |
|
|
</a>
|
68 |
|
|
</xsl:for-each>
|
69 |
|
|
</div>
|
70 |
|
|
</div>
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
<div class="control-group">
|
74 |
|
|
<label class="control-label">Abstract</label>
|
75 |
|
|
<div class="controls controls-well">
|
76 |
|
|
<div class="sectionText">
|
77 |
|
|
<p>
|
78 |
|
|
<xsl:value-of select="normalize-space(dcx:dcTerms/dct:abstract)" />
|
79 |
|
|
</p>
|
80 |
|
|
</div>
|
81 |
|
|
</div>
|
82 |
|
|
</div>
|
83 |
|
|
</xsl:template>
|
84 |
9786
|
leinfelder
|
|
85 |
9797
|
leinfelder
|
<xsl:template name="keywords">
|
86 |
|
|
<div class="row-fluid">
|
87 |
|
|
<div class="control-group">
|
88 |
|
|
<label class="control-label">Keywords (Dublin Core Terms subject)</label>
|
89 |
|
|
<div class="controls controls-well">
|
90 |
|
|
<table class="table table-striped table-condensed">
|
91 |
|
|
<thead>
|
92 |
|
|
<tr>
|
93 |
|
|
<th>Keyword</th>
|
94 |
|
|
<th>Type</th>
|
95 |
|
|
</tr>
|
96 |
|
|
</thead>
|
97 |
|
|
<xsl:apply-templates select="dcx:simpleDc/dct:subject" />
|
98 |
|
|
</table>
|
99 |
|
|
</div>
|
100 |
9786
|
leinfelder
|
|
101 |
9797
|
leinfelder
|
</div>
|
102 |
|
|
</div>
|
103 |
|
|
</xsl:template>
|
104 |
9786
|
leinfelder
|
|
105 |
9797
|
leinfelder
|
<xsl:template name="keyword" match="dct:subject">
|
106 |
|
|
<tr>
|
107 |
|
|
<td>
|
108 |
|
|
<xsl:value-of select="." />
|
109 |
|
|
</td>
|
110 |
|
|
<td></td>
|
111 |
|
|
</tr>
|
112 |
|
|
</xsl:template>
|
113 |
9786
|
leinfelder
|
|
114 |
9797
|
leinfelder
|
<xsl:template name="people">
|
115 |
|
|
<h4>Creators</h4>
|
116 |
|
|
<xsl:for-each select="dcx:simpleDc/dct:creator">
|
117 |
|
|
<div class="controls controls-well">
|
118 |
|
|
<xsl:value-of select="." />
|
119 |
|
|
</div>
|
120 |
|
|
</xsl:for-each>
|
121 |
9786
|
leinfelder
|
|
122 |
9797
|
leinfelder
|
</xsl:template>
|
123 |
9786
|
leinfelder
|
|
124 |
9797
|
leinfelder
|
<xsl:template name="geography">
|
125 |
|
|
<div class="row-fluid">
|
126 |
|
|
<div data-content="geographicCoverage" class="row-fluid geographicCoverage">
|
127 |
|
|
<h4>Geographic Region</h4>
|
128 |
|
|
<div data-content="geographicDescription" class="control-group geographicDescription">
|
129 |
|
|
<label class="control-label">Geographic Description</label>
|
130 |
|
|
<div class="controls controls-well">
|
131 |
|
|
<xsl:value-of
|
132 |
|
|
select="//dcx:dcTerms/dct:spatial[not(@xsi:type='dcterms:Box')]" />
|
133 |
|
|
</div>
|
134 |
|
|
</div>
|
135 |
|
|
|
136 |
|
|
<div data-content="boundingCoordinates" class="control-group boundingCoordinates">
|
137 |
|
|
<label class="control-label">Bounding Coordinates</label>
|
138 |
9804
|
leinfelder
|
<div class="controls controls-well">
|
139 |
|
|
<xsl:for-each select="//dcx:dcTerms/dct:spatial[@xsi:type='Box']">
|
140 |
|
|
<xsl:call-template name="extract-coordinates" />
|
141 |
|
|
</xsl:for-each>
|
142 |
|
|
</div>
|
143 |
9797
|
leinfelder
|
</div>
|
144 |
|
|
|
145 |
|
|
</div>
|
146 |
|
|
</div>
|
147 |
|
|
</xsl:template>
|
148 |
|
|
|
149 |
|
|
<xsl:template name="extract-coordinates">
|
150 |
|
|
<xsl:call-template name="show-coordinate">
|
151 |
|
|
<xsl:with-param name="data" select="." />
|
152 |
|
|
<xsl:with-param name="corner" select="'northlimit'" />
|
153 |
|
|
<xsl:with-param name="label" select="'North'" />
|
154 |
|
|
<xsl:with-param name="bound" select="'northBoundingCoordinate'" />
|
155 |
|
|
</xsl:call-template>
|
156 |
|
|
<xsl:call-template name="show-coordinate">
|
157 |
|
|
<xsl:with-param name="data" select="." />
|
158 |
|
|
<xsl:with-param name="corner" select="'southlimit'" />
|
159 |
|
|
<xsl:with-param name="label" select="'South'" />
|
160 |
|
|
<xsl:with-param name="bound" select="'southBoundingCoordinate'" />
|
161 |
|
|
</xsl:call-template>
|
162 |
|
|
<xsl:call-template name="show-coordinate">
|
163 |
|
|
<xsl:with-param name="data" select="." />
|
164 |
|
|
<xsl:with-param name="corner" select="'eastlimit'" />
|
165 |
|
|
<xsl:with-param name="label" select="'East'" />
|
166 |
|
|
<xsl:with-param name="bound" select="'eastBoundingCoordinate'" />
|
167 |
|
|
</xsl:call-template>
|
168 |
|
|
<xsl:call-template name="show-coordinate">
|
169 |
|
|
<xsl:with-param name="data" select="." />
|
170 |
|
|
<xsl:with-param name="corner" select="'westlimit'" />
|
171 |
|
|
<xsl:with-param name="label" select="'West'" />
|
172 |
|
|
<xsl:with-param name="bound" select="'westBoundingCoordinate'" />
|
173 |
|
|
</xsl:call-template>
|
174 |
|
|
</xsl:template>
|
175 |
|
|
|
176 |
|
|
<xsl:template name="show-coordinate">
|
177 |
|
|
<xsl:param name="data" />
|
178 |
|
|
<xsl:param name="corner" />
|
179 |
|
|
<xsl:param name="label" />
|
180 |
|
|
<xsl:param name="bound" />
|
181 |
|
|
<xsl:variable name="coord"
|
182 |
|
|
select="substring-before(substring-after($data,concat($corner,'=')),';')" />
|
183 |
|
|
<div data-value="{$coord}" data-content="{$bound}" class="control-group {$bound}">
|
184 |
|
|
<label class="control-label">
|
185 |
|
|
<xsl:value-of select="$label" />
|
186 |
|
|
</label>
|
187 |
|
|
<div class="controls controls-well">
|
188 |
|
|
<xsl:value-of select="$coord" />
|
189 |
|
|
<xsl:text> degrees</xsl:text>
|
190 |
|
|
</div>
|
191 |
|
|
</div>
|
192 |
|
|
</xsl:template>
|
193 |
|
|
|
194 |
|
|
<xsl:template name="temporal">
|
195 |
|
|
<div class="row-fluid">
|
196 |
|
|
<div data-content="temporalCoverage" class="row-fluid temporalCoverage">
|
197 |
|
|
<h4>Temporal Coverage</h4>
|
198 |
|
|
<div class="control-group">
|
199 |
|
|
<label class="control-label">Date Range</label>
|
200 |
|
|
<div class="controls controls-well">
|
201 |
|
|
<div class="control-group">
|
202 |
|
|
<label class="control-label">Begin</label>
|
203 |
|
|
<div class="controls">
|
204 |
|
|
<div class="row-fluid">
|
205 |
|
|
<xsl:value-of select="dcx:dcTerms/dct:temporal" />
|
206 |
|
|
</div>
|
207 |
|
|
</div>
|
208 |
|
|
</div>
|
209 |
|
|
<div class="control-group">
|
210 |
|
|
<label class="control-label">End</label>
|
211 |
|
|
<div class="controls">
|
212 |
|
|
<div class="row-fluid">
|
213 |
|
|
<xsl:value-of select="dcx:dcTerms/dct:temporal" />
|
214 |
|
|
</div>
|
215 |
|
|
</div>
|
216 |
|
|
</div>
|
217 |
|
|
</div>
|
218 |
|
|
</div>
|
219 |
|
|
</div>
|
220 |
|
|
</div>
|
221 |
|
|
</xsl:template>
|
222 |
|
|
|
223 |
9786
|
leinfelder
|
</xsl:stylesheet>
|