Project

General

Profile

« Previous | Next » 

Revision 3485

Added by barteau about 17 years ago

Modifications to accomodate Downloads. Includes "Download" forms/buttons.

View differences:

lib/style/common/fgdc/fgdc_1.xsl
4 4
    <xsl:param name="docid"/>
5 5
    <xsl:param name="sessionid" select="public"/>
6 6
    <xsl:param name="qformat"/>
7

  
7
    
8 8
    <xsl:template match="/metadata">
9 9
        <html>
10 10
            <head>
......
30 30
            </body>
31 31
        </html>
32 32
    </xsl:template>
33

  
33
    
34 34
    <xsl:template match="idinfo">
35 35
        <table border="0" cellspacing="10">
36 36
            <tr>
......
44 44
            <xsl:apply-templates select="keywords"/>
45 45
        </table>
46 46
    </xsl:template>
47

  
47
    
48 48
    <xsl:template match="citation">
49 49
        <xsl:apply-templates select="citeinfo"/>
50 50
    </xsl:template>
51

  
51
    
52 52
    <xsl:template match="citeinfo">
53 53
        <tr>
54 54
            <td colspan="2">
55 55
                <span class="greenbold">Citation Information </span>
56 56
            </td>
57 57
        </tr>
58

  
58
        
59 59
        <tr>
60 60
            <xsl:apply-templates select="title"/>
61 61
        </tr>
......
78 78
            <xsl:apply-templates select="othercit"/>
79 79
        </tr>
80 80
    </xsl:template>
81

  
81
    
82 82
    <xsl:template match="descript">
83 83
        <tr>
84 84
            <td colspan="2">
......
92 92
            <xsl:apply-templates select="purpose"/>
93 93
        </tr>
94 94
    </xsl:template>
95

  
95
    
96 96
    <xsl:template match="spdom">
97 97
        <tr>
98 98
            <xsl:apply-templates select="bounding"/>
99 99
        </tr>
100 100
    </xsl:template>
101

  
101
    
102 102
    <xsl:template match="keywords">
103 103
        <tr>
104 104
            <xsl:apply-templates select="theme"/>
......
107 107
            <xsl:apply-templates select="place"/>
108 108
        </tr>
109 109
    </xsl:template>
110

  
110
    
111 111
    <xsl:template match="theme">
112 112
        <td valign="top">Theme Keywords</td>
113 113
        <td>
......
119 119
            </xsl:apply-templates>
120 120
        </td>
121 121
    </xsl:template>
122

  
122
    
123 123
    <xsl:template match="place">
124 124
        <td valign="top">Place Keywords</td>
125 125
        <td>
......
131 131
            </xsl:apply-templates>
132 132
        </td>
133 133
    </xsl:template>
134

  
134
    
135 135
    <xsl:template match="themekey">
136 136
        <xsl:param name="lastPlace"/>
137 137
        <xsl:value-of select="."/>
138 138
        <xsl:if test="$lastPlace = 'f'">, </xsl:if>
139 139
    </xsl:template>
140

  
140
    
141 141
    <xsl:template match="placekey">
142 142
        <xsl:param name="lastPlace"/>
143 143
        <xsl:value-of select="."/>
144 144
        <xsl:if test="$lastPlace = 'f'">, </xsl:if>
145 145
    </xsl:template>
146

  
146
    
147 147
    <xsl:template match="bounding">
148 148
        <td valign="top">Bounding Coordinates</td>
149 149
        <td>
......
171 171
            </table>
172 172
        </td>
173 173
    </xsl:template>
174

  
174
    
175 175
    <xsl:template match="abstract">
176 176
        <td valign="top">Abstract</td>
177 177
        <td>
178 178
            <xsl:value-of select="."/>
179 179
        </td>
180 180
    </xsl:template>
181

  
181
    
182 182
    <xsl:template match="purpose">
183 183
        <td valign="top">Purpose</td>
184 184
        <td>
185 185
            <xsl:value-of select="."/>
186 186
        </td>
187 187
    </xsl:template>
188

  
188
    
189 189
    <xsl:template match="title">
190 190
        <td>Title</td>
191 191
        <td>
192 192
            <xsl:value-of select="."/>
193 193
        </td>
194 194
    </xsl:template>
195

  
195
    
196 196
    <xsl:template match="origin">
197 197
        <td>Originator </td>
198 198
        <td>
199 199
            <xsl:value-of select="."/>
200 200
        </td>
201 201
    </xsl:template>
202

  
202
    
203 203
    <xsl:template match="pubdate">
204 204
        <td>Publication Date</td>
205 205
        <td>
......
210 210
            </xsl:call-template>
211 211
        </td>
212 212
    </xsl:template>
213

  
213
    
214 214
    <xsl:template match="edition">
215 215
        <td>Edition</td>
216 216
        <td>
217 217
            <xsl:value-of select="."/>
218 218
        </td>
219 219
    </xsl:template>
220

  
220
    
221 221
    <xsl:template match="geoform">
222 222
        <td valign="top">Geospatial Data Presentation Form</td>
223 223
        <td>
224 224
            <xsl:value-of select="."/>
225 225
        </td>
226 226
    </xsl:template>
227

  
227
    
228 228
    <xsl:template match="othercit">
229 229
        <td valign="top">Other Citation Details</td>
230 230
        <td>
231 231
            <xsl:value-of select="."/>
232 232
        </td>
233 233
    </xsl:template>
234

  
234
    
235 235
    <xsl:template match="pubinfo">
236 236
        <td valign="top"> Publication Information </td>
237 237
        <td>
......
245 245
            </table>
246 246
        </td>
247 247
    </xsl:template>
248

  
248
    
249 249
    <xsl:template match="pubplace">
250 250
        <td>Publication Place</td>
