Project

General

Profile

« Previous | Next » 

Revision 10385

Added by Bryce Mecum about 7 years ago

Tidy up ISO stylesheets. This is an set of iterative tweaks both to the
in-file formatting as well as a bit of small tweaks to how things work.

View differences:

lib/style/skins/metacatui/iso19115/iso-ci.xsl
1 1
<?xml version="1.0"?>
2 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" 
6
  version="1.0">
7

  
8
  <!-- CI_ResponsibleParty -->
9
  <xsl:template match="gmd:CI_ResponsibleParty">
10
    <div class="controls-well">
11
      <xsl:if test="./gmd:individualName">
12
        <div class="control-group">
13
          <label class="control-label">Individual</label>
14
          <div class="controls">
15
            <div class="controls-well">
16
              <xsl:apply-templates select="./gmd:individualName" />
17
            </div>
18
          </div>
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">
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">
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">
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:contactInfo/gmd:CI_Contact/gmd:phone">
40
                <div class="control-group">
41
                    <label class="control-label">Phone</label>
42
                    <div class="controls">
43
                        <div class="controls-well">
44
                            <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:phone" />
45
                        </div>
46
                    </div>
47
                </div>
48
            </xsl:if>
49
            <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:address">
50
                <div class="control-group">
51
                    <label class="control-label">Address</label>
52
                    <div class="controls">
53
                        <div class="controls-well">
54
                            <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:address" />
55
                        </div>
56
                    </div>
57
                </div>
58
            </xsl:if>
59
            <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource">
60
                <div class="control-group">
61
                    <label class="control-label">Online Resource</label>
62
                    <div class="controls">
63
                        <div class="controls-well">
64
                            <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource" />
65
                        </div>
66
                    </div>
67
                </div>
68
            </xsl:if>
69
            <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService">
70
                <div class="control-group">
71
                    <label class="control-label">Hours of Service</label>
72
                    <div class="controls">
73
                        <div class="controls-well">
74
                            <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService" />
75
                        </div>
76
                    </div>
77
                </div>
78
            </xsl:if>
79
            <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions">
80
                <div class="control-group">
81
                    <label class="control-label">Contact Instructions</label>
82
                    <div class="controls">
83
                        <div class="controls-well">
84
                            <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions" />
85
                        </div>
86
                    </div>
87
                </div>
88
            </xsl:if>
89
            <xsl:if test="./gmd:role">
90
                <div class="control-group">
91
                    <label class="control-label">Role</label>
92
                    <div class="controls">
93
                        <div class="controls-well">
94
                            <xsl:apply-templates select="./gmd:role" />
95
                        </div>
96
                    </div>
97
                </div>
98
            </xsl:if>
19 99
        </div>
20
      </xsl:if>
21

  
22
      <xsl:if test="./gmd:organisationName">
23
        <div class="control-group">
24
          <label class="control-label">Organization</label>
25
          <div class="controls">
26
            <div class="controls-well">
27
              <xsl:apply-templates select="./gmd:organisationName" />
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>
28 113
            </div>
29
          </div>
30
        </div>
31
      </xsl:if>
32

  
33
      <xsl:if test="./gmd:positionName">
34
        <div class="control-group">
35
          <label class="control-label">Position</label>
36
          <div class="controls">
37
            <div class="controls-well">
38
              <xsl:apply-templates select="./gmd:positionName" />
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>
39 123
            </div>
40
          </div>
41
        </div>
42
      </xsl:if>
43

  
44
      <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:phone">
45
        <div class="control-group">
46
          <label class="control-label">Phone</label>
47
          <div class="controls">
48
            <div class="controls-well">
49
              <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:phone" />
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>
50 135
            </div>
51
          </div>
52
        </div>
53
      </xsl:if>
54

  
55
      <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:address">
56
        <div class="control-group">
57
          <label class="control-label">Address</label>
58
          <div class="controls">
59
            <div class="controls-well">
60
              <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:address" />
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>
61 145
            </div>
62
          </div>
63
        </div>
64
      </xsl:if>
65

  
66
      <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource">
67
        <div class="control-group">
68
          <label class="control-label">Online Resource</label>
69
          <div class="controls">
70
            <div class="controls-well">
71
              <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource" />
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>
72 155
            </div>
73
          </div>
74
        </div>
75
      </xsl:if>
76

  
77
      <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService">
78
        <div class="control-group">
79
          <label class="control-label">Hours of Service</label>
80
          <div class="controls">
81
            <div class="controls-well">
82
              <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService" />
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>
83 165
            </div>
84
          </div>
85
        </div>
86
      </xsl:if>
87

  
88
      <xsl:if test="./gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions">
89
        <div class="control-group">
90
          <label class="control-label">Contact Instructions</label>
91
          <div class="controls">
92
            <div class="controls-well">
93
              <xsl:apply-templates select="./gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions" />
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>
94 175
            </div>
95
          </div>
96
        </div>
97
      </xsl:if>
98

  
99
      <xsl:if test="./gmd:role">
100
        <div class="control-group">
101
          <label class="control-label">Role</label>
102
          <div class="controls">
103
            <div class="controls-well">
104
              <xsl:apply-templates select="./gmd:role" />
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>
105 191
            </div>
106
          </div>
107
        </div>
108
      </xsl:if>
109
    </div>
110
  </xsl:template>
111

  
112
  <xsl:template match="gmd:CI_RoleCode">
113
    <xsl:apply-templates />
114
  </xsl:template>
115
  
116
  <xsl:template match="gmd:CI_Telephone">
117
    <xsl:for-each select="./gmd:voice">
118
      <div class="control-group">
119
          <label class="control-label">Voice</label>
120
          <div class="controls">
