Project

General

Profile

« Previous | Next » 

Revision 3373

Added by barteau over 16 years ago

Added "Update" html forms functionality, and modified html appearance.

View differences:

fgdc_1.xsl
2 2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 3
    <xsl:output indent="yes" method="html"/>
4 4
    <xsl:param name="docid"/>
5
    <xsl:param name="sessionid" select="public"/>
5 6

  
6 7
    <xsl:template match="/metadata">
7 8
        <html>
......
18 19
    <xsl:template match="idinfo">
19 20
        <table width="700" border="0" cellspacing="10">
20 21
            <tr>
21
                <td colspan="2" align="center"><b>FGDC Identification Information</b></td>
22
                <td colspan="2" align="center">
23
                    <b>FGDC Identification Information</b>
24
                </td>
22 25
            </tr>
23 26
            <xsl:apply-templates select="citation"/>
24 27
            <xsl:apply-templates select="descript"/>
......
33 36

  
34 37
    <xsl:template match="citeinfo">
35 38
        <tr>
36
            <td colspan="2"><b>Citation Information </b></td>
39
            <td colspan="2">
40
                <b>Citation Information </b>
41
            </td>
37 42
        </tr>
38 43

  
39 44
        <tr>
......
61 66

  
62 67
    <xsl:template match="descript">
63 68
        <tr>
64
            <td colspan="2"><b>Description</b></td>
69
            <td colspan="2">
70
                <b>Description</b>
71
            </td>
65 72
        </tr>
66 73
        <tr>
67 74
            <xsl:apply-templates select="abstract"/>
......
239 246
    </xsl:template>
240 247

  
241 248
    <xsl:template match="distinfo">
242
        <table width="700" border="0" cellspacing="10">
249
        <table width="100%" border="0" cellspacing="10">
243 250
            <tr>
244
                <td colspan="3" align="center"><b>Metacat Data Package Information</b></td>
251
                <td colspan="3" align="center">
252
                    <b>Metacat Data Package Information</b>
253
                </td>
245 254
            </tr>
246 255
            <tr>
256
                <td>
257
                    <b>File type</b>
258
                </td>
259
                <td>
260
                    <b>File name (Doc Id)</b>
261
                </td>
262
                <xsl:if test="not($sessionid = 'null')">
263
                    <td align="center" colspan="3">
264
                        <b>Update with...</b>
265
                    </td>
266
                </xsl:if>
267
            </tr>
268
            <tr>
247 269
                <xsl:apply-templates select="resdesc"/>
248 270
            </tr>
249 271
            <xsl:apply-templates select="stdorder/digform/digtopt/onlinopt/computer/networka"/>
......
251 273
    </xsl:template>
252 274

  
253 275
    <xsl:template match="resdesc">
254
        <td>Resource Description</td>
255
        <td>
256
            <xsl:value-of select="."/>
257
        </td>
258
        <td> Update <input name="action" value="updateFile" type="file"/>
259
        </td>
276
        <td align="left">Metadata</td>
277
        <td align="left">
278
            <xsl:value-of select="../custom"/> (<xsl:value-of select="."/>)</td>
279
        <xsl:if test="not($sessionid = 'null')">
280
            <form method="post" action="./style/common/fgdc/ClientViewHelper.jspx"
281
                enctype="multipart/form-data">
282
                <td align="right">
283
                    <input name="action" value="Update Metadata" type="submit"/>
284
                    <xsl:element name="input">
285
                        <xsl:attribute name="name">docid</xsl:attribute>
286
                        <xsl:attribute name="type">hidden</xsl:attribute>
287
                        <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
288
                    </xsl:element>
289
                    <xsl:element name="input">
290
                        <xsl:attribute name="name">metadataDocId</xsl:attribute>
291
                        <xsl:attribute name="type">hidden</xsl:attribute>
292
                        <xsl:attribute name="value"><xsl:value-of select="$docid"/></xsl:attribute>
293
                    </xsl:element>
294
                </td>
295
                <td>
296
                    <input name="updateFile" type="file"/>
297
                </td>
298
            </form>
299
        </xsl:if>
260 300
    </xsl:template>
261 301

  
262 302
    <xsl:template match="networka">
......
266 306
    </xsl:template>
267 307

  
268 308
    <xsl:template match="networkr">
269
        <td>Network Resource Name</td>
270
        <td>
271
            <xsl:value-of select="."/>
272
        </td>
273
        <td> Update <input name="action" value="updateFile" type="file"/>
274
        </td>
309
        <td align="right">Data</td>
310
        <td align="center">
311
            <xsl:value-of select="./ancestor::digform/digtinfo/formcont"/> (<xsl:value-of select="."
312
            />) </td>
313
        <xsl:if test="not($sessionid = 'null')">
314
            <form method="post" action="./style/common/fgdc/ClientViewHelper.jspx"
315
                enctype="multipart/form-data">
316
                <td align="right">
317
                    <input name="action" value="Update Data" type="submit"/>
318
                    <xsl:element name="input">
319
                        <xsl:attribute name="name">docid</xsl:attribute>
320
                        <xsl:attribute name="type">hidden</xsl:attribute>
321
                        <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
322
                    </xsl:element>
323
                    <xsl:element name="input">
324
                        <xsl:attribute name="name">metadataDocId</xsl:attribute>
325
                        <xsl:attribute name="type">hidden</xsl:attribute>
326
                        <xsl:attribute name="value"><xsl:value-of select="$docid"/></xsl:attribute>
327
                    </xsl:element>
328
                </td>
329
                <td>
330
                    <input name="updateFile" type="file"/>
331
                </td>
332
            </form>
333
        </xsl:if>
275 334
    </xsl:template>
276 335

  
277 336
    <xsl:template name="long_date">

Also available in: Unified diff