251 251
        <td>
252 252
            <xsl:value-of select="."/>
253 253
        </td>
254 254
    </xsl:template>
255

  
255
    
256 256
    <xsl:template match="publish">
257 257
        <td>Publisher</td>
258 258
        <td>
259 259
            <xsl:value-of select="."/>
260 260
        </td>
261 261
    </xsl:template>
262

  
262
    
263 263
    <xsl:template match="distinfo">
264 264
        <table width="100%" border="0" cellspacing="10">
265 265
            <tr>
......
286 286
            <xsl:apply-templates select="stdorder/digform/digtopt/onlinopt/computer/networka"/>
287 287
        </table>
288 288
    </xsl:template>
289

  
289
    
290 290
    <xsl:template match="resdesc">
291 291
        <td align="left">Metadata</td>
292 292
        <td align="left">
293
            <xsl:value-of select="../custom"/> (<xsl:value-of select="."/>)</td>
294
        <xsl:if test="not($sessionid = 'null')">
295
            <td>
296
                <form method="post" action="./style/common/ClientViewHelper.jspx"
297
                    enctype="text/html">
293
        <xsl:value-of select="../custom"/> (<xsl:value-of select="."/>)</td>
294
        <td>
295
            <form method="get" action="./style/common/ClientViewHelper.jspx">
296
                <input name="action" value="Download" type="submit"/>
297
                <input name="docid" type="hidden" value="{.}"/>
298
                <input name="qformat" type="hidden" value="{$qformat}"/>
299
                <input name="metadataDocId" type="hidden" value="{$docid}"/>
300
            </form>
301
            <xsl:if test="not($sessionid = 'null')">
302
                <form method="get" action="./style/common/ClientViewHelper.jspx"
303
                      enctype="text/html">
298 304
                    <input name="action" value="Delete" type="submit"/>
299 305
                    <input name="docid" type="hidden" value="{.}"/>
300 306
                    <input name="qformat" type="hidden" value="{$qformat}"/>
301 307
                    <input name="metadataDocId" type="hidden" value="{$docid}"/>
302 308
                </form>
303
            </td>
304
            <td>
309
            </xsl:if>
310
        </td>
311
        <td>
312
            <xsl:if test="not($sessionid = 'null')">
305 313
                <form method="post" action="./style/common/ClientViewHelper.jspx"
306
                    enctype="multipart/form-data">
314
                      enctype="multipart/form-data">
307 315
                    <input name="action" value="Update Metadata" type="submit"/>
308 316
                    <input name="docid" type="hidden" value="{.}"/>
309 317
                    <input name="qformat" type="hidden" value="{$qformat}"/>
310 318
                    <input name="metadataDocId" type="hidden" value="{$docid}"/>
311 319
                    <input name="updateFile" type="file"/>
312 320
                </form>
313
            </td>
314
        </xsl:if>
321
            </xsl:if>
322
        </td>
315 323
    </xsl:template>
316

  
324
    
317 325
    <xsl:template match="networka">
318 326
        <tr>
319 327
            <xsl:apply-templates select="networkr"/>
320 328
        </tr>
321 329
    </xsl:template>
322

  
330
    
323 331
    <xsl:template match="networkr">
324 332
        <td align="right">Data</td>
325 333
        <td align="center">
326
            <xsl:value-of select="./ancestor::digform/digtinfo/formcont"/> (<xsl:value-of select="."
327
            />) </td>
328
        <xsl:if test="not($sessionid = 'null')">
329
            <td>
334
            <xsl:value-of select="./ancestor::digform/digtinfo/formcont"/> (<xsl:value-of select="."/>) </td>
335
        <td>
336
            <form method="get" action="./style/common/ClientViewHelper.jspx" enctype="application/octet-stream">
337
                <input name="action" value="Download" type="submit"/>
338
                <input name="docid" type="hidden" value="{.}"/>
339
                <input name="qformat" type="hidden" value="{$qformat}"/>
340
                <input name="metadataDocId" type="hidden" value="{$docid}"/>
341
            </form>
342
            <xsl:if test="not($sessionid = 'null')">
330 343
                <form method="get" action="./style/common/ClientViewHelper.jspx"
331
                    enctype="text/html">
344
                      enctype="text/html">
332 345
                    <input name="action" value="Delete" type="submit"/>
333 346
                    <input name="docid" type="hidden" value="{.}"/>
334 347
                    <input name="qformat" type="hidden" value="{$qformat}"/>
335 348
                    <input name="metadataDocId" type="hidden" value="{$docid}"/>
336 349
                </form>
337
            </td>
338
            <td>
350
            </xsl:if>
351
        </td>
352
        <td>
353
            <xsl:if test="not($sessionid = 'null')">
339 354
                <form method="post" action="./style/common/ClientViewHelper.jspx"
340
                    enctype="multipart/form-data">
355
                      enctype="multipart/form-data">
341 356
                    <input name="action" value="Update Data" type="submit"/>
342 357
                    <input name="docid" type="hidden" value="{.}"/>
343 358
                    <input name="qformat" type="hidden" value="{$qformat}"/>
344 359
                    <input name="metadataDocId" type="hidden" value="{$docid}"/>
345 360
                    <input name="updateFile" type="file"/>
346 361
                </form>
347
            </td>
348
        </xsl:if>
362
            </xsl:if>
363
        </td>
349 364
    </xsl:template>
350

  
365
    
351 366
    <xsl:template name="long_date">
352 367
        <xsl:param name="date"/>
353 368
        <!-- Day -->
......
374 389
        <!-- Year -->
375 390
        <xsl:value-of select="substring($date, 1, 4)"/>
376 391
    </xsl:template>
377

  
392
    
378 393
</xsl:stylesheet>

Also available in: Unified diff