121
            <div class="controls-well">
122
              <xsl:apply-templates />
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>
123 203
            </div>
124
          </div>
125
        </div>
126
    </xsl:for-each>
127

  
128
    <xsl:for-each select="./gmd:facsimile">
129
      <div class="control-group">
130
          <label class="control-label">Fax</label>
131
          <div class="controls">
132
            <div class="controls-well">
133
              <xsl:apply-templates />
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>
134 213
            </div>
135
          </div>
136
        </div>
137
    </xsl:for-each>
138
  </xsl:template>
139
  
140
  <xsl:template match="gmd:CI_Address">
141
    <xsl:for-each select="./gmd:deliveryPoint">
142
      <div class="control-group">
143
          <label class="control-label">Delivery Point</label>
144
          <div class="controls">
145
            <div class="controls-well">
146
              <xsl:apply-templates />
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>
147 223
            </div>
148
          </div>
149
        </div>
150
    </xsl:for-each>
151

  
152
    <xsl:if test="./gmd:city">
153
      <div class="control-group">
154
        <label class="control-label">City</label>
155
        <div class="controls">
156
          <div class="controls-well">
157
            <xsl:apply-templates select="./gmd:city" />
158
          </div>
159
        </div>
160
      </div>
161
    </xsl:if>
162

  
163
    <xsl:if test="./gmd:administrativeArea">
164
      <div class="control-group">
165
        <label class="control-label">Administrative Area</label>
166
        <div class="controls">
167
          <div class="controls-well">
168
            <xsl:apply-templates select="./gmd:administrativeArea" />
169
          </div>
170
        </div>
171
      </div>
172
    </xsl:if>
173
    
174
    <xsl:if test="./gmd:postalCode">
175
      <div class="control-group">
176
        <label class="control-label">Postal Code</label>
177
        <div class="controls">
178
          <div class="controls-well">
179
            <xsl:apply-templates select="./gmd:postalCode" />
180
          </div>
181
        </div>
182
      </div>
183
    </xsl:if>
184
    
185
    <xsl:if test="./gmd:country">
186
      <div class="control-group">
187
        <label class="control-label">Country</label>
188
        <div class="controls">
189
          <div class="controls-well">
190
            <xsl:apply-templates select="./gmd:country" />
191
          </div>
192
        </div>
193
      </div>
194
    </xsl:if>
195

  
196
    <xsl:for-each select="./gmd:electronicMailAddress">
197
      <div class="control-group">
198
          <label class="control-label">E-Mail</label>
199
          <div class="controls">
200
            <div class="controls-well">
201

  
202
              <xsl:variable name="email" select="./gco:CharacterString/text()" />
203
              <xsl:element name="a">
204
                <xsl:attribute name="href">mailto:<xsl:value-of select="$email" /></xsl:attribute>
205
                <xsl:value-of select="$email" />
206
              </xsl:element>
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>
207 233
            </div>
208
          </div>
209
        </div>
210
    </xsl:for-each>
211
  </xsl:template>
212

  
213
  <xsl:template match="gmd:CI_OnlineResource">
214
    <xsl:if test="./gmd:linkage">
215
      <div class="control-group">
216
        <label class="control-label">linkage</label>
217
        <div class="controls">
218
          <div class="controls-well">
219
            <xsl:apply-templates select="./gmd:linkage" />
220
          </div>
221
        </div>
222
      </div>
223
    </xsl:if>
224

  
225
    <xsl:if test="./gmd:protocol">
226
      <div class="control-group">
227
        <label class="control-label">protocol</label>
228
        <div class="controls">
229
          <div class="controls-well">
230
            <xsl:apply-templates select="./gmd:protocol" />
231
          </div>
232
        </div>
233
      </div>
234
    </xsl:if>
235

  
236
    <xsl:if test="./gmd:applicationProfile">
237
      <div class="control-group">
238
        <label class="control-label">applicationProfile</label>
239
        <div class="controls">
240
          <div class="controls-well">
241
            <xsl:apply-templates select="./gmd:applicationProfile" />
242
          </div>
243
        </div>
244
      </div>
245
    </xsl:if>
246

  
247
    <xsl:if test="./gmd:name">
248
      <div class="control-group">
249
        <label class="control-label">name</label>
250
        <div class="controls">
251
          <div class="controls-well">
252
            <xsl:apply-templates select="./gmd:name" />
253
          </div>
254
        </div>
255
      </div>
256
    </xsl:if>
257

  
258
    <xsl:if test="./gmd:description">
259
      <div class="control-group">
260
        <label class="control-label">description</label>
261
        <div class="controls">
262
          <div class="controls-well">
263
            <xsl:apply-templates select="./gmd:description" />
264
          </div>
265
        </div>
266
      </div>
267
    </xsl:if>
268

  
269
    <xsl:if test="./gmd:function">
270
      <div class="control-group">
271
        <label class="control-label">function</label>
272
        <div class="controls">
273
          <div class="controls-well">
274
            <xsl:apply-templates select="./gmd:function" />
275
          </div>
276
        </div>
277
      </div>
278
    </xsl:if>
279
  </xsl:template>
280

  
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>
281 256
    <xsl:template match="gmd:CI_Citation">
282 257
        <div class="control-group">
283 258
            <label class="control-label">Title</label>
......
287 262
                </div>
288 263
            </div>
289 264
        </div>
290

  
291 265
        <xsl:if test="./gmd:alternateTitle">
292 266
            <xsl:for-each select="./gmd:alternateTitle">
293 267
                <div class="control-group">
......
300 274
                </div>
301 275
            </xsl:for-each>
302 276
        </xsl:if>
303

  
304 277
        <xsl:for-each select="./gmd:date">
