Project

General

Profile

« Previous | Next » 

Revision 8030

first pass at FGDC reformatting for metacatui look and feel.

View differences:

lib/style/skins/metacatui/fgdc/fgdc-root.xsl
6 6
    <xsl:param name="enableFGDCediting"/>
7 7
        
8 8
    <xsl:template name="metadata">
9
            <body>
10
                <div class="centerContentBorder">
11
                    <div class="templatecontentareaclass">
12
                        <xsl:apply-templates select="metadata/idinfo"/>
13
                        <br/>
14
                        <xsl:apply-templates
15
                            select="metadata/distinfo/resdesc[starts-with(text(),$docid)]/ancestor::distinfo"/>
16
                    </div>
17
                </div>
18
            </body>
9
        <article id="Metadata">
10
	    	<div class="container">
11
	    		<div class="row-fluid">
12
				    <xsl:apply-templates select="metadata/idinfo"/>
13
			        <br/>
14
			        <xsl:apply-templates
15
			            select="metadata/distinfo/resdesc[starts-with(text(),$docid)]/ancestor::distinfo"/>
16
	        	</div>
17
	        </div>
18
	    </article>
19
        
19 20
    </xsl:template>
20 21
    
21 22
    <xsl:template match="idinfo">
22
        <table width="100%" border="0" cellspacing="0" class="subGroup subGroup_border onehundred_percent">
23
            <tr>
24
                <td colspan="2" align="center">
25
                    <xsl:value-of select="$message"/>
26
                </td>
27
            </tr>
28
            <tr>
29
                <td colspan="2" align="center">
30
                    <h2>FGDC Identification Information</h2>
31
                </td>
32
            </tr>
33
            <xsl:apply-templates select="citation"/>
23
                
24
        <!-- don't want to conflict with the eml-physical.xsl template -->
25
        <xsl:for-each select="citation/citeinfo">
26
        	<xsl:call-template name="fgdcBlockCitation"/>
27
        </xsl:for-each>
28
            
29
        <div class="form-horizontal">
30
        	<xsl:for-each select="citation">
31
	        	<xsl:call-template name="fgdcCitation"/>
32
	        </xsl:for-each>
34 33
            <xsl:apply-templates select="descript"/>
35 34
            <xsl:apply-templates select="spdom"/>
36 35
            <xsl:apply-templates select="keywords"/>
37
        </table>
36
            
37
        </div>
38 38
    </xsl:template>
39 39
    
40
    <xsl:template match="citation">
40
    <!-- for citation information -->
41
    <xsl:template name="fgdcBlockCitation">
42
    
43
    	<div class="well">
44
    		<div class="row-fluid">
45
    			<div class="span10">
46
    				<xsl:for-each select="origin">
47
		        		<xsl:if test="position() &gt; 1">
48
		        			<xsl:if test="last() &gt; 2">, </xsl:if>
49
		        			<xsl:if test="position() = last()"> and</xsl:if>
50
		        			<xsl:text> </xsl:text>
51
		        		</xsl:if>
52
		        		<xsl:value-of select="." />
53
		        		<xsl:if test="position() = last()">.</xsl:if>
54
		        		<xsl:text> </xsl:text>    		
55
		        	</xsl:for-each>
56
		        	
57
		        	<xsl:value-of select="substring(string(pubdate),1,4)"/>
58
		        	<xsl:if test="substring(string(pubdate),1,4) != ''">
59
		        		<xsl:text>. </xsl:text>    				     		
60
		        	</xsl:if>
61
		        	
62
		        	<!-- title -->
63
					<strong>
64
						<xsl:for-each select="./title">
65
			        		<xsl:value-of select="." />
66
			        		<xsl:text> </xsl:text>    				     		
67
				     	</xsl:for-each>				
68
					</strong>
69
					
70
					<!-- show link? -->
71
					<a> 
72
						<xsl:attribute name="href">
73
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>
74
						</xsl:attribute> 
75
						(<xsl:value-of select="$docid"/>)
76
					</a>				        		
77
    			</div>
78
    			<div class="span2">
79
   					<a class="btn">
80
   						<xsl:attribute name="href">
81
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="$docid"/>
82
						</xsl:attribute>
83
   						<i class="icon-arrow-down"></i> Download Package
84
   					</a>
85
    			</div>	
86
  
87
    		</div>
88
				
89
		</div>
90

  
91
   </xsl:template>
92
    
93
    
94
    <xsl:template name="fgdcCitation">
