Project

General

Profile

« Previous | Next » 

Revision 488

Added by berkley over 23 years ago

added ability to enterpret relationdoctype tag.

View differences:

marine.xsl
351 351
              <pre>Document ID: <xsl:value-of select="./docid"/></pre>
352 352
          </td>
353 353
          <td>
354
            <font size="2">
355
              <a>
354
            <font size="4">
355
              <b>
356
              <xsl:value-of select="./param[@name='resource/dataset/title']"/>
357
              </b><br/>
358
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
359
            </font>
360
            <a>
356 361
              <xsl:attribute name="href">
357 362
                <xsl:text>@html-path@/servlet/marine/?action=getdocument&amp;qformat=html&amp;docid=</xsl:text>
358 363
                <xsl:value-of select="./docid"/>
359 364
              </xsl:attribute>
360
              <xsl:value-of select="./param[@name='resource/dataset/title']"/>
361
              </a>
362
              <br/><br/>
363
              <b>Related Documents:</b><br/>
364
            </font>
365
              <font size="2">
366
              Dataset Information
367
              </font>
368
            </a><br/><br/>
369
            <i>Related Documents:</i><br/>
365 370
            <xsl:if test="count(./relation) &gt; 0">
366 371
              <xsl:for-each select="./relation">
367 372
              <xsl:text>&nbsp;</xsl:text><xsl:text>&nbsp;</xsl:text>
......
372 377
                    <xsl:attribute name="href">
373 378
                      <xsl:value-of select="./relationdoc" />
374 379
                    </xsl:attribute>
375
                    <xsl:value-of select="./relationdoc"/>
380
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-variable//EN'">
381
                      <font size="2">Variable Information</font>
382
                    </xsl:if>
383
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-file//EN'">
384
                      <font size="2">File Information</font>
385
                    </xsl:if>
386
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-access//EN'">
387
                      <font size="2">Access Information</font>
388
                    </xsl:if>
389
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-context//EN'">
390
                      <font size="2">Context Information</font>
391
                    </xsl:if>
392
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-software//EN'">
393
                      <font size="2">Software Information</font>
394
                    </xsl:if>
395
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-status//EN'">
396
                      <font size="2">Status Information</font>
397
                    </xsl:if>
398
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-supplement//EN'">
399
                      <font size="2">Supplemental Information</font>
400
                    </xsl:if>
401
                    <!-- If the doctype is null, this file is assumed to 
402
                         be a data file
403
                     -->
404
                    <xsl:if test="./relationdoctype = 'null'">
405
                      <font size="2">Data File</font>
406
                    </xsl:if>
376 407
                  </xsl:if>
377 408
                  <xsl:if test="starts-with(./relationdoc, 'metacat')">
378 409
                    <xsl:attribute name="href">
379 410
                      <xsl:text>http://dev.nceas.ucsb.edu@html-path@/servlet/marine/?action=getrelateddocument&amp;qformat=html&amp;url=</xsl:text>
380 411
                      <xsl:value-of select="./relationdoc" />
381 412
                    </xsl:attribute>
382
                    <xsl:value-of select="./relationdoc" />
413
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-variable//EN'">
414
                      <font size="2">Variable Information</font>
415
                    </xsl:if>
416
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-file//EN'">
417
                      <font size="2">File Information</font>
418
                    </xsl:if>
419
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-access//EN'">
420
                      <font size="2">Access Information</font>
421
                    </xsl:if>
422
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-context//EN'">
423
                      <font size="2">Context Information</font>
424
                    </xsl:if>
425
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-software//EN'">
426
                      <font size="2">Software Information</font>
427
                    </xsl:if>
428
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-status//EN'">
429
                      <font size="2">Status Information</font>
430
                    </xsl:if>
431
                    <xsl:if test="./relationdoctype = '-//NCEAS//eml-supplement//EN'">
432
                      <font size="2">Supplemental Information</font>
433
                    </xsl:if>
434
                    <!-- If the doctype is null, this file is assumed to 
435
                         be a data file
436
                     -->
437
                    <xsl:if test="./relationdoctype = 'null'">
438
                      <font size="2">Data File</font>
439
                    </xsl:if>
383 440
                  </xsl:if>
384 441
                </a>
385 442
                <br/>

Also available in: Unified diff