305 278
            <div class="control-group">
306 279
                <label class="control-label">Date</label>
......
311 284
                </div>
312 285
            </div>
313 286
        </xsl:for-each>
314

  
315 287
        <xsl:if test="./gmd:edition">
316 288
            <xsl:for-each select="./gmd:edition">
317 289
                <div class="control-group">
......
324 296
                </div>
325 297
            </xsl:for-each>
326 298
        </xsl:if>
327

  
328 299
        <xsl:if test="./gmd:editionDate">
329 300
            <div class="control-group">
330 301
                <label class="control-label">Edition Date</label>
......
335 306
                </div>
336 307
            </div>
337 308
        </xsl:if>
338

  
339 309
        <xsl:if test="./gmd:identifier">
340 310
            <xsl:for-each select="./gmd:identifier">
341 311
                <div class="control-group">
......
348 318
                </div>
349 319
            </xsl:for-each>
350 320
        </xsl:if>
351

  
352 321
        <xsl:if test="./gmd:citedResponsibleParty">
353 322
            <xsl:for-each select="./gmd:citedResponsibleParty">
354 323
                <div class="control-group">
......
361 330
                </div>
362 331
            </xsl:for-each>
363 332
        </xsl:if>
364

  
365 333
        <xsl:if test="./gmd:presentationForm">
366 334
            <xsl:for-each select="./gmd:presentationForm">
367 335
                <div class="control-group">
......
374 342
                </div>
375 343
            </xsl:for-each>
376 344
        </xsl:if>
377

  
378 345
        <xsl:if test="./gmd:series">
379 346
            <div class="control-group">
380 347
                <label class="control-label">Series</label>
......
385 352
                </div>
386 353
            </div>
387 354
        </xsl:if>
388

  
389 355
        <xsl:if test="./gmd:otherCitationDetails">
390 356
            <div class="control-group">
391 357
                <label class="control-label">Other Citation Details</label>
......
396 362
                </div>
397 363
            </div>
398 364
        </xsl:if>
399

  
400 365
        <xsl:if test="./gmd:collectiveTitle">
401 366
            <div class="control-group">
402 367
                <label class="control-label">Collective Title</label>
......
407 372
                </div>
408 373
            </div>
409 374
        </xsl:if>
410

  
411 375
        <xsl:if test="./gmd:ISBN">
412 376
            <div class="control-group">
413 377
                <label class="control-label">ISBN</label>
......
418 382
                </div>
419 383
            </div>
420 384
        </xsl:if>
421

  
422 385
        <xsl:if test="./gmd:ISSN">
423 386
            <div class="control-group">
424 387
                <label class="control-label">ISSN</label>
......
430 393
            </div>
431 394
        </xsl:if>
432 395
    </xsl:template>
433
</xsl:stylesheet>
396
</xsl:stylesheet>
lib/style/skins/metacatui/iso19115/iso-ex.xsl
17 17
                </div>
18 18
            </div>
19 19
        </xsl:if>
20

  
21 20
        <!-- Geographic -->
22 21
        <xsl:for-each select=".//gmd:geographicElement">
23 22
            <div class="row-fluid geographicCoverage">
......
31 30
                </div>
32 31
            </div>
33 32
        </xsl:for-each>
34

  
35 33
        <!-- Temporal -->
36 34
        <xsl:for-each select=".//gmd:temporalElement">
37 35
            <div class="control-group">
......
43 41
                </div>
44 42
            </div>
45 43
        </xsl:for-each>
46

  
47 44
        <!-- Vertical -->
48 45
        <xsl:for-each select=".//gmd:verticalElement">
49 46
            <div class="control-group">
......
56 53
            </div>
57 54
        </xsl:for-each>
58 55
    </xsl:template>
59

  
60 56
    <!-- EX_GeographicExtent-->
61 57
    <xsl:template match="gmd:EX_GeographicExtent">
62 58
        <xsl:apply-templates />
63 59
    </xsl:template>
64

  
65 60
    <!-- EX_BoundingPolygon-->
66 61
    <xsl:template match="gmd:EX_BoundingPolygon">
67 62
        <xsl:apply-templates />
68 63
    </xsl:template>
69

  
70 64
    <!-- EX_GeographicDescription-->
71 65
    <xsl:template match="gmd:EX_GeographicDescription">
72 66
        <xsl:apply-templates />
73 67
    </xsl:template>
74

  
75 68
    <!-- EX_GeographicBoundingBox-->
76 69
    <xsl:template match="gmd:EX_GeographicBoundingBox">
77 70
        <!-- Set up variables for N E S W -->
......
91 84
            <label class="control-label">North</label>
92 85
            <div class="controls">
93 86
                <div class="controls-well">
94
                    <xsl:value-of select="$north" />&#xa0; degrees          
87
                    <xsl:value-of select="$north" />&#xa0; degrees                          
95 88
                </div>
96 89
            </div>
97 90
        </div>
......
99 92
            <label class="control-label">East</label>
100 93
            <div class="controls">
101 94
                <div class="controls-well">
102
                    <xsl:value-of select="$east" />&#xa0; degrees          
95
                    <xsl:value-of select="$east" />&#xa0; degrees                          
103 96
                </div>
104 97
            </div>
105 98
        </div>
......
107 100
            <label class="control-label">South</label>
108 101
            <div class="controls">
109 102
                <div class="controls-well">
110
                    <xsl:value-of select="$south" />&#xa0; degrees          
103
                    <xsl:value-of select="$south" />&#xa0; degrees                          
111 104
                </div>
112 105
            </div>
113 106
        </div>
......
115 108
            <label class="control-label">West</label>
116 109
            <div class="controls">
117 110
                <div class="controls-well">
