Project

General

Profile

« Previous | Next » 

Revision 844

Added by berkley about 23 years ago

default css stylesheet so that metacat will look right

View differences:

lib/style/resultset.xsl
194 194
               <xsl:if test="count(./relation) &gt; 0">
195 195
                 <xsl:for-each select="./relation">
196 196
                   <a>
197
                     <xsl:if test="starts-with(./relationdoc, 'http')">
197
                     <xsl:if test="starts-with(./triple, 'http')">
198 198
                       <xsl:attribute name="href">
199 199
                         <xsl:value-of select="./relationdoc" />
200 200
                       </xsl:attribute>
......
203 203
                         Variable Information
204 204
                       </xsl:if>
205 205
                       <xsl:if 
206
                        test="./relationdoctype = '-//NCEAS//eml-file//EN'">
206
                        test="./relationdoctype = '-//NCEAS//eml-entity-2.0//EN'">
207
                         Table Information
208
                       </xsl:if>
209
                       <xsl:if 
210
                        test="./relationdoctype = '-//NCEAS//eml-physical-2.0//EN'">
207 211
                         File Information
208 212
                       </xsl:if>
209 213
                       <xsl:if 
210
                        test="./relationdoctype = '-//NCEAS//eml-access//EN'">
214
                        test="./relationdoctype = '-//NCEAS//eml-distribution-2.0//EN'">
215
                         Distribution Information
216
                       </xsl:if>
217
                       <xsl:if 
218
                        test="./relationdoctype = '-//NCEAS//eml-access-2.0//EN'">
211 219
                         Access Information
212 220
                       </xsl:if>
213 221
                       <xsl:if 
......
215 223
                         Context Information
216 224
                       </xsl:if>
217 225
                       <xsl:if 
218
                        test="./relationdoctype = '-//NCEAS//eml-software//EN'">
226
                        test="./relationdoctype = '-//NCEAS//eml-software-2.0//EN'">
219 227
                         Software Information
220 228
                       </xsl:if>
221 229
                       <xsl:if 
......
235 243
                         Data File
236 244
                       </xsl:if>
237 245
                     </xsl:if>
238
                     <xsl:if test="starts-with(./relationdoc, 'metacat')">
246
                     <xsl:if test="starts-with(./triple, '')">
239 247
                       <xsl:attribute name="href">
240 248
                         <xsl:text>http://@server@@servlet-path@?action=read&amp;qformat=knb&amp;docid=</xsl:text>
241 249
                         <xsl:value-of select="./relationdoc" />
......
245 253
                         Variable Information
246 254
                       </xsl:if>
247 255
                       <xsl:if 
248
                        test="./relationdoctype = '-//NCEAS//eml-file//EN'">
256
                        test="./relationdoctype = '-//NCEAS//eml-entity-2.0//EN'">
257
                         Table Information
258
                       </xsl:if>
259
                       <xsl:if 
260
                        test="./relationdoctype = '-//NCEAS//eml-physical-2.0//EN'">
249 261
                         File Information
250 262
                       </xsl:if>
251 263
                       <xsl:if 
252
                        test="./relationdoctype = '-//NCEAS//eml-access//EN'">
264
                        test="./relationdoctype = '-//NCEAS//eml-distribution-2.0//EN'">
265
                         Distribution Information
266
                       </xsl:if>
267
                       <xsl:if 
268
                        test="./relationdoctype = '-//NCEAS//eml-access-2.0//EN'">
253 269
                         Access Information
254 270
                       </xsl:if>
255 271
                       <xsl:if 
......
257 273
                         Context Information
258 274
                       </xsl:if>
259 275
                       <xsl:if 
260
                        test="./relationdoctype = '-//NCEAS//eml-software//EN'">
276
                        test="./relationdoctype = '-//NCEAS//eml-software-2.0//EN'">
261 277
                         Software Information
262 278
                       </xsl:if>
263 279
                       <xsl:if 
lib/style/default.css
1
<!-- 
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNB project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNB web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author$'
12
  *      '$Date$'