41 95
        <xsl:apply-templates select="citeinfo"/>
42 96
    </xsl:template>
43 97
    
44 98
    <xsl:template match="citeinfo">
45
        <tr>
46
            <td colspan="2" class="tablehead">Citation Information</td>
47
        </tr>
99
        <h4>Citation Information</h4>
48 100
        
49
        <tr>
50
            <xsl:apply-templates select="title"/>
51
        </tr>
52
        <tr>
53
            <xsl:call-template name="docid"/>
54
        </tr>
101
        <xsl:apply-templates select="title"/>
102
        <xsl:call-template name="docid"/>
55 103
        <xsl:for-each select="origin">
56
	        <tr>
57
	            <xsl:apply-templates select="."/>
58
	        </tr>
104
            <xsl:apply-templates select="."/>
59 105
	    </xsl:for-each> 
60
        <tr>
61
            <xsl:apply-templates select="pubdate"/>
62
        </tr>
63
        <tr>
64
            <xsl:apply-templates select="edition"/>
65
        </tr>
66
        <tr>
67
            <xsl:apply-templates select="geoform"/>
68
        </tr>
69
        <tr>
70
            <xsl:apply-templates select="pubinfo"/>
71
        </tr>
72
        <tr>
73
            <xsl:apply-templates select="othercit"/>
74
        </tr>
106
        <xsl:apply-templates select="pubdate"/>
107
        <xsl:apply-templates select="edition"/>
108
        <xsl:apply-templates select="geoform"/>
109
        <xsl:apply-templates select="pubinfo"/>
110
        <xsl:apply-templates select="othercit"/>
75 111
    </xsl:template>
76 112
    
77 113
    <xsl:template match="descript">
78
        <tr>
79
            <td colspan="2" class="tablehead">
80
                Description
81
            </td>
82
        </tr>
83
        <tr>
84
            <xsl:apply-templates select="abstract"/>
85
        </tr>
86
        <tr>
87
            <xsl:apply-templates select="purpose"/>
88
        </tr>
114
        <h4>Description</h4>
115
        <xsl:apply-templates select="abstract"/>
116
        <xsl:apply-templates select="purpose"/>
89 117
    </xsl:template>
90 118
    
91 119
    <xsl:template match="spdom">
92
        <tr>
93
            <xsl:apply-templates select="bounding"/>
94
        </tr>
120
        <xsl:apply-templates select="bounding"/>
95 121
    </xsl:template>
96 122
    
97 123
    <xsl:template match="keywords">
98
        <tr>
99
            <xsl:apply-templates select="theme"/>
100
        </tr>
101
        <tr>
102
            <xsl:apply-templates select="place"/>
103
        </tr>
124
	    <xsl:apply-templates select="theme"/>
125
	    <xsl:apply-templates select="place"/>
104 126
    </xsl:template>
105 127
    
106 128
    <xsl:template match="theme">
107
        <td class="highlight" valign="top">Theme Keywords</td>
108
        <td class="secondCol">
109
            <xsl:apply-templates select="themekey[position()!=last()]">
110
                <xsl:with-param name="lastPlace">f</xsl:with-param>
111
            </xsl:apply-templates>
112
            <xsl:apply-templates select="themekey[position()=last()]">
113
                <xsl:with-param name="lastPlace">t</xsl:with-param>
114
            </xsl:apply-templates>
115
        </td>
129
        <div class="control-group">
130
			<label class="control-label">Theme Keywords</label>
131
        	<div class="controls controls-well">
132
	            <xsl:apply-templates select="themekey[position()!=last()]">
133
	                <xsl:with-param name="lastPlace">f</xsl:with-param>
134
	            </xsl:apply-templates>
135
	            <xsl:apply-templates select="themekey[position()=last()]">
136
	                <xsl:with-param name="lastPlace">t</xsl:with-param>
137
	            </xsl:apply-templates>
138
        	</div>
139
        </div>	
116 140
    </xsl:template>
117 141
    
118 142
    <xsl:template match="place">
119
        <td class="highlight" valign="top">Place Keywords</td>
120
        <td class="secondCol">
121
            <xsl:apply-templates select="placekey[position()!=last()]">
122
                <xsl:with-param name="lastPlace">f</xsl:with-param>
123
            </xsl:apply-templates>
124
            <xsl:apply-templates select="placekey[position()=last()]">
125
                <xsl:with-param name="lastPlace">t</xsl:with-param>