118
                    <xsl:value-of select="$west" />&#xa0; degrees          
111
                    <xsl:value-of select="$west" />&#xa0; degrees                          
119 112
                </div>
120 113
            </div>
121 114
        </div>
122 115
        <xsl:apply-templates select="./gmd:extentTypeCode" />
123 116
    </xsl:template>
124

  
125 117
    <!-- gmd:polygon -->
126 118
    <xsl:template match="gmd:polygon">
127 119
        <div class="control-group">
......
133 125
            </div>
134 126
        </div>
135 127
    </xsl:template>
136

  
137 128
    <!-- EX_TemporalExtent -->
138 129
    <xsl:template match="gmd:EX_TemporalExtent">
139 130
        <xsl:apply-templates select=".//gmd:extent/*" />
140 131
    </xsl:template>
141

  
142 132
    <!-- EX_VerticalExtent-->
143 133
    <!-- TODO: Improve DOM structure -->
144 134
    <!-- TODO: Flesh this out a bit more... -->
145 135
    <xsl:template match="gmd:EX_VerticalExtent">
146
        <span>minimumValue: 
136
        <span>minimumValue:             
147 137
            <xsl:value-of select="./gmd:minimumValue/gco:Real" />
148 138
        </span>
149
        <span>maximumValue: 
139
        <span>maximumValue:             
150 140
            <xsl:value-of select="./gmd:maximumValue/gco:Real" />
151 141
        </span>
152
        <span>verticalCRS: 
142
        <span>verticalCRS:             
153 143
            <xsl:value-of select="./gmd:verticalCRS" />
154 144
        </span>
155 145
    </xsl:template>
156

  
157 146
    <!-- TimeInstant-->
158 147
    <!-- TODO
159 148
        - Attributes: frame, calendarEraName, indeterminatePosition
......
161 150
    <xsl:template match="gml:TimeInstant">
162 151
        <label class="control-label">Instant</label>
163 152
        <div class="controls">
164
            <div class="controls-well">  
153
            <div class="controls-well">
165 154
                <xsl:if test="./gmd:description">
166 155
                    <label class="control-label">Description</label>
167 156
                    <div class="controls">
......
172 161
                        </div>
173 162
                    </div>
174 163
                </xsl:if>
175

  
176 164
                <label class="control-label">Time Position</label>
177 165
                <div class="controls">
178 166
                    <div class="controls-well">
179 167
                        <xsl:value-of select=".//gml:timePosition" />
180 168
                    </div>
181 169
                </div>
182

  
183 170
                <xsl:if test=".//gml:timePosition/@calendarEraName">
184 171
                    <label class="control-label">Calendar Era Name</label>
185 172
                    <div class="controls">
......
187 174
                            <xsl:value-of select=".//gml:timePosition/@calendarEraName" />
188 175
                        </div>
189 176
                    </div>
190
                    
191
                
192 177
                </xsl:if>
193 178
                <xsl:if test=".//gml:timePosition/@indeterminatePosition">
194 179
                    <label class="control-label">Time Position</label>
195 180
                    <div class="controls">
196 181
                        <div class="controls-well">
197
                            <xsl:value-of select=".//gml:timePosition/@indeterminatePosition" /> 
182
                            <xsl:value-of select=".//gml:timePosition/@indeterminatePosition" />
198 183
                        </div>
199 184
                    </div>
200 185
                </xsl:if>
201 186
            </div>
202 187
        </div>
203 188
    </xsl:template>
204

  
205 189
    <!-- TimePeriod-->
206 190
    <!-- TODO: 
207 191
        - All the attributes
......
212 196
            <div class="control-group">
213 197
                <label class="control-label">Begin</label>
214 198
                <div class="controls">
215
                    <div class="controls-well"><xsl:value-of select=".//gml:beginPosition" /></div>
199
                    <div class="controls-well">
200
                        <xsl:value-of select=".//gml:beginPosition" />
201
                    </div>
216 202
                    <xsl:if test=".//gml:beginPosition/@calendarEraName">
217 203
                        <span>
218
                            <xsl:value-of select=".//gml:beginPosition/@calendarEraName" /> (calendarEraName)
204
                            <xsl:value-of select=".//gml:beginPosition/@calendarEraName" /> (calendarEraName)                        
219 205
                        </span>
220 206
                    </xsl:if>
221 207
                    <xsl:if test=".//gml:beginPosition/@indeterminatePosition">
222 208
                        <span>
223
                            <xsl:value-of select=".//gml:beginPosition/@indeterminatePosition" /> (indeterminatePosition)
209
                            <xsl:value-of select=".//gml:beginPosition/@indeterminatePosition" /> (indeterminatePosition)                        
224 210
                        </span>
225 211
                    </xsl:if>
226 212
                </div>
......
230 216
            <div class="control-group">
231 217
                <label class="control-label">End</label>
232 218
                <div class="controls">
233
                    <div class="controls-well"><xsl:value-of select=".//gml:endPosition" /></div>
219
                    <div class="controls-well">
220
                        <xsl:value-of select=".//gml:endPosition" />
221
                    </div>
234 222
                    <xsl:if test=".//gml:endPosition/@calendarEraName">
235 223
                        <span>
236
                            <xsl:value-of select=".//gml:endPosition/@calendarEraName" /> (calendarEraName)
224
                            <xsl:value-of select=".//gml:endPosition/@calendarEraName" /> (calendarEraName)                        
237 225
                        </span>
238 226
                    </xsl:if>
239 227
                    <xsl:if test=".//gml:endPosition/@indeterminatePosition">
240 228
                        <span>
241
                            <xsl:value-of select=".//gml:endPosition/@indeterminatePosition" /> (indeterminatePosition)