13
  *  '$Revision$'
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
  -->
29

  
30
body { 
31
    color: black; 
32
    background: white;
33
    font-size: 1em; 
34
    font-family: Arial,Helvetica,sans-serif; }
35
a {
36
    color: green;
37
    text-decoration: underline; }
38
a.toollink {
39
    color: green;
40
    text-decoration: none; }
41
a.sitelink {
42
    color: green;
43
    text-decoration: none; 
44
    font-weight: bold; }
45
.logo {
46
    background: #ccccff;
47
    color: green;
48
    width: 3em;
49
    margin-left: 0.5em;
50
    margin-right: 0.5em;
51
    margin-top: 0.5em;
52
    margin-bottom: 0.5em;
53
    padding: 0.5em;
54
    font-size: 2em; 
55
    font-weight: bold; }
56
.tabledefault {
57
    background: white;
58
    color: black;
59
    width: 100%;
60
    font-size: 1em; 
61
    left-padding: 0.25em;
62
    right-padding: 0.25em; }
63
.tablepanel {
64
    background: #eeeeee;
65
    color: black;
66
    font-size: 1em; 
67
    left-padding: 0.25em;
68
    right-padding: 0.25em; }
69
.tablehead {
70
    background: #ccccff;
71
    vertical-align: baseline;
72
    color: black;
73
    font-size: 1em;
74
    font-weight: bold;
75
    }
76
.tableheadcontrast {
77
    background: #dddddd;
78
    vertical-align: baseline;
79
    color: black;
80
    font-size: 1.2em; 
81
    font-weight: bold; }
82
.title { 
83
    color: black; 
84
    margin-top: 1em;
85
    font-size: 1.5em; 
86
    font-weight: bold; }
87
.subtitle { 
88
    color: black; 
89
    margin-top: 0.5em;
90
    margin-left: 3em;
91
    font-weight: bold;
92
    font-style: italic; }
93
.pagetitle {
94
    font-family: Arial,Helvetica,sans-serif;
95
    font-size: 3em;
96
    font-weight: bold;
97
    color: green;
98
    margin-left: 0.25em; }
99
.pagesub {
100
    font-family: Arial,Helvetica,sans-serif;
101
    font-size: 1em;
102
    font-weight: bold;
103
    color: green;
104
    margin-left: 3em;
105
    margin-top: 0.5em;
106
    margin-bottom: 2em; }
107
.instright { 
108
    color: black; 
109
    text-align: right;
110
    vertical-align: middle;
111
    padding: 1em;
112
    font-size: 1em; 
113
    font-weight: bold; }
114
.instleft { 
115
    color: black; 
116
    text-align: left;
117
    vertical-align: middle;
118
    padding: 1em;
119
    font-size: 1em; 
120
    font-weight: bold; }
121
p { 
122
    margin: 0.25em; }
123
.required { 
124
    color: red; }
125
.emphasis { 
126
    color: red; }
127
p.label { 
128
    color: black; 
129
    font-weight: bold; }
130
p.contact { 
131
    color: black; 
132
    padding: 1em;
133
    font-size: 0.75em; 
134
    font-weight: normal;
135
    font-style: italic; }
136
p.header {
137
    color: black; 
138
    padding: 1em;
139
    font-size: 0.75em; 
140
    font-weight: bold; }
141
img.logoright {
142
    padding: 0.5em;
143
    border: none;
144
    float: right; }
145
img.logoleft {
146
    padding: 0.25em;
147
    border: none;
148
    float: left; }
149
.roweven {
150
    background: #c0d3e7; }
151
.rowodd {
152
    background: white; }
153
.highlight  {
154
    background-color: #dddddd; 
155
    font-size: -1; }
156
.plaintext {
157
    color: black;
158
    font-weight: normal;
159
    font-size: 1em;
160
    }
161
.boldtext {
162
    color: black;
163
    font-weight: bold;
164
    font-size: 1em;
165
    }
0 166

  

Also available in: Unified diff