1
|
<?xml version="1.0"?>
|
2
|
<xsl:stylesheet
|
3
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
4
|
xmlns:gmd="http://www.isotc211.org/2005/gmd"
|
5
|
xmlns:gco="http://www.isotc211.org/2005/gco" version="1.0">
|
6
|
<!-- CI_ResponsibleParty -->
|
7
|
<xsl:template match="gmd:CI_ResponsibleParty">
|
8
|
<div class="controls-well">
|
9
|
<xsl:if test="./gmd:individualName and normalize-space(./gmd:individualName/gco:CharacterString/text())!=''">
|
10
|
<div class="control-group">
|
11
|
<label class="control-label">Individual</label>
|
12
|
<div class="controls">
|
13
|
<div class="controls-well">
|
14
|
<xsl:apply-templates select="./gmd:individualName" />
|
15
|
</div>
|
16
|
</div>
|
17
|
</div>
|
18
|
</xsl:if>
|
19
|
<xsl:if test="./gmd:organisationName and normalize-space(./gmd:organisationName/gco:CharacterString/text())!=''">
|
20
|
<div class="control-group">
|
21
|
<label class="control-label">Organization</label>
|
22
|
<div class="controls">
|
23
|
<div class="controls-well">
|
24
|
<xsl:apply-templates select="./gmd:organisationName" />
|
25
|
</div>
|
26
|
</div>
|
27
|
</div>
|
28
|
</xsl:if>
|
29
|
<xsl:if test="./gmd:positionName and normalize-space(./gmd:positionName/gco:CharacterString/text())!=''">
|
30
|
<div class="control-group">
|
31
|
<label class="control-label">Position</label>
|
32
|
<div class="controls">
|
33
|
<div class="controls-well">
|
34
|
<xsl:apply-templates select="./gmd:positionName" />
|
35
|
</div>
|
36
|
</div>
|
37
|
</div>
|
38
|
</xsl:if>
|
39
|
<xsl:if test="./gmd:role and normalize-space(./gmd:role/gmd:CI_RoleCode/text())!=''">
|
40
|
<div class="control-group">
|
41
|
<label class="control-label">Role</label>
|
42
|
<div class="controls">
|
43
|
<div class="controls-well">
|
44
|
<xsl:apply-templates select="./gmd:role" />
|
45
|
</div>
|
46
|
</div>
|
47
|
</div>
|
48
|
</xsl:if>
|
49
|
<xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:phone">
|
50
|
<div class="control-group">
|
51
|
<label class="control-label">Phone</label>
|
52
|
<div class="controls">
|
53
|
<div class="controls-well">
|
54
|
<xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:phone" />
|
55
|
</div>
|
56
|
</div>
|
57
|
</div>
|
58
|
</xsl:if>
|
59
|
<xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:address">
|
60
|
<div class="control-group">
|
61
|
<label class="control-label">Address</label>
|
62
|
<div class="controls">
|
63
|
<div class="controls-well">
|
64
|
<xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:address" />
|
65
|
</div>
|
66
|
</div>
|
67
|
</div>
|
68
|
</xsl:if>
|
69
|
<xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource">
|
70
|
<div class="control-group">
|
71
|
<label class="control-label">Online Resource</label>
|
72
|
<div class="controls">
|
73
|
<div class="controls-well">
|
74
|
<xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource" />
|
75
|
</div>
|
76
|
</div>
|
77
|
</div>
|
78
|
</xsl:if>
|
79
|
<xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService">
|
80
|
<div class="control-group">
|
81
|
<label class="control-label">Hours of Service</label>
|
82
|
<div class="controls">
|
83
|
<div class="controls-well">
|
84
|
<xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService" />
|
85
|
</div>
|
86
|
</div>
|
87
|
</div>
|
88
|
</xsl:if>
|
89
|
<xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions">
|
90
|
<div class="control-group">
|
91
|
<label class="control-label">Contact Instructions</label>
|
92
|
<div class="controls">
|
93
|
<div class="controls-well">
|
94
|
<xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions" />
|
95
|
</div>
|
96
|
</div>
|
97
|
</div>
|
98
|
</xsl:if>
|
99
|
</div>
|
100
|
</xsl:template>
|
101
|
<xsl:template match="gmd:CI_RoleCode">
|
102
|
<xsl:apply-templates />
|
103
|
</xsl:template>
|
104
|
<xsl:template match="gmd:CI_Telephone">
|
105
|
<xsl:for-each select="./gmd:voice">
|
106
|
<div class="control-group">
|
107
|
<label class="control-label">Voice</label>
|
108
|
<div class="controls">
|
109
|
<div class="controls-well">
|
110
|
<xsl:apply-templates />
|
111
|
</div>
|
112
|
</div>
|
113
|
</div>
|
114
|
</xsl:for-each>
|
115
|
<xsl:for-each select="./gmd:facsimile">
|
116
|
<div class="control-group">
|
117
|
<label class="control-label">Fax</label>
|
118
|
<div class="controls">
|
119
|
<div class="controls-well">
|
120
|
<xsl:apply-templates />
|
121
|
</div>
|
122
|
</div>
|
123
|
</div>
|
124
|
</xsl:for-each>
|
125
|
</xsl:template>
|
126
|
<xsl:template match="gmd:CI_Address">
|
127
|
<xsl:for-each select="./gmd:deliveryPoint">
|
128
|
<div class="control-group">
|
129
|
<label class="control-label">Delivery Point</label>
|
130
|
<div class="controls">
|
131
|
<div class="controls-well">
|
132
|
<xsl:apply-templates />
|
133
|
</div>
|
134
|
</div>
|
135
|
</div>
|
136
|
</xsl:for-each>
|
137
|
<xsl:if test="./gmd:city">
|
138
|
<div class="control-group">
|
139
|
<label class="control-label">City</label>
|
140
|
<div class="controls">
|
141
|
<div class="controls-well">
|
142
|
<xsl:apply-templates select="./gmd:city" />
|
143
|
</div>
|
144
|
</div>
|
145
|
</div>
|
146
|
</xsl:if>
|
147
|
<xsl:if test="./gmd:administrativeArea">
|
148
|
<div class="control-group">
|
149
|
<label class="control-label">Administrative Area</label>
|
150
|
<div class="controls">
|
151
|
<div class="controls-well">
|
152
|
<xsl:apply-templates select="./gmd:administrativeArea" />
|
153
|
</div>
|
154
|
</div>
|
155
|
</div>
|
156
|
</xsl:if>
|
157
|
<xsl:if test="./gmd:postalCode">
|
158
|
<div class="control-group">
|
159
|
<label class="control-label">Postal Code</label>
|
160
|
<div class="controls">
|
161
|
<div class="controls-well">
|
162
|
<xsl:apply-templates select="./gmd:postalCode" />
|
163
|
</div>
|
164
|
</div>
|
165
|
</div>
|
166
|
</xsl:if>
|
167
|
<xsl:if test="./gmd:country">
|
168
|
<div class="control-group">
|
169
|
<label class="control-label">Country</label>
|
170
|
<div class="controls">
|
171
|
<div class="controls-well">
|
172
|
<xsl:apply-templates select="./gmd:country" />
|
173
|
</div>
|
174
|
</div>
|
175
|
</div>
|
176
|
</xsl:if>
|
177
|
<xsl:for-each select="./gmd:electronicMailAddress">
|
178
|
<div class="control-group">
|
179
|
<label class="control-label">E-Mail</label>
|
180
|
<div class="controls">
|
181
|
<div class="controls-well">
|
182
|
<xsl:variable name="email" select="./gco:CharacterString/text()" />
|
183
|
<xsl:element name="a">
|
184
|
<xsl:attribute name="href">mailto:
|
185
|
<xsl:value-of select="$email" />
|
186
|
</xsl:attribute>
|
187
|
<xsl:value-of select="$email" />
|
188
|
</xsl:element>
|
189
|
</div>
|
190
|
</div>
|
191
|
</div>
|
192
|
</xsl:for-each>
|
193
|
</xsl:template>
|
194
|
<xsl:template match="gmd:CI_OnlineResource">
|
195
|
<xsl:if test="./gmd:linkage">
|
196
|
<div class="control-group">
|
197
|
<label class="control-label">linkage</label>
|
198
|
<div class="controls">
|
199
|
<div class="controls-well">
|
200
|
<xsl:apply-templates select="./gmd:linkage" />
|
201
|
</div>
|
202
|
</div>
|
203
|
</div>
|
204
|
</xsl:if>
|
205
|
<xsl:if test="./gmd:protocol">
|
206
|
<div class="control-group">
|
207
|
<label class="control-label">protocol</label>
|
208
|
<div class="controls">
|
209
|
<div class="controls-well">
|
210
|
<xsl:apply-templates select="./gmd:protocol" />
|
211
|
</div>
|
212
|
</div>
|
213
|
</div>
|
214
|
</xsl:if>
|
215
|
<xsl:if test="./gmd:applicationProfile">
|
216
|
<div class="control-group">
|
217
|
<label class="control-label">applicationProfile</label>
|
218
|
<div class="controls">
|
219
|
<div class="controls-well">
|
220
|
<xsl:apply-templates select="./gmd:applicationProfile" />
|
221
|
</div>
|
222
|
</div>
|
223
|
</div>
|
224
|
</xsl:if>
|
225
|
<xsl:if test="./gmd:name">
|
226
|
<div class="control-group">
|
227
|
<label class="control-label">name</label>
|
228
|
<div class="controls">
|
229
|
<div class="controls-well">
|
230
|
<xsl:apply-templates select="./gmd:name" />
|
231
|
</div>
|
232
|
</div>
|
233
|
</div>
|
234
|
</xsl:if>
|
235
|
<xsl:if test="./gmd:description">
|
236
|
<div class="control-group">
|
237
|
<label class="control-label">description</label>
|
238
|
<div class="controls">
|
239
|
<div class="controls-well">
|
240
|
<xsl:apply-templates select="./gmd:description" />
|
241
|
</div>
|
242
|
</div>
|
243
|
</div>
|
244
|
</xsl:if>
|
245
|
<xsl:if test="./gmd:function">
|
246
|
<div class="control-group">
|
247
|
<label class="control-label">function</label>
|
248
|
<div class="controls">
|
249
|
<div class="controls-well">
|
250
|
<xsl:apply-templates select="./gmd:function" />
|
251
|
</div>
|
252
|
</div>
|
253
|
</div>
|
254
|
</xsl:if>
|
255
|
</xsl:template>
|
256
|
<xsl:template match="gmd:CI_Citation">
|
257
|
<div class="control-group">
|
258
|
<label class="control-label">Title</label>
|
259
|
<div class="controls">
|
260
|
<div class="controls-well">
|
261
|
<xsl:apply-templates select="./gmd:title" />
|
262
|
</div>
|
263
|
</div>
|
264
|
</div>
|
265
|
<xsl:if test="./gmd:alternateTitle">
|
266
|
<xsl:for-each select="./gmd:alternateTitle">
|
267
|
<div class="control-group">
|
268
|
<label class="control-label">Alternate Title</label>
|
269
|
<div class="controls">
|
270
|
<div class="controls-well">
|
271
|
<xsl:apply-templates />
|
272
|
</div>
|
273
|
</div>
|
274
|
</div>
|
275
|
</xsl:for-each>
|
276
|
</xsl:if>
|
277
|
<xsl:for-each select="./gmd:date">
|
278
|
<div class="control-group">
|
279
|
<label class="control-label">Date</label>
|
280
|
<div class="controls">
|
281
|
<div class="controls-well">
|
282
|
<xsl:apply-templates />
|
283
|
</div>
|
284
|
</div>
|
285
|
</div>
|
286
|
</xsl:for-each>
|
287
|
<xsl:if test="./gmd:edition">
|
288
|
<xsl:for-each select="./gmd:edition">
|
289
|
<div class="control-group">
|
290
|
<label class="control-label">Edition</label>
|
291
|
<div class="controls">
|
292
|
<div class="controls-well">
|
293
|
<xsl:apply-templates />
|
294
|
</div>
|
295
|
</div>
|
296
|
</div>
|
297
|
</xsl:for-each>
|
298
|
</xsl:if>
|
299
|
<xsl:if test="./gmd:editionDate">
|
300
|
<div class="control-group">
|
301
|
<label class="control-label">Edition Date</label>
|
302
|
<div class="controls">
|
303
|
<div class="controls-well">
|
304
|
<xsl:apply-templates />
|
305
|
</div>
|
306
|
</div>
|
307
|
</div>
|
308
|
</xsl:if>
|
309
|
<xsl:if test="./gmd:identifier">
|
310
|
<xsl:for-each select="./gmd:identifier">
|
311
|
<div class="control-group">
|
312
|
<label class="control-label">Identifier</label>
|
313
|
<div class="controls">
|
314
|
<div class="controls-well">
|
315
|
<xsl:apply-templates />
|
316
|
</div>
|
317
|
</div>
|
318
|
</div>
|
319
|
</xsl:for-each>
|
320
|
</xsl:if>
|
321
|
<xsl:if test="./gmd:citedResponsibleParty">
|
322
|
<xsl:for-each select="./gmd:citedResponsibleParty">
|
323
|
<div class="control-group">
|
324
|
<label class="control-label">Cited Responsible Party</label>
|
325
|
<div class="controls">
|
326
|
<div class="controls-well">
|
327
|
<xsl:apply-templates />
|
328
|
</div>
|
329
|
</div>
|
330
|
</div>
|
331
|
</xsl:for-each>
|
332
|
</xsl:if>
|
333
|
<xsl:if test="./gmd:presentationForm">
|
334
|
<xsl:for-each select="./gmd:presentationForm">
|
335
|
<div class="control-group">
|
336
|
<label class="control-label">Presentation Form</label>
|
337
|
<div class="controls">
|
338
|
<div class="controls-well">
|
339
|
<xsl:apply-templates />
|
340
|
</div>
|
341
|
</div>
|
342
|
</div>
|
343
|
</xsl:for-each>
|
344
|
</xsl:if>
|
345
|
<xsl:if test="./gmd:series">
|
346
|
<div class="control-group">
|
347
|
<label class="control-label">Series</label>
|
348
|
<div class="controls">
|
349
|
<div class="controls-well">
|
350
|
<xsl:apply-templates />
|
351
|
</div>
|
352
|
</div>
|
353
|
</div>
|
354
|
</xsl:if>
|
355
|
<xsl:if test="./gmd:otherCitationDetails">
|
356
|
<div class="control-group">
|
357
|
<label class="control-label">Other Citation Details</label>
|
358
|
<div class="controls">
|
359
|
<div class="controls-well">
|
360
|
<xsl:apply-templates />
|
361
|
</div>
|
362
|
</div>
|
363
|
</div>
|
364
|
</xsl:if>
|
365
|
<xsl:if test="./gmd:collectiveTitle">
|
366
|
<div class="control-group">
|
367
|
<label class="control-label">Collective Title</label>
|
368
|
<div class="controls">
|
369
|
<div class="controls-well">
|
370
|
<xsl:apply-templates />
|
371
|
</div>
|
372
|
</div>
|
373
|
</div>
|
374
|
</xsl:if>
|
375
|
<xsl:if test="./gmd:ISBN">
|
376
|
<div class="control-group">
|
377
|
<label class="control-label">ISBN</label>
|
378
|
<div class="controls">
|
379
|
<div class="controls-well">
|
380
|
<xsl:apply-templates />
|
381
|
</div>
|
382
|
</div>
|
383
|
</div>
|
384
|
</xsl:if>
|
385
|
<xsl:if test="./gmd:ISSN">
|
386
|
<div class="control-group">
|
387
|
<label class="control-label">ISSN</label>
|
388
|
<div class="controls">
|
389
|
<div class="controls-well">
|
390
|
<xsl:apply-templates />
|
391
|
</div>
|
392
|
</div>
|
393
|
</div>
|
394
|
</xsl:if>
|
395
|
</xsl:template>
|
396
|
</xsl:stylesheet>
|