229
                            <xsl:value-of select=".//gml:endPosition/@indeterminatePosition" /> (indeterminatePosition)                        
242 230
                        </span>
243 231
                    </xsl:if>
244 232
                </div>
245 233
            </div>
246 234
        </xsl:if>
247 235
        <xsl:if test=".//gml:duration">
248
            <span>duration:
236
            <span>duration:                
249 237
                <xsl:value-of select=".//gml:duration" />
250 238
            </span>
251 239
        </xsl:if>
252 240
        <xsl:if test=".//gml:timeInterval">
253
            <span>timeInterval:
241
            <span>timeInterval:                
254 242
                <xsl:value-of select=".//gml:timeInterval" />
255 243
            </span>
256 244
        </xsl:if>
257 245
    </xsl:template>
258

  
259 246
    <!-- extentTypeCode -->
260 247
    <xsl:template match="gmd:extentTypeCode">
261 248
        <div class="control-group extentTypeCode">
......
271 258
            </div>
272 259
        </div>
273 260
    </xsl:template>
274
</xsl:stylesheet>
261
</xsl:stylesheet>
lib/style/skins/metacatui/iso19115/iso-gco.xsl
1 1
<?xml version="1.0"?>
2
<xsl:stylesheet
3
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
        xmlns:gco="http://www.isotc211.org/2005/gco"
5
        version="1.0">
2
<xsl:stylesheet 
3
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
4
    xmlns:gco="http://www.isotc211.org/2005/gco" version="1.0">
6 5
    <!-- TODO: gco:Date-->
7 6
    <!-- TODO: gco:DateTime-->
8

  
9
    <xsl:template match="gco:CharacterString">
10
        <xsl:value-of select="." />
11
    </xsl:template>
12

  
13 7
    <xsl:template match="gco:Date">
14 8
        <xsl:value-of select="." />
15 9
    </xsl:template>
16

  
17 10
    <xsl:template match="gco:DateTime">
18 11
        <xsl:value-of select="." />
19 12
    </xsl:template>
lib/style/skins/metacatui/iso19115/iso-gmd.xsl
1 1
<?xml version="1.0"?>
2 2
<xsl:stylesheet 
3 3
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
4
    xmlns:gmd="http://www.isotc211.org/2005/gmd" version="1.0">
5

  
4
    xmlns:gmd="http://www.isotc211.org/2005/gmd" 
5
    xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0">
6 6
    <xsl:template match="gmd:URL">
7 7
        <xsl:variable name="url">
8 8
            <xsl:value-of select="./text()" />
......
14 14
            <xsl:value-of select="$url" />
15 15
        </xsl:element>
16 16
    </xsl:template>
17

  
18 17
    <xsl:template match="gmd:date">
19 18
        <xsl:apply-templates />
20 19
    </xsl:template>
21

  
22 20
    <xsl:template match="gmd:dateStamp">
23 21
        <xsl:apply-templates />
24 22
    </xsl:template>
25

  
26 23
    <xsl:template match="gmd:dateType">
27 24
        <xsl:apply-templates />
28 25
    </xsl:template>
29

  
30 26
    <xsl:template match="gmd:resourceConstraints">
31 27
        <!-- Show the title if it's present -->
32 28
        <xsl:if test="../@xlink:title">
......
41 37
        </xsl:if>
42 38
        <xsl:apply-templates />
43 39
    </xsl:template>
44

  
45 40
    <xsl:template match="gmd:distributionInfo">
46 41
        <xsl:apply-templates />
47 42
    </xsl:template>
48

  
49 43
    <!-- BDM: This is a short template for the thesaurus rather than a full 
50 44
    implementation. I did this for space reasons in the view. At some later 
51 45
    point we could consider showing the full thesaurus citation some other way.
52 46
    -->
53 47
    <xsl:template match="gmd:thesaurusName">
54 48
        <xsl:value-of select="./gmd:CI_Citation/gmd:title" />
55
        <xsl:apply-templates select="./gmd:CI_Citation/gmd:date" />
56
        <xsl:if test="./gmd:CI_Citation/gmd:edition">
57
            <xsl:value-of select="gmd:CI_Citation/gmd:edition" />
58
        </xsl:if>
59 49
    </xsl:template>
60
</xsl:stylesheet>
50
</xsl:stylesheet>
lib/style/skins/metacatui/iso19115/iso-gml.xsl
4 4
        xmlns:gml="http://www.opengis.net/gml/3.2" version="1.0">
5 5

  
6 6
    <xsl:template match="gml:Point">
7

  
7
        <!-- TODO -->
8 8
    </xsl:template>
9 9

  
10 10
    <xsl:template match="gml:Polygon">
11

  
11
        <!-- TODO -->
12 12
    </xsl:template>
13 13

  
14 14
    <xsl:template match="gml:interior">
15

  
15
        <!-- TODO -->
16 16
    </xsl:template>
17 17

  
18 18
    <xsl:template match="gml:LinearRing">
19

  
19
        <!-- TODO -->
20 20
    </xsl:template>
21 21

  
22 22
    <xsl:template match="gml:LineString">
23

  
23
        <!-- TODO -->
24 24
    </xsl:template>
25
</xsl:stylesheet>
25
</xsl:stylesheet>
lib/style/skins/metacatui/iso19115/iso-gmx.xsl
1 1
<?xml version="1.0"?>
2
<xsl:stylesheet
3
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
        xmlns:gmx="http://www.isotc211.org/2005/gmx"
5
        xmlns:xlink="http://www.w3.org/1999/xlink"
6
        version="1.0">
7

  
2
<xsl:stylesheet 
3
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
4
    xmlns:gmx="http://www.isotc211.org/2005/gmx" 
5
    xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0">