126
            </xsl:apply-templates>
127
        </td>
143
        <div class="control-group">
144
			<label class="control-label">Place Keywords</label>
145
        	<div class="controls controls-well">
146
	            <xsl:apply-templates select="placekey[position()!=last()]">
147
	                <xsl:with-param name="lastPlace">f</xsl:with-param>
148
	            </xsl:apply-templates>
149
	            <xsl:apply-templates select="placekey[position()=last()]">
150
	                <xsl:with-param name="lastPlace">t</xsl:with-param>
151
	            </xsl:apply-templates>
152
        	</div>
153
        </div>	
128 154
    </xsl:template>
129 155
    
130 156
    <xsl:template match="themekey">
......
140 166
    </xsl:template>
141 167
    
142 168
    <xsl:template match="bounding">
143
        <td class="highlight" valign="top">Bounding Coordinates</td>
144
        <td class="secondCol">
145
            <table class="subGroup subGroup_border">
146
                <tr>
147
                    <td class="highlight" align="right">West</td>
148
                    <td class="secondCol">
149
                        <xsl:value-of select="westbc"/>
150
                    </td>
151
                    <td class="highlight" align="right">East</td>
152
                    <td class="secondCol">
169
        <div class="control-group">
170
			<label class="control-label">Bounding Coordinates</label>
171
        	<div class="controls controls-well">
172
	            <div class="control-group">
173
					<label class="control-label">West</label>
174
	                <div class="controls">
175
                       	<xsl:value-of select="westbc"/>
176
	                </div>
177
				</div> 
178
	            <div class="control-group">
179
					<label class="control-label">East</label>
180
                    <div class="controls">
153 181
                        <xsl:value-of select="eastbc"/>
154
                    </td>
155
                </tr>
156
                <tr>
157
                    <td class="highlight" align="right">North</td>
158
                    <td class="secondCol">
182
                    </div>
183
				</div>
184
				<div class="control-group">
185
					<label class="control-label">North</label>
186
                    <div class="controls">
159 187
                        <xsl:value-of select="northbc"/>
160
                    </td>
161
                    <td class="highlight" align="right">South</td>
162
                    <td class="secondCol">
188
                    </div>
189
               	</div>
190
	            <div class="control-group">
191
					<label class="control-label">South</label>
192
                    <div class="controls">
163 193
                        <xsl:value-of select="southbc"/>
164
                    </td>
165
                </tr>
166
            </table>
167
        </td>
194
                    </div>
195
	            </div>
196
	        </div> 
197
        </div>
168 198
    </xsl:template>
169 199
    
170 200
    <xsl:template match="abstract">
171
        <td class="highlight" valign="top">Abstract</td>
172
        <td class="secondCol">
173
            <xsl:value-of select="."/>
174
        </td>
201
        <div class="control-group">
202
			<label class="control-label">Abstract</label>
203
	        <div class="controls controls-well">
204
	            <xsl:value-of select="."/>
205
	        </div>
206
	   	</div> 
175 207
    </xsl:template>
176 208
    
177 209
    <xsl:template match="purpose">
178
        <td class="highlight" valign="top">Purpose</td>
179
        <td class="secondCol">
180
            <xsl:value-of select="."/>
181
        </td>
210
        <div class="control-group">
211
			<label class="control-label">Purpose</label>
212
	        <div class="controls controls-well">
213
	            <xsl:value-of select="."/>
214
	        </div>
215
        </div>
182 216
    </xsl:template>
183 217
    
184 218
    <xsl:template match="title">
185
        <td class="highlight">Title</td>
186
        <td class="secondCol">
187
            <xsl:value-of select="."/>
188
        </td>
219
        <div class="control-group">
220
			<label class="control-label">Title</label>
221
	        <div class="controls controls-well">
222
	            <xsl:value-of select="."/>
223
	        </div>
224
        </div>
189 225
    </xsl:template>
190 226
    
191 227
     <xsl:template name="docid">
192
        <td class="highlight">ID</td>
193
        <td class="secondCol">
194
            <xsl:value-of select="$docid"/>
195
        </td>
228
        <div class="control-group">
229
			<label class="control-label">Identifier</label>
230
	        <div class="controls controls-well">
231
	            <xsl:value-of select="$docid"/>
232
	        </div>
233
        </div>
196 234
    </xsl:template>
197 235
    
198 236
    <xsl:template match="origin">
199
        <td class="highlight">Originator </td>
200
        <td class="secondCol">
