Project

General

Profile

« Previous | Next » 

Revision 506

Added by Matt Jones about 24 years ago

Modified stylesheets to use the default.css file from the new KNB web site.
Also, provided a new resultset.xsl that represents a simple freetext query
of the KNB data repository. Updated build.xml to relect the location of the
new css stylesheet.

View differences:

lib/style/resultset.xsl
19 19
    <html>
20 20
      <head>
21 21
        <link rel="stylesheet" type="text/css" 
22
              href="@html-path@/style/rowcol.css" />
22
              href="@web-base-url@/default.css" />
23 23
        <script language="JavaScript">
24 24
          <![CDATA[
25 25
          function submitform(current_action,form_ref) {
......
32 32

  
33 33
      <body>
34 34
        <table width="100%">
35
          <tr>
36
            <td rowspan="2"><div class="logo">KNB<br />Logo</div></td>
37
            <td colspan="7"><div class="title">Biocomplexity Data Search</div>
38
            </td>
39
          </tr>
40
          <tr>
41
            <td><a href="@web-base-url@" class="toollink"> KNB </a></td>
42
            <td><a href="@web-base-url@/data.html" class="toollink"> 
43
                Data </a></td>
44
            <td><a href="@web-base-url@/people.html" class="toollink"> 
45
                People </a></td>
46
            <td><a href="@web-base-url@/informatics" class="toollink"> 
47
                Informatics </a></td>
48
            <td><a href="@web-base-url@/biodiversity" class="toollink"> 
49
                Biodiversity </a></td>
50
            <td><a href="@web-base-url@/education" class="toollink"> 
51
                Education </a></td>
52
            <td><a href="@web-base-url@/software" class="toollink"> 
53
                Software </a></td>
54
         </tr>
35 55
         <tr>
36
          <td align="right" valign="top">
56
          <td align="right" valign="top" colspan="7">
37 57
            <form action="@html-path@/servlet/metacat" method="POST">
38 58
             Data Search: <input type="text" name="anyfield" size="10" />
39 59
             <input type="hidden" name="action" value="query" />   
......
71 91
          
72 92
         <table width="100%">
73 93
           <tr>
74
             <th class="sectionhead">Title</th>
75
             <th class="sectionhead">Action</th>
76
             <th class="sectionhead">Related Documents</th>
77
             <th class="sectionhead">Contacts</th>
78
             <th class="sectionhead">Organization</th>
79
             <th class="sectionhead">Keywords</th>
94
             <th class="tablehead">Title</th>
95
             <th class="tablehead">Action</th>
96
             <th class="tablehead">Related Documents</th>
97
             <th class="tablehead">Contacts</th>
98
             <th class="tablehead">Organization</th>
99
             <th class="tablehead">Keywords</th>
80 100
           </tr>
81 101
        
82 102
         <xsl:for-each select="resultset/document">
......
220 240
                   <br/>
221 241
                 </xsl:for-each>  
222 242
               </xsl:if>
243
               <xsl:text>&nbsp;</xsl:text>
223 244
             </td>
224 245
             <td>
225 246
               <xsl:for-each select="./param[@name='resource/dataset/originator/individualName/surName']" >  
lib/style/eml-file-display.xsl
20 20
  <xsl:template match="/">
21 21
    <html>       
22 22
      <head> 	
23
        <link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css" />
23
        <link rel="stylesheet" type="text/css" 
24
              href="@web-base-url@/default.css" />
24 25
      </head>   
25
      <body class="emlbody"> 	
26
      <body> 	
26 27
        <center>           
27 28
          <h2>File structure description</h2>           
28 29
          <h4>Ecological Metadata Language</h4>         
29 30
        </center>
30 31
        <xsl:apply-templates select="eml-file/meta_file_id"/>          
31
        <table width="750" border="0" cellspacing="0" cellpadding="1" class="sectionhead">
32
        <table width="750" border="0" cellspacing="0" cellpadding="1" class="tablehead">
32 33
	  <tr>
33 34
	    <td><b>Data Set File</b></td>
34 35
	  </tr>
lib/style/eml-dataset-display.xsl
22 22
  <xsl:template match="/">
23 23
    <html>
24 24
      <head>
25
        <link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css" />
25
        <link rel="stylesheet" type="text/css" 
26
              href="@web-base-url@/default.css" />
26 27
      </head>
27
      <body class="emlbody">
28
      <body>
28 29
        <center>
29 30
          <h1>Data set description</h1>
30 31
          <h3>Ecological Metadata Language</h3>
lib/style/eml-variable-display.xsl
21 21
  <xsl:template match="/">
22 22
    <html>
23 23
      <head>
24
        <link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css" />
24
        <link rel="stylesheet" type="text/css" 
25
              href="@web-base-url@/default.css" />
25 26
      </head>
26
      <body class="emlbody">
27
      <body>
27 28
        <center>
28 29
          <h1>Attribute structure description</h1>
29 30
          <h3>Ecological Metadata Language</h3>
......
34 35
        <h3>Attributes in the Data Set:</h3>
35 36
        <table width="100%">
36 37
        <tr>
37
        <th class="sectionhead"><xsl:text>Attribute Name</xsl:text></th>
38
        <th class="sectionhead"><xsl:text>Attribute Definition</xsl:text></th>
39
        <th class="sectionhead"><xsl:text>Unit</xsl:text></th>
40
        <th class="sectionhead"><xsl:text>Type</xsl:text></th>
41
        <th class="sectionhead"><xsl:text>Codes</xsl:text></th>
42
        <th class="sectionhead"><xsl:text>Range</xsl:text></th>
43
        <th class="sectionhead"><xsl:text>Missing</xsl:text></th>
44
        <th class="sectionhead"><xsl:text>Precision</xsl:text></th>
45
        <th class="sectionhead"><xsl:text>Format</xsl:text></th>
38
        <th class="tablehead"><xsl:text>Attribute Name</xsl:text></th>
39
        <th class="tablehead"><xsl:text>Attribute Definition</xsl:text></th>
40
        <th class="tablehead"><xsl:text>Unit</xsl:text></th>
41
        <th class="tablehead"><xsl:text>Type</xsl:text></th>
42
        <th class="tablehead"><xsl:text>Codes</xsl:text></th>
43
        <th class="tablehead"><xsl:text>Range</xsl:text></th>
44
        <th class="tablehead"><xsl:text>Missing</xsl:text></th>
45
        <th class="tablehead"><xsl:text>Precision</xsl:text></th>
46
        <th class="tablehead"><xsl:text>Format</xsl:text></th>
46 47
        </tr>
47 48

  
48 49
        <xsl:for-each select="eml-variable/variable">
lib/style/resource.xsl
1 1
<?xml version="1.0"?>
2 2
<!--
3
  * marine.xsl
3
  * resource.xsl
4 4
  *
5
  *      Authors: Chad Berkley
5
  *      Authors: Chad Berkley, Matt Jones
6 6
  *    Copyright: 2000 Regents of the University of California and the 
7 7
  *               National Center for Ecological Analysis and Synthesis
8 8
  *  For Details: http://www.nceas.ucsb.edu/
......
269 269
      <xsl:if test="count(resource/*/keywordInfo) &gt; 0">
270 270
        <h3 class="highlight">Keywords</h3>
271 271
        <table width="50%" border="0">
272
        <tr class="sectionhead">
272
        <tr class="tablehead">
273 273
          <th>Keyword</th><th>Keyword Type</th><th>Keyword Thesauri</th>
274 274
        </tr>
275 275
       
build.xml
24 24
      <property name="image-path" value="/img/metadata" />
25 25
      <property name="user" value="metadata"/>
26 26
      <property name="password" value="your-pw-here"/>
27
      <property name="web-base-url" 
28
                value="http://www.nceas.ucsb.edu/collab/2840/knbweb"/>
27 29

  
28 30
      <filter token="release" value="${release}"/>
29 31
      <filter token="servlet-path" value="${servlet-path}"/>
......
31 33
      <filter token="user" value="${user}"/>
32 34
      <filter token="password" value="${password}"/>
33 35
      <filter token="image-path" value="${image-path}"/>
36
      <filter token="web-base-url" value="${web-base-url}"/>
34 37
      <property name="srcdir" value="./src" />
35 38

  
36 39
      <property name="build.dir" value="./build"/>

Also available in: Unified diff