8 6
    <xsl:template match="gmx:Anchor">
9 7
        <xsl:element name="a">
10 8
            <xsl:attribute name="href">
11 9
                <xsl:value-of select="./@xlink:href" />
12 10
            </xsl:attribute>
13

  
14 11
            <!-- Create the attributes for a Bootstrap tooltip to hold the title -->
15 12
            <xsl:if test="./@xlink:title">
16 13
                <xsl:attribute name="data-toggle">tooltip</xsl:attribute>
17 14
                <xsl:attribute name="data-placement">top</xsl:attribute>
18
                <xsl:attribute name="title"><xsl:value-of select="./@xlink:title" /></xsl:attribute>
15
                <xsl:attribute name="title">
16
                    <xsl:value-of select="./@xlink:title" />
17
                </xsl:attribute>
19 18
            </xsl:if>
20

  
21 19
            <xsl:value-of select="./text()" />
22 20
        </xsl:element>
23 21
    </xsl:template>
lib/style/skins/metacatui/iso19115/iso-md.xsl
1 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
  version="1.0">
6

  
7
  <xsl:template match="gmd:MD_Identifier">
8
    <xsl:apply-templates select="./gmd:code" />
9
  </xsl:template>
10

  
2
<xsl:stylesheet 
3
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
4
    xmlns:gmd="http://www.isotc211.org/2005/gmd" version="1.0">
5
    <xsl:template match="gmd:MD_Identifier">
6
        <xsl:apply-templates select="./gmd:code" />
7
    </xsl:template>
11 8
    <xsl:template match="gmd:MD_TopicCategoryCode">
12 9
        <xsl:apply-templates />
13 10
    </xsl:template>
14

  
15
  <xsl:template match="gmd:MD_Keywords">
16
      <table class="table table-condensed">
17
          <thead>
18
              <tr>
19
                  <th>Keyword</th>
20
              </tr>
21
          </thead>
22
          <tbody>
23
              <xsl:for-each select="./gmd:keyword">
24
                  <tr>
25
                    <td><xsl:apply-templates select="." /></td>
26
                  </tr>
27
              </xsl:for-each>
28
          </tbody>
29
      </table>
30

  
31
      <xsl:if test="./gmd:type">
32
          <div class="control-group">
33
              <label class="control-label">Type</label>
34
              <div class="controls">
35
                  <div class="controls-well">
36
                      <xsl:value-of select="./gmd:type/gmd:MD_KeywordTypeCode/text()" />
37
                  </div>
38
              </div>
39
          </div>
40
      </xsl:if>
41

  
11
    <xsl:template match="gmd:MD_Keywords">
12
        <table class="table table-condensed">
13
            <thead>
14
                <tr>
15
                    <th>Keyword</th>
16
                </tr>
17
            </thead>
18
            <tbody>
19
                <xsl:for-each select="./gmd:keyword">
20
                    <tr>
21
                        <td>
22
                            <xsl:apply-templates select="." />
23
                        </td>
24
                    </tr>
25
                </xsl:for-each>
26
            </tbody>
27
        </table>
28
        <xsl:if test="./gmd:type">
29
            <div class="control-group">
30
                <label class="control-label">Type</label>
31
                <div class="controls">
32
                    <div class="controls-well">
33
                        <xsl:value-of select="./gmd:type/gmd:MD_KeywordTypeCode/text()" />
34
                    </div>
35
                </div>
36
            </div>
37
        </xsl:if>
42 38
        <xsl:if test="./gmd:thesaurusName">
43 39
            <div class="control-group">
44 40
                <label class="control-label">Thesaurus</label>
......
49 45
                </div>
50 46
            </div>
51 47
        </xsl:if>
52

  
53
  </xsl:template>
54

  
48
    </xsl:template>
49
    <xsl:template match="gmd:MD_Constraints">
50
        <div class="control-group">
51
            <label class="control-label">Resource Constraint</label>
52
            <div class="controls">
53
                <div class="controls-well">
54
                    <xsl:apply-templates />
55
                </div>
56
            </div>
57
        </div>
58
    </xsl:template>
59
    <xsl:template match="gmd:MD_LegalConstraints">
60
        <div class="control-group">
61
            <label class="control-label">Legal Constraint</label>
62
            <div class="controls">
63
                <div class="controls-well">
64
                    <xsl:for-each select="./gmd:useLimitation">
65
                        <div class="control-group">
66
                            <label class="control-label">Use Limitation</label>
67
                            <div class="controls">
68
                                <div class="controls-well">
69
                                    <xsl:apply-templates />
70
                                </div>
71
                            </div>
72
                        </div>
73
                    </xsl:for-each>
74
                    <xsl:for-each select="./gmd:accessConstraints">
75
                        <div class="control-group">
76
                            <label class="control-label">Access Constraint</label>
77
                            <div class="controls">
78
                                <div class="controls-well">
79
                                    <xsl:apply-templates />
80
                                </div>
81
                            </div>
82
                        </div>
83
                    </xsl:for-each>
84
                    <xsl:for-each select="./gmd:useConstraints">
85
                        <div class="control-group">
86
                            <label class="control-label">Use Constraints</label>
87
                            <div class="controls">
88
                                <div class="controls-well">
89
                                    <xsl:apply-templates />
90
                                </div>
91
                            </div>
92
                        </div>
93
                    </xsl:for-each>
94
                    <xsl:for-each select="./gmd:otherConstraints">
95
                        <div class="control-group">
96
                            <label class="control-label">Other Constraint</label>
97
                            <div class="controls">
98
                                <div class="controls-well">
99
                                    <xsl:apply-templates />
100
                                </div>
101
                            </div>
102
                        </div>
103
                    </xsl:for-each>
104
                </div>