201
            <xsl:value-of select="."/>
202
        </td>
237
        <div class="control-group">
238
			<label class="control-label">Originator</label>
239
	        <div class="controls controls-well">
240
	            <xsl:value-of select="."/>
241
	        </div>
242
       	</div>
203 243
    </xsl:template>
204 244
    
205 245
    <xsl:template match="pubdate">
206
        <td class="highlight">Publication Date</td>
207
        <td class="secondCol">
208
            <!-- <xsl:call-template name="long_date">-->
209
            <xsl:call-template name="date_as_is">
210
                <xsl:with-param name="date">
211
                    <xsl:value-of select="."/>
212
                </xsl:with-param>
213
            </xsl:call-template>
214
        </td>
246
        <div class="control-group">
247
			<label class="control-label">Publication Date</label>
248
	        <div class="controls controls-well">
249
	            <!-- <xsl:call-template name="long_date">-->
250
	            <xsl:call-template name="date_as_is">
251
	                <xsl:with-param name="date">
252
	                    <xsl:value-of select="."/>
253
	                </xsl:with-param>
254
	            </xsl:call-template>
255
	        </div>
256
        </div>
215 257
    </xsl:template>
216 258
    
217 259
    <xsl:template match="edition">
218
        <td class="highlight">Edition</td>
219
        <td class="secondCol">
220
            <xsl:value-of select="."/>
221
        </td>
260
        <div class="control-group">
261
			<label class="control-label">Edition</label>
262
	        <div class="controls controls-well">
263
	            <xsl:value-of select="."/>
264
	        </div>
265
        </div>
222 266
    </xsl:template>
223 267
    
224 268
    <xsl:template match="geoform">
225
        <td class="highlight" valign="top">Geospatial Data Presentation Form</td>
226
        <td class="secondCol">
227
            <xsl:value-of select="."/>
228
        </td>
269
        <div class="control-group">
270
			<label class="control-label">Geospatial Data Presentation Form</label>
271
	        <div class="controls controls-well">
272
	            <xsl:value-of select="."/>
273
	        </div>
274
        </div>
229 275
    </xsl:template>
230 276
    
231 277
    <xsl:template match="othercit">
232
        <td class="highlight" valign="top">Other Citation Details</td>
233
        <td class="secondCol">
234
            <xsl:value-of select="."/>
235
        </td>
278
        <div class="control-group">
279
			<label class="control-label">Other Citation Details</label>
280
	        <div class="controls controls-well">
281
	            <xsl:value-of select="."/>
282
	        </div>
283
        </div>
236 284
    </xsl:template>
237 285
    
238 286
    <xsl:template match="pubinfo">
239
        <td class="highlight" valign="top">Publication Information </td>
240
        <td class="secondCol">
241
            <table class="subGroup subGroup_border">
242
                <tr>
243
                    <xsl:apply-templates select="pubplace"/>
244
                </tr>
245
                <tr>
246
                    <xsl:apply-templates select="publish"/>
247
                </tr>
248
            </table>
249
        </td>
287
        <div class="control-group">
288
			<label class="control-label">Publication Information</label>
289
	        <div class="controls controls-well">
290
	            <table class="subGroup subGroup_border">
291
	                <tr>
292
	                    <xsl:apply-templates select="pubplace"/>
293
	                </tr>
294
	                <tr>
295
	                    <xsl:apply-templates select="publish"/>
296
	                </tr>
297
	            </table>
298
	        </div>
299
        </div>
250 300
    </xsl:template>
251 301
    
252 302
    <xsl:template match="pubplace">
253
        <td class="highlight">Publication Place</td>
254
        <td class="secondCol">
255
            <xsl:value-of select="."/>
256
        </td>
303
        <div class="control-group">
304
			<label class="control-label">Publication Place</label>
305
	        <div class="controls controls-well">
306
	            <xsl:value-of select="."/>
307
	        </div>
308
        </div>
257 309
    </xsl:template>
258 310
    
259 311
    <xsl:template match="publish">
260
        <td class="highlight">Publisher</td>
261
        <td class="secondCol">
262
            <xsl:value-of select="."/>
263
        </td>
312
        <div class="control-group">
313
			<label class="control-label">Publisher</label>
314
	        <div class="controls controls-well">
315
	            <xsl:value-of select="."/>
316
	        </div>
317
        </div>
264 318
    </xsl:template>
265 319
    
266 320
    <xsl:template match="distinfo">

Also available in: Unified diff