105
            </div>
106
        </div>
107
    </xsl:template>
108
    <xsl:template match="gmd:MD_SecurityConstraints">
109
        <div class="control-group">
110
            <label class="control-label">Security Constraint</label>
111
            <div class="controls">
112
                <div class="controls-well">
113
                    <xsl:apply-templates />
114
                </div>
115
            </div>
116
        </div>
117
    </xsl:template>
55 118
    <!-- TODO: gmd:CI_PresentationFormCode-->
56 119
    <!-- TODO: gmd:CI_Series -->
57
</xsl:stylesheet>
120
</xsl:stylesheet>
lib/style/skins/metacatui/iso19115/isoroot.xsl
2 2
<xsl:stylesheet 
3 3
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
4 4
    xmlns:gmd="http://www.isotc211.org/2005/gmd" 
5
    xmlns:gco="http://www.isotc211.org/2005/gco" 
6
    version="1.0">
7

  
5
    xmlns:gco="http://www.isotc211.org/2005/gco" version="1.0">
8 6
    <xsl:import href="iso-md.xsl"/>
9 7
    <xsl:import href="iso-ci.xsl"/>
10 8
    <xsl:import href="iso-ex.xsl"/>
......
12 10
    <xsl:import href="iso-gmd.xsl"/>
13 11
    <xsl:import href="iso-gml.xsl"/>
14 12
    <xsl:import href="iso-gmx.xsl"/>
15

  
16
    <xsl:output method="html"
17
                encoding="UTF-8"
18
                doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
19
                doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
20
                indent="yes" />
21

  
22
    <!-- TODO: Figure out what this match statement should have in it -->
23
    <!-- TODO: Cover gmd:identificationInfo/SV_ServiceIdentification -->
24

  
13
    <xsl:output method="html" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" indent="yes" />
25 14
    <xsl:template match="*[local-name()='MD_Metadata'] | *[local-name()='MI_Metadata']">
26 15
        <form class="form-horizontal">
27 16
            <div class="control-group entity">
28 17
                <h4>General</h4>
29
                <!-- fileIdentifier 1:1 -->
30
                <div class="control-group">
31
                    <label class="control-label">Identifier</label>
32
                    <div class="controls">
33
                        <div class="controls-well">
34
                            <xsl:apply-templates select="./gmd:fileIdentifier" />
18
                <!-- fileIdentifier 0:1 -->
19
                <xsl:if test="./gmd:fileIdentifier">
20
                    <div class="control-group">
21
                        <label class="control-label">File Identifier</label>
22
                        <div class="controls">
23
                            <div class="controls-well">
24
                                <xsl:apply-templates select="./gmd:fileIdentifier" />
25
                            </div>
35 26
                        </div>
36 27
                    </div>
37
                </div>
38

  
39
                <!-- TODO: language 1:1 -->
40
                <!-- TODO: characterSet 1:1 -->
41

  
42
                <!-- Parent Identifier 1:1 conditional -->
28
                </xsl:if>
29
                <!-- TODO: language 0:1 -->
30
                <!-- TODO: characterSet 0:1 -->
31
                <!-- Parent Identifier 0:1 -->
43 32
                <xsl:if test="./gmd:parentIdentifier">
44 33
                    <div class="control-group">
45 34
                        <label class="control-label">Parent Identifier</label>
......
50 39
                        </div>
51 40
                    </div>
52 41
                </xsl:if>
53

  
54
                <!-- TODO: hierarchyLevel 0:inf -->
55
                <!-- TODO: hierarchyLevelName 0:inf -->
56

  
57
                <!-- Alternate identifier(s) 0:inf-->
42
                <!-- TODO: hierarchyLevel 0:∞ -->
43
                <!-- TODO: hierarchyLevelName 0:∞ -->
44
                <!-- Alternate identifier(s) 0:∞-->
58 45
                <!-- gmd:identifier is an optional part of the CI_Citation element -->
59
                <xsl:for-each select=".//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:identifier">
46
                <xsl:for-each select="./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:identifier">
60 47
                    <div class="control-group">
61
                        <label class="control-label">Identifier</label>
48
                        <label class="control-label">Cited Identifier</label>
62 49
                        <div class="controls">
63 50
                            <div class="controls-well">
64 51
                                <xsl:apply-templates />
......
66 53
                        </div>
67 54
                    </div>
68 55
                </xsl:for-each>
69

  
70
                <!-- Abstract 1:inf
71
                    Can be missing
72
                -->
73
                <xsl:if test="normalize-space(.//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/text()) != ''">
74
                    <xsl:for-each select=".//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract">
56
                <!-- Abstract 0:∞  Only shown if the abstract has content -->
57
                <xsl:for-each select="./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract">
58
                    <xsl:if test="normalize-space(./gco:CharacterString/text()) != ''">
75 59
                        <div class="control-group">
76 60
                            <label class="control-label">Abstract</label>
77 61
                            <div class="controls">
......
80 64
                                </div>
81 65
                            </div>
82 66
                        </div>
83
                    </xsl:for-each>
84
                </xsl:if>
85

  
86
                <!-- Publication 1:1 -->
87
                <!-- TODO: Find out where this is in the metadata. -->
88
                <!--<div class="control-group">-->
89
                    <!--<label class="control-label">Publication Date</label>-->
90
                    <!--<div class="controls">-->
91
                        <!--<div class="controls-well">-->
92
                            <!--<xsl:apply-templates select="./gmd:dateStamp" />-->
93
                        <!--</div>-->
94
                    <!--</div>-->
95
                <!--</div>-->
96

  
67
                    </xsl:if>
68
                </xsl:for-each>
69
                <!-- Purpose 0:∞ -->
70
                <xsl:for-each select="./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:purpose">
71
                    <xsl:if test="normalize-space(./gco:CharacterString/text()) != ''">
72
                        <div class="control-group">
73
                            <label class="control-label">Purpose</label>
74
                            <div class="controls">
75
                                <div class="controls-well">
76
                                    <xsl:apply-templates />
77
                                </div>
78
                            </div>
79
                        </div>
80
                    </xsl:if>
81
                </xsl:for-each>
82
                <!-- Publication date -->
83
                <xsl:for-each select="./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date">
84
                    <xsl:if test="./gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode/text() = 'publication'">
85
                        <div class="control-group">
86
                            <label class="control-label">Publication Date</label>
87
                            <div class="controls">
88
                                <div class="controls-well">
89
                                    <xsl:apply-templates select="./gmd:CI_Date/gmd:date" />
90
                                </div>
91
                            </div>
92
                        </div>
93
                    </xsl:if>
94
                </xsl:for-each>
95
                <!-- Status  -->
96
                <xsl:for-each select="./gmd:status">
97
                    <div class="control-group">
98
                        <label class="control-label">Status</label>
99
                        <div class="controls">
100
                            <div class="controls-well">
101
                                <xsl:apply-templates />
102
                            </div>
103
                        </div>
104
                    </div>
105
                </xsl:for-each>
97 106
                <!-- Topic Categories
98 107

  
99 108
                These span multiple MD_DataIdentification Sections so all are
......
124 133
                        </div>
125 134
                    </div>
126 135
                </xsl:if>
127

  
128 136
                <!-- Keywords
129 137

  
130 138
                These span multiple MD_DataIdentification Sections so all are
......
146 154
                    </div>
147 155
                </xsl:if>
148 156
            </div>
149

  
150 157
            <div class="control-group entity">
151 158
                <h4>People and Associated Parties</h4>
152 159
                <!-- Metadata Contact(s) 1:inf -->
153 160
                <div class="control-group">
154
                    <label class="control-label">Metadata Contact(s)</label>
161
                    <label class="control-label">Metadata Contacts</label>
155 162
                    <div class="controls">
156 163
                        <div class="controls-well">
157
                            <xsl:for-each select=".//gmd:contact">
164
                            <xsl:for-each select="./gmd:contact">
158 165
                                <xsl:apply-templates />
159 166
                            </xsl:for-each>
160 167
                        </div>
161 168
                    </div>
162 169
                </div>
163

  
164 170
                <!-- Data Set Contact(s) -->
165 171
                <div class="control-group">
166 172
                    <label class="control-label">Data Set Contacts</label>
167 173
                    <div class="controls">
168 174
                        <div class="controls-well">
169
                            <xsl:apply-templates select=".//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact" />
175
                            <xsl:apply-templates select="./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact" />
170 176
                        </div>
171 177
                    </div>
172 178
                </div>
173

  
174 179
                <!-- Cited responsible parties-->
175 180
                <div class="control-group">
176 181
                    <label class="control-label">Associated Parties</label>
177 182
                    <div class="controls">
178 183
                        <div class="controls-well">
179
                            <xsl:apply-templates select=".//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty" />
184
                            <xsl:apply-templates select="./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty" />
180 185
                        </div>
181 186
                    </div>
182 187
                </div>
183 188
            </div>
184

  
185
            <xsl:if test="//gmd:distributionInfo">
186
                <div class="control-group entity">
187
                    <h4>Distribution Information</h4>
188

  
189
                    <xsl:apply-templates select=".//gmd:distributionInfo" />
190
                </div>
191
            </xsl:if>
192

  
193 189
            <!-- Extent (geographic, temporal, vertical) -->
194
            <xsl:for-each select=".//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent">
190
            <xsl:for-each select="./gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent">
195 191
                <xsl:apply-templates />
196 192
            </xsl:for-each>
197

  
198
            <!-- TODO Methods -->
199

  
200 193
            <xsl:if test=".//gmd:metadataConstraints">
201

  
202 194
                <div class="control-group entity">
203 195
                    <h4>Metadata Constraints</h4>
204

  
205 196
                    <xsl:for-each select=".//gmd:metadataConstraints">
206 197
                        <xsl:apply-templates />
207 198
                    </xsl:for-each>
208 199
                </div>
209 200
            </xsl:if>
210

  
211 201
            <xsl:if test=".//gmd:resourceConstraints">
212 202
                <div class="control-group entity">
213

  
214
                <h4>Resource Constraints</h4>
203
                    <h4>Resource Constraints</h4>
215 204
                    <xsl:for-each select=".//gmd:resourceConstraints">
216 205
                        <xsl:apply-templates />
217 206
                    </xsl:for-each>
218 207
                </div>
219 208
            </xsl:if>
220

  
221 209
            <xsl:if test=".//gmd:supplementalInformation">
222 210
                <div class="control-group entity">
223

  
224 211
                    <h4>Supplemental Information</h4>
225 212
                    <xsl:for-each select=".//gmd:supplementalInformation">
226 213
                        <xsl:apply-templates />
227 214
                    </xsl:for-each>
228 215
                </div>
229 216
            </xsl:if>
230

  
231

  
232 217
        </form>
233 218
    </xsl:template>
234

  
235 219
    <!-- General, high-level templates -->
236 220
    <!-- TODO: Figure out how to do this: I want to capture the scenario where
237 221
    an element like gmd:individualName has no child gco:CharacterString or
......
239 223
    <xsl:template match="*[not(*) and ./@nilReason]">
240 224
        <xsl:value-of select="@nilReason" />
241 225
    </xsl:template>
242
</xsl:stylesheet>
226
</xsl:stylesheet>

Also available in: Unified diff