Project

General

Profile

« Previous | Next » 

Revision 2258

Added by Matt Jones about 20 years ago

Modifications to the registry to support the new ESA skin. Factored out some of
the configuration-specific code into properties that are set in the various
cfg files in the skins. New properties in the cfg files are lsite, usite,
showSiteList, showWgList, showOrganization. These now need to be set in every skin
configuration file, in addition to the previous settings. These changes need to be
tested for every skin before being deployed.

View differences:

lib/style/skins/specnet/specnet.cfg
23 23
recipient = dfuente@calstatela.edu
24 24
adminname = David Fuentes
25 25
debug = 0
26
lsite = 'station'
27
usite = 'Station'
28
showSiteList = 'true'
29
showWgList = 'false'
30
showOrganization = 'false'
31
hasTaxonomic = 'true'
32
hasMethod = 'true'
33
hasSpatial = 'true'
34
hasKeyword = 'true'
35
hasTemporal = 'true'
26 36
#
27 37
# These are the sites and their coordinates. Coordinates are in
28 38
# degrees:minutes:seconds:direction format
lib/style/skins/nrs/nrs.cfg
23 23
recipient = nrsadmin@nceas.ucsb.edu
24 24
adminname = Kevin Browne
25 25
debug = 0
26
lsite = 'reserve'
27
usite = 'Reserve'
28
showSiteList = 'true'
29
showWgList = 'false'
30
showOrganization = 'false'
31
hasTaxonomic = 'true'
32
hasMethod = 'true'
33
hasSpatial = 'true'
34
hasKeyword = 'true'
35
hasTemporal = 'true'
26 36
#
27 37
# These are the sites and their coordinates. Coordinates are in
28 38
# degrees:minutes:seconds:direction format
lib/style/skins/esa/esa.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

  
31

  
32
/*
33
 *  import eml css:
34
 */
35

  
36
@import url(@style-common-path@/@eml-css@);
37

  
38
/**
39
 *  set the correct iframe sizes to accomodate the 
40
 *  header, footer, left and right areas.
41
 *  NOTE: these styles apply only to each 
42
 *  container frame, *NOT* to the document within it!
43
 */  
44
.iframeheaderclass {
45
  height:   155px; 
46
  width:    100%;
47
  border:   0px;
48
  margin:   0px;
49
  margin-left: 10px;
50
}
51

  
52
.iframesearchboxclass { /* not used */ }
53
.iframeleftcolclass  { /* not used */ }
54
.iframerightcolclass { /* not used */ }
55
.iframefooterclass   { /* not used */ }
56

  
57
/**
58
 *  set the size and alignment etc of the top-level layout table
59
 */  
60
.templatetableclass {
61
  width:   100%; 
62
  border:   0px;
63
  padding:  0px;
64
  margin:   0px;
65
}
66

  
67

  
68
/**
69
 *  set the style of the main content area and its contents
70
 */ 
71
.templatecontentareaclass {
72
  border:   0px;
73
  padding:  0px;
74
  margin:   0px;
75
}
76

  
77

  
78
/**
79
 *  set the correct <td> sizes to accomodate the 
80
 *  header, footer, left and right iframes.
81
 *  NOTE: these styles apply only to each 
82
 *  container frame, *NOT* to the document in
83
 *  the iframe within it!
84
 */  
85
.templateheaderrowclass {
86
  height:   155px; 
87
/*
88
  no width allowed - uses same width as table class
89
*/
90
  border:   0px;
91
  padding:  0px;
92
  margin:   0px;
93
}
94

  
95

  
96
.templateleftcolclass {
97
  height:   100%; 
98
  width:    0px;
99
  border:   0px;
100
  padding:  0px;
101
  margin:   0px;
102
}
103

  
104

  
105
.templaterightcolclass {
106
  height:   100%; 
107
  width:    0px;
108
  border:   0px;
109
  padding:  0px;
110
  margin:   0px;
111
}
112

  
113

  
114
.templatefooterrowclass {
115
  height:   0px; 
116
/*
117
  no width allowed - uses same width as table class
118
*/
119
  border:   0px;
120
  padding:  0px;
121
  margin:   0px;
122
}
123

  
124

  
125
/**
126
 *  these override styles imported from eml css 
127
 */
128

  
129
.title {
130
    font-family: Georgia, Times New Roman, Times, serif;
131
    color:      black;
132
    background: white;
133
    font-size: 24px; 
134
    font-weight: bold;
135
}
136

  
137
.highlight  {
138
    color: #006699;
139
    background-color: #FFFFFF; 
140
    font-style: italic;
141
    font-size: 1em; 
142
    padding-left: 10px;
143
}
144

  
145
.tablehead {
146
    color: #0040A1;
147
    background: #FFFFFF;
148
    text-align: left;
149
    font-size: 14px; 
150
    font-weight: bold;
151
    border-top: solid #ffffff 15px;
152
    border-bottom: solid #dddddd 1px;
153
    padding-left: 10px;
154
    padding-top: 0px;
155
    padding-bottom: 0px;
156
}
157

  
158
th.tablehead {
159

  
160
    text-align: center;
161
    border-bottom: solid #006666 1px;
162
    margin: 0px;
163
    padding: 0px;
164
    height:  21px;
165
}
166

  
167
.tablehead_lcorner {
168
    background-position: right top;
169
    background-repeat: no-repeat;
170
    padding: 0px;
171
    margin:  0px;
172
    width:   10px;
173
    height:  21px;
174
}    
175
    
176
.tablehead_rcorner {
177
    background-position: left top;
178
    background-repeat: no-repeat;
179
    padding: 0px;
180
    margin:  0px;
181
    width:   10px;
182
    height:  21px;
183
}    
184

  
185
a {
186
    color: #096B79;
187
    font-weight: bold;
188
    font-size: 12px; 
189
    text-decoration: none; }
190
    
191
a:hover {
192
    color: #ECCE00;
193
    text-decoration: underline; }
194

  
195
/**
196
 *  these are used only in the metacat pages
197
 */
198

  
199
p.emphasis {
200

  
201
  font-size: 18px;
202
  color: #dd7744; 
203
  font-weight: bold;
204
  font-style:  normal;
205
}
206

  
207
.searchresultsdivider {
208
    background-color: #dddddd;   
209
}
210

  
211
/**
212
 *  these are used only in the registry skins
213
 */
214
p.searchbox {
215
    color: #096B79;
216
    font-weight: bold;
217
    font-size: 12px; 
218
    text-decoration: none; 
219
}
220

  
221
br {
222
    margin: 0px;
223
    padding: 0px;
224
}
225

  
226
textarea {
227
   width: 80%;
228
}
229

  
230
.required {
231
    font-weight: bold;
232
    color: #b00000;
233
}
234

  
235
.label {
236
    font-weight: bold;
237
}
0 238

  
lib/style/skins/esa/esa.js
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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
31
 * * * * * *  CONFIGURATION SETTINGS - EDIT THESE FOR YOUR ENVIRONMENT * * * * 
32
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
33

  
34
 
35
//  These settings allow you to include and display common content (eg a common 
36
//  header) on all your pages, in much the same way as a frameset allows you to 
37
//  do, but through the use of iframes and a table instead. You can include up 
38
//  to 4 external pages, each one within the header, footer, left or right areas
39
//
40
//  looks like this (if you're using a fixed width font to display these notes):
41
//    ___________________
42
//    |     header      |
43
//    |-----------------|
44
//    | |             | |
45
//    | |             | |
46
//    |L|   content   |R|
47
//    | |             | |
48
//    | |             | |
49
//    |-----------------|
50
//    |     footer      | 
51
//    -------------------
52
//
53
//  Each area may display another page on the local site, or a page on a 
54
//  different server, or may be set to display nothing (in which case an iframe 
55
//  will not be drawn, although the containing table cell will still need to be 
56
//  resized using the css style - see below) 
57
//
58
//  NOTES:
59
//
60
//  1) if you have any links in the included documents, the target attribute for 
61
//     these *MUST* be set to _top, otherwise the new document will be displayed 
62
//     inside the small iframe areas, instead of replacing the entire page!
63
//     - example: <a href="index.html" target="_top">HOME</a>
64
//   
65
//  2) you will need to set the correct iframe size, in order to accomodate 
66
//     each of these areas on the page. The default location for these size 
67
//     settings is in the default.css file - see the "IFRAME_XXXXXX_CLASS" 
68
//     variables (below) for the name of the style to edit
69
//
70
//  3) you will also need to set the correct table cell sizes and/or overall 
71
//     table size for similar reasons. The default location for these size 
72
//     settings is in the default.css file - see the "TEMPLATE_XXXXXX_CLASS" 
73
//     variables (below) for the name of the style to edit
74

  
75

  
76

  
77
////////////////////////////////////////////////////////////////////////////////
78
//  Edit these variables to define the content that will be loaded into the 
79
//  various iframes. Each may be a relative path to another page on the local 
80
//  site, or a full URL to a page on a remote server, or may be set to the empty 
81
//  string if no content is required at that position on the page (and in which  
82
//  case an iframe will not be drawn, although an empty table cell will still  
83
//  exist unless it is resized smaller) . 
84
//  ( e.g. if you do not want a header to be included, set: HEADER_URL="";)
85
////////////////////////////////////////////////////////////////////////////////
86

  
87

  
88
//  Location of the header that will be displayed at the top of the page
89
var HEADER_URL 
90
  = "@systemidserver@/@context@@style-skins-relpath@/esa/header.html";
91

  
92
// Location of the search box that will be displayed above the  
93
//  results on the results page (optional)
94
var SEARCHBOX_URL 
95
  = "";
96
  //= "@systemidserver@/@context@@style-skins-relpath@/esa/searchform.html";
97

  
98
//  Location of the header that will be displayed at the top of the page
99
var LEFTCOL_URL 
100
  = "";
101
  
102
//  Location of the header that will be displayed at the top of the page
103
var RIGHTCOL_URL 
104
  = "";
105
  
106
//  Location of the header that will be displayed at the top of the page
107
var FOOTER_URL 
108
  = "";
109
  
110

  
111

  
112

  
113
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
114
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
115
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
116
/* * * * * * * * *  MAY CHANGE THE FOLLOWING, BUT SHOULDN'T NEED TO* * * * * */ 
117
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
118
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
119
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
120

  
121
  
122
////////////////////////////////////////////////////////////////////////////////
123
//  Edit the default.css file to set the correct iframe sizes to accomodate the 
124
//  header, footer, left and right areas.
125
//  The following variables set the names of the styles that will be applied to 
126
//  each of the iframes - they can be anythign you wish, provided you use the 
127
//  same names for your classes in the css file
128
//  NOTE: these styles apply only to each container frame, *NOT* to the document 
129
//  within it!
130
////////////////////////////////////////////////////////////////////////////////
131

  
132
//header iframe class
133
var IFRAME_HEADER_CLASS         = "iframeheaderclass";
134

  
135
//(metacat only) search box iframe class
136
var IFRAME_SEARCHBOX_CLASS      = "iframesearchboxclass";
137

  
138
//left column iframe class
139
var IFRAME_LEFTCOL_CLASS        = "iframeleftcolclass";
140

  
141
//right column iframe class
142
var IFRAME_RIGHTCOL_CLASS       = "iframerightcolclass";
143

  
144
//footer iframe class
145
var IFRAME_FOOTER_CLASS         = "iframefooterclass";
146

  
147

  
148
////////////////////////////////////////////////////////////////////////////////
149
//  Edit the default.css file to set the correct table sizes to accomodate the 
150
//  header, footer, left and right iframes.
151
//  The following variables set the names of the styles that will be applied to 
152
//  each of the table cells (or the table itself - see below) - they can be 
153
//  anything you wish, provided you use the same names for your classes in the 
154
//  css file
155
//  NOTE: these styles apply only to each table cell, *NOT* to the document 
156
//  inside the iframe that is nested within it! (the exception is 
157
//  TEMPLATE_CONTENTAREA_CLASS, since the content probably isn't within an 
158
//  iframe - so style elements in this class will apply to the content istelf)
159
////////////////////////////////////////////////////////////////////////////////
160

  
161
//entire table class
162
var TEMPLATE_TABLE_CLASS        = "templatetableclass";
163

  
164
//header table-cell class. Note you should not set css "width" on this, since it 
165
//includes a colspan
166
var TEMPLATE_HEADERROW_CLASS    = "templateheaderrowclass";
167

  
168
//left column table-cell class. Note that restricting css "height" on this may 
169
//affect visibility of the main content, since it's in the same table row 
170
var TEMPLATE_LEFTCOL_CLASS      = "templateleftcolclass";
171

  
172
//main central content table-cell class. Note that css attributes set here may 
173
//apply to the content nested inside this cell
174
var TEMPLATE_CONTENTAREA_CLASS  = "templatecontentareaclass";
175

  
176
//rigth column table-cell class. Note that restricting css "height" on this may 
177
//affect visibility of the main content, since it's in the same table row 
178
var TEMPLATE_RIGHTCOL_CLASS     = "templaterightcolclass";
179

  
180
//footer table-cell class. Note you should not set "width" on this, since it 
181
//includes a colspan
182
var TEMPLATE_FOOTERROW_CLASS    = "templatefooterrowclass";
183

  
184

  
0 185

  
lib/style/skins/esa/esa.cfg
1
#
2
# General configuration parameters
3
#
4
metacatUrl = http://@server@@servlet-path@
5
username = uid=esaadmin,o=LTER,dc=ecoinformatics,dc=org
6
password = your-pw-goes-here
7
ldapUrl=@ldapUrl@
8
defaultScope = esa
9
organization = Ecological Society of America
10
orgabbrev = ESA
11
orgurl = http://www.esa.org/
12
responseTemplate = @responseForm@
13
entryFormTemplate = @entryForm@
14
guideTemplate = @guide@
15
confirmDataTemplate = @confirmData@
16
deleteDataTemplate = @deleteData@
17
accesspubid = -//ecoinformatics.org//eml-access-2.0.0beta6//EN
18
accesssysid = eml-access.dtd
19
datasetpubid = eml://ecoinformatics.org/eml-dataset-2.0.0
20
datasetsysid = eml-dataset.dtd
21
mailhost = hyperion.nceas.ucsb.edu
22
sender = ESA Data Registry <esaadmin@esa.org>
23
recipient = esaadmin@esa.org
24
adminname = the Registry Administrator
25
debug = 0
26
lsite = 'station'
27
usite = 'Station'
28
showSiteList = 'false'
29
showWgList = 'false'
30
showOrganization = 'true'
31
hasTaxonomic = 'true'
32
hasMethod = 'true'
33
hasSpatial = 'true'
34
hasKeyword = 'true'
35
hasTemporal = 'true'
0 36

  
lib/style/skins/esa/esa.xml
1
<?xml version="1.0"?>
2
<style-set name="esa">
3
<!-- general login & search -->
4
  <default-style>@systemidserver@@style-common-path@/ascii-treeview.xsl</default-style>
5

  
6
  <doctype publicid="-//NCEAS//resultset//EN">
7
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/resultset.xsl</target>
8
  </doctype>
9

  
10
<!--
11
    ARE THESE STILL NEEDED????????????
12

  
13
  <doctype publicid="-//NCEAS//login//EN">
14
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/login.xsl</target>
15
  </doctype>
16

  
17
  <doctype publicid="-//NCEAS//eml-generic//EN">
18
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/generic-morpho.xsl</target>
19
  </doctype>
20
-->
21

  
22

  
23
<!-- pre-beta6 modules -->
24
<!-- NOTE these settings are unchanged from the previous version - only the xsl 
25
     filename has changed from "eml-dataset-display.xsl" to "eml-dataset-2.0.0beta4.xsl" -->
26
  <doctype publicid="eml://ecoinformatics.org/eml-2.0.1">
27
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.1/eml.xsl</target>
28
  </doctype>
29
  <doctype publicid="eml://ecoinformatics.org/eml-2.0.0">
30
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0/eml.xsl</target>
31
  </doctype>
32
  <doctype publicid="-//NCEAS//eml-dataset//EN">
33
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
34
  </doctype>
35
  <doctype publicid="-//NCEAS//eml-dataset-2.0//EN">
36
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
37
  </doctype>
38
  <doctype publicid="-//NCEAS//eml-resource//EN">
39
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
40
  </doctype>
41
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN">
42
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
43
  </doctype>
44
<!-- beta6 modules -->
45
  <doctype publicid="-//ecoinformatics.org//eml-access-2.0.0beta6//EN">
46
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-access-2.0.0beta6.xsl</target>
47
  </doctype>
48
  <doctype publicid="-//ecoinformatics.org//eml-attribute-2.0.0beta6//EN">
49
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-attribute-2.0.0beta6.xsl</target>
50
  </doctype>
51
  <doctype publicid="-//ecoinformatics.org//eml-constraint-2.0.0beta6//EN">
52
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-constraint-2.0.0beta6.xsl</target>
53
  </doctype>
54
  <doctype publicid="-//ecoinformatics.org//eml-coverage-2.0.0beta6//EN">
55
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-coverage-2.0.0beta6.xsl</target>
56
  </doctype>
57
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN">
58
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-dataset-2.0.0beta6.xsl</target>
59
  </doctype>
60
  <doctype publicid="-//ecoinformatics.org//eml-entity-2.0.0beta6//EN">
61
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-entity-2.0.0beta6.xsl</target>
62
  </doctype>
63
  <doctype publicid="-//ecoinformatics.org//eml-literature-2.0.0beta6//EN">
64
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-literature-2.0.0beta6.xsl</target>
65
  </doctype>
66
  <doctype publicid="-//ecoinformatics.org//eml-physical-2.0.0beta6//EN">
67
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-physical-2.0.0beta6.xsl</target>
68
  </doctype>
69
  <doctype publicid="-//ecoinformatics.org//eml-project-2.0.0beta6//EN">
70
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-project-2.0.0beta6.xsl</target>
71
  </doctype>
72
  <doctype publicid="-//ecoinformatics.org//eml-protocol-2.0.0beta6//EN">
73
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-protocol-2.0.0beta6.xsl</target>
74
  </doctype>
75
  <doctype publicid="-//ecoinformatics.org//eml-software-2.0.0beta6//EN">
76
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-software-2.0.0beta6.xsl</target>
77
  </doctype>
78
</style-set>
0 79

  
lib/style/skins/esa/index.html
1
<!--
2
  *  '$RCSfile$'
3
  *    Copyright: 2004 Regents of the University of California and the
4
  *               National Center for Ecological Analysis and Synthesis
5
  *  For Details: http://www.nceas.ucsb.edu/
6
  *
7
  *   '$Author$'
8
  *     '$Date$'
9
  * '$Revision$'
10
  * 
11
  * This is an HTML document for displaying metadata catalog tools
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
-->
27
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
28
<html>
29
<head>
30
<title>ESA Data Registry</title>
31
<link rel="stylesheet" href="@html-path@/style/default.css" type="text/css">
32
  <link rel="stylesheet" type="text/css" 
33
        href="@systemidserver@@style-skins-path@/esa/esa.css"></link>
34
  <script language="JavaScript" type="text/JavaScript"
35
          src="@systemidserver@@style-skins-path@/esa/esa.js"></script>
36
  <script language="JavaScript" type="text/JavaScript"
37
          src="@systemidserver@@style-common-path@/branding.js"></script>
38
</head>
39
<body>
40
      <script language="JavaScript">
41
          insertTemplateOpening();
42
          insertSearchBox();
43
      </script>
44
<table width="760" border="0" cellspacing="0" cellpadding="0">
45
  <tr><td colspan="5">
46
<p>
47
Welcome to the ESA Data Registry. This is a publically accessible registry
48
describing scientific data sets on ecology and the environment.
49
</p>
50
<p>&nbsp;</p>
51
<p>
52
This project is a cooperative effort of the 
53
<a href="http://www.esa.org">Ecological Society of America</a>, 
54
the <A href="http://www.esa.org/longterm/">Long-Term Studies Section (LTSS)</a> 
55
of the ESA, and the <a href="http://www.nceas.ucsb.edu">National Center for 
56
Ecological Analysis and Synthesis (NCEAS)</a>.  The Data Registry is based 
57
on software developed by the 
58
<a href="http://knb.ecoinformatics.org">Knowledge Network for Biocomplexity 
59
(KNB)</a>, and houses metadata that are compliant with 
60
<a href="http://knb.ecoinformatics.org/software/eml/">Ecological Metadata 
61
Language (EML)</a>.
62
</p>
63
<p>&nbsp;</p>
64
<p>
65
Credit for the datasets in this registry goes to the investigators who
66
collected the data -- see each individual registry entry for citation and
67
attribution information as well as usage rights.
68
</p>
69
<p>&nbsp;</p>
70
<p><b>Registry Tools</b></p>
71
<p>
72
<menu>
73
  <li><a href="@servlet-path@?action=query&amp;operator=INTERSECT&amp;anyfield=%25&amp;organizationName=Ecological%20Society%20of%20America&amp;qformat=esa&amp;enableediting=true&amp;returndoctype=eml://ecoinformatics.org/eml-2.0.1&amp;returndoctype=eml://ecoinformatics.org/eml-2.0.0&amp;returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&amp;returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&amp;returnfield=dataset/title&amp;returnfield=keyword&amp;returnfield=originator/individualName/surName&amp;returnfield=creator/individualName/surName&amp;returnfield=originator/organizationName&amp;returnfield=creator/organizationName">Browse data sets</a><br />
74
    <menu>
75
      The registry search system is used to locate data sets of interest
76
      by searching through existing registered data sets.  
77
      Presently the search covers all fields, including
78
      author, title, abstract, keywords, and other documentation
79
      for each dataset.  (More sophisticated search capabilities, 
80
      including boolean field searches, will be available in future.)
81
    </menu>
82
  </li>
83
  <p>&nbsp;</p>
84
  <li><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa">Register a new 
85
       data set</a><br />
86
    <menu>
87
      The registration page is used to submit information about a <b>new</b>
88
      data set associated with ESA research.  The documentation about the
89
      data set will be submitted to the Registry.  You can return to the entry
90
      at a later point in time to add to or correct the description.  You can
91
      also use other tools such as 
92
      <a href="http://knb.ecoinformatics.org/morphoportal.jsp">Morpho</a> 
93
      to further document the set of data and directly attach the data to 
94
      the registry entry.
95
    </menu>
96
  </li>
97
  <p>&nbsp;</p>
98
  <li><a href="@cgi-prefix@/ldapweb.cgi?cfg=esa">Create a new account</a>
99
    <ul>
100
        <li><a href="@cgi-prefix@/ldapweb.cgi?cfg=esa&amp;stage=changepass">Change your password</a>
101
        <li><a href="@cgi-prefix@/ldapweb.cgi?cfg=esa&amp;stage=resetpass">Reset your password</a>
102
    </ul>
103
    <br />
104
    <menu>
105
      The account management tools are used to create and manage registry 
106
      accounts.   Accounts are free, and are used to identify contributors
107
      so that they can maintain their entries in the future.  
108
    </menu>
109
  </li>
110
</menu>
111
</p>
112
  </td></tr>
113
</table>
114
<p>&nbsp;</p>
115
<script language="JavaScript">          
116
    insertTemplateClosing();
117
</script>
118
</body>
119
</html>
0 120

  
lib/style/skins/esa/header.html
1
  <!--
2
    '$RCSfile$'
3
    Copyright: 2003 Regents of the University of California and the
4
               National Center for Ecological Analysis and Synthesis
5
     '$Author$'
6
       '$Date$'
7
   '$Revision$'
8

  
9
   This program is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 2 of the License, or
12
   (at your option) any later version.
13

  
14
   This program is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18
     
19
   You should have received a copy of the GNU General Public License
20
   along with this program; if not, write to the Free Software
21
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22
  -->
23
<!--____________________________max_width____________________________________-->
24

  
25
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
26
<html>
27
<head>
28
  <title>ESA Data Registry</title>
29
  <link rel="stylesheet" type="text/css" 
30
        href="@systemidserver@@style-skins-path@/esa/esa.css"></link>
31
</head>
32

  
33
<body>
34
<table width="760" border="0" cellspacing="0" cellpadding="0">
35
  <tr> 
36
    <td rowspan="3" width="20%" valign="top"> 
37
      <div align="left"><img src="@systemidserver@@style-skins-path@/esa/esa-logo.gif"></div>
38
    </td>
39
    <td valign="middle" colspan="4" class="title">Ecological Society of America Data Registry</td>
40
  </tr>
41
  <tr> 
42
    <td class="spacerrow" valign="top" colspan="4">&nbsp;</td>
43
  </tr>
44
  <tr> 
45
    <td valign="top" width="20%"> 
46
      <p><a href="http://www.esa.org" target="_top"> ESA Home</a></p>
47
    </td>
48
    <td valign="top" width="20%"> 
49
      <p><a href="@systemidserver@@style-skins-path@/esa/index.html" target="_top">Registry Home</a></p>
50
    </td>
51
    <td valign="top" width="20%"> 
52
      <p><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top">Register New Dataset</a></p>
53
    </td>
54
    <td valign="top" width="20%"> 
55
<p class="searchbox">
56
Search for Data<br />
57
<form method="POST" action="@servlet-path@" target="_top">
58
  <input value="INTERSECT" name="operator" type="hidden">   
59
  <input size="14" name="anyfield" type="text" value="">
60
  <input name="organizationName" value="Ecological Society of America" type="hidden">
61
  <input name="action" value="query" type="hidden">
62
  <input name="qformat" value="esa" type="hidden">
63
  <input name="enableediting" value="true" type="hidden">
64
  <input name="operator" value="UNION" type="hidden">
65
  <input name="returnfield" value="originator/individualName/surName" type="hidden">
66
  <input name="returnfield" value="originator/individualName/givenName" type="hidden">
67
  <input name="returnfield" value="creator/individualName/surName" type="hidden">
68
  <input name="returnfield" value="creator/individualName/givenName" type="hidden">
69
  <input name="returnfield" value="originator/organizationName" type="hidden">
70
  <input name="returnfield" value="creator/organizationName" type="hidden">
71
  <input name="returnfield" value="dataset/title" type="hidden">
72
  <input name="returnfield" value="keyword" type="hidden">
73
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.1" type="hidden">
74
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.0" type="hidden">
75
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN" type="hidden">
76
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN" type="hidden">
77
  <input name="returndoctype" value="-//NCEAS//resource//EN" type="hidden">
78
  <input name="returndoctype" value="-//NCEAS//eml-dataset//EN" type="hidden">
79
  <!-- <input value="Start Search" type="submit"> -->
80
</form>
81
</p>
82
    </td>
83
  </tr>
84
</table>
85
</body>
86
</html>
0 87

  
lib/style/skins/esa/searchform.html
1
<form method="POST" action="@servlet-path@" target="_top">
2
Search for: 
3
  <input value="INTERSECT" name="operator" type="hidden">   
4
  <input size="14" name="anyfield" type="text" value="">
5
  <input name="organizationName" value="Ecological Society of America" type="hidden">
6
  <input name="action" value="query" type="hidden">
7
  <input name="qformat" value="esa" type="hidden">
8
  <input name="enableediting" value="true" type="hidden">
9
  <input name="operator" value="UNION" type="hidden">
10
  <input name="returnfield" value="originator/individualName/surName" type="hidden">
11
  <input name="returnfield" value="originator/individualName/givenName" type="hidden">
12
  <input name="returnfield" value="creator/individualName/surName" type="hidden">
13
  <input name="returnfield" value="creator/individualName/givenName" type="hidden">
14
  <input name="returnfield" value="originator/organizationName" type="hidden">
15
  <input name="returnfield" value="creator/organizationName" type="hidden">
16
  <input name="returnfield" value="dataset/title" type="hidden">
17
  <input name="returnfield" value="keyword" type="hidden">
18
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.1" type="hidden">
19
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.0" type="hidden">
20
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN" type="hidden">
21
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN" type="hidden">
22
  <input name="returndoctype" value="-//NCEAS//resource//EN" type="hidden">
23
  <input name="returndoctype" value="-//NCEAS//eml-dataset//EN" type="hidden">
24
  <input value="Start Search" type="submit">
25
</form>
0 26

  
lib/style/skins/nceas/nceas.cfg
23 23
recipient = help@nceas.ucsb.edu
24 24
adminname = the repository administrator
25 25
debug = 1
26
lsite = 'station'
27
usite = 'Station'
28
showSiteList = 'false'
29
showWgList = 'true'
30
showOrganization = 'false'
31
hasTaxonomic = 'true'
32
hasMethod = 'true'
33
hasSpatial = 'true'
34
hasKeyword = 'true'
35
hasTemporal = 'true'
26 36
nceas_db = prd8.nceas.ucsb.edu
27 37
nceas_db_user = admowner
28 38
nceas_db_password = your-pw-goes-here
lib/style/skins/obfs/obfs.cfg
23 23
recipient = tmaddux@lternet.edu
24 24
adminname = Troy Maddux
25 25
debug = 0
26
lsite = 'station'
27
usite = 'Station'
28
showSiteList = 'true'
29
showWgList = 'false'
30
showOrganization = 'false'
31
hasTaxonomic = 'true'
32
hasMethod = 'true'
33
hasSpatial = 'true'
34
hasKeyword = 'true'
35
hasTemporal = 'true'
26 36
#
27 37
# These are the sites and their coordinates. Coordinates are in
28 38
# degrees:minutes:seconds:direction format
lib/style/skins/knb/knb.cfg
23 23
recipient = help@nceas.ucsb.edu
24 24
adminname = the repository administrator
25 25
debug = 1
26
lsite = 'station'
27
usite = 'Station'
28
showSiteList = 'false'
29
showWgList = 'false'
30
showOrganization = 'true'
31
hasTaxonomic = 'true'
32
hasMethod = 'true'
33
hasSpatial = 'true'
34
hasKeyword = 'true'
35
hasTemporal = 'true'
26 36
nceas_db = somedb
27 37
nceas_db_user = someuser
28 38
nceas_db_password = your-pw-goes-here
lib/style/skins/knb2/knb2.cfg
23 23
recipient = help@nceas.ucsb.edu
24 24
adminname = the repository administrator
25 25
debug = 1
26
lsite = 'station'
27
usite = 'Station'
28
showSiteList = 'false'
29
showWgList = 'false'
30
showOrganization = 'true'
31
hasTaxonomic = 'true'
32
hasMethod = 'true'
33
hasSpatial = 'true'
34
hasKeyword = 'true'
35
hasTemporal = 'true'
26 36
nceas_db = somedb
27 37
nceas_db_user = someuser
28 38
nceas_db_password = your-pw-goes-here
lib/style/common/templates/entryForm.tmpl
268 268

  
269 269
  </script>
270 270

  
271
[% IF cfg == 'nrs' %]
272
  [% lsite = 'reserve' %]
273
  [% usite = 'Reserve' %]
274
  [% showSiteList = 'true' %]
275
[% ELSIF cfg == 'obfs' %]
276
  [% lsite = 'station' %]
277
  [% usite = 'Station' %]
278
  [% showSiteList = 'true' %]
279
[% ELSIF cfg == 'specnet' %]
280
  [% lsite = 'station' %]
281
  [% usite = 'Station' %]
282
  [% showSiteList = 'true' %]
283
[% ELSIF cfg == 'nceas' %]
284
  [% lsite = 'station' %]
285
  [% usite = 'Station' %]
286
  [% showSiteList = 'false' %]
287
[% ELSE %]
288
  [% lsite = 'station' %]
289
  [% usite = 'Station' %]
290
  [% showSiteList = 'false' %]
291
[% END %]
292

  
293 271
      [% IF form != 're_entry' %]	
294 272
      <p>Use this page to submit a <b>new</b> data set description for
295 273
         inclusion in the registry.</p>
......
376 354
        <p align="left">
377 355
          <input type="TEXT" name="title" value="[%title%]" size="53">
378 356
          <span class="required">Data Set Title</span></p>
379
[% IF cfg == 'nceas' %]
357
[% IF showWgList == 'true' %]
380 358
        <p align="left"> 
381 359
          <span class="required">NCEAS Project(s):</span></p>
382 360
          <select name="wg" multiple="multiple" size="5">
......
397 375
            [% END %]
398 376
          </select>
399 377
[% END %]
400
[% IF cfg == 'knb' %]
378
[% IF showOrganization == 'true' %]
401 379
        <p align="left">
402 380
          <input type="TEXT" name="site" size="40" value="[%site%]">
403 381
          <span class="required">Organization Name</span>
src/perl/register-dataset.cgi
72 72
$config->define("accesssysid");
73 73
$config->define("datasetpubid");
74 74
$config->define("datasetsysid");
75
$config->define("showSiteList", { DEFAULT => 'true'} );
76
$config->define("lsite", { DEFAULT => 'station'} );
77
$config->define("usite", { DEFAULT => 'Station'} );
78
$config->define("showWgList", { DEFAULT => 'true'} );
79
$config->define("showOrganization", { DEFAULT => 'true'} );
75 80
$config->define("hasKeyword", { DEFAULT => 'true'} );
76 81
$config->define("hasTemporal", { DEFAULT => 'true'} );
77 82
$config->define("hasSpatial", { DEFAULT => 'true'} );
......
124 129
my $accesssysid = $config->accesssysid();
125 130
my $datasetpubid = $config->datasetpubid();
126 131
my $datasetsysid = $config->datasetsysid();
132
my $showSiteList = $config->showSiteList();
133
my $lsite = $config->lsite();
134
my $usite = $config->usite();
135
my $showWgList = $config->showWgList();
136
my $showOrganization = $config->showOrganization();
127 137
my $hasKeyword = $config->hasKeyword();
128 138
my $hasTemporal = $config->hasTemporal();
129 139
my $hasSpatial = $config->hasSpatial();
......
247 257
        $$templateVars{'wg'} = \@FORM::wg;
248 258
    }
249 259

  
260
    $$templateVars{'showSiteList'} = $showSiteList;
261
    $$templateVars{'lsite'} = $lsite;
262
    $$templateVars{'usite'} = $usite;
263
    $$templateVars{'showWgList'} = $showWgList;
264
    $$templateVars{'showOrganization'} = $showOrganization;
250 265
    $$templateVars{'hasKeyword'} = $hasKeyword;
251 266
    $$templateVars{'hasTemporal'} = $hasTemporal;
252 267
    $$templateVars{'hasSpatial'} = $hasSpatial;
......
1512 1527
    my $foundDSO;
1513 1528

  
1514 1529
    # set variable values
1530
    $$templateVars{'showSiteList'} = $showSiteList;
1531
    $$templateVars{'lsite'} = $lsite;
1532
    $$templateVars{'usite'} = $usite;
1533
    $$templateVars{'showWgList'} = $showWgList;
1534
    $$templateVars{'showOrganization'} = $showOrganization;
1515 1535
    $$templateVars{'hasKeyword'} = $hasKeyword;
1516 1536
    $$templateVars{'hasTemporal'} = $hasTemporal;
1517 1537
    $$templateVars{'hasSpatial'} = $hasSpatial;
......
1930 1950
                    eval($coord = ($coord - int($coord))*60);
1931 1951
                    eval($$templateVars{'longSec2'} = int($coord));
1932 1952

  
1933
		    $$templateVars{'hasSpatial'} = "true";
1953
		            $$templateVars{'hasSpatial'} = "true";
1934 1954
                }
1935 1955
            }
1936 1956

  
......
2399 2419
    $$templateVars{'samplingDescription'} = normalizeCD($FORM::samplingDescription);
2400 2420
    $$templateVars{'origStateContact'} = $FORM::origState;
2401 2421

  
2422
    $$templateVars{'showSiteList'} = $FORM::showSiteList;
2423
    $$templateVars{'lsite'} = $FORM::lsite;
2424
    $$templateVars{'usite'} = $FORM::usite;
2425
    $$templateVars{'showWgList'} = $FORM::showWgList;
2426
    $$templateVars{'showOrganization'} = $FORM::showOrganization;
2402 2427
    $$templateVars{'hasKeyword'} = $FORM::hasKeyword;
2403 2428
    $$templateVars{'hasTemporal'} = $FORM::hasTemporal;
2404 2429
    $$templateVars{'hasSpatial'} = $FORM::hasSpatial;
......
2589 2614
    $$templateVars{'studyExtentDescription'} = $FORM::studyExtentDescription;
2590 2615
    $$templateVars{'samplingDescription'} = $FORM::samplingDescription;
2591 2616
    
2617
    $$templateVars{'showSiteList'} = $FORM::showSiteList;
2618
    $$templateVars{'lsite'} = $FORM::lsite;
2619
    $$templateVars{'usite'} = $FORM::usite;
2620
    $$templateVars{'showWgList'} = $FORM::showWgList;
2621
    $$templateVars{'showOrganization'} = $FORM::showOrganization;
2592 2622
    $$templateVars{'hasKeyword'} = $FORM::hasKeyword;
2593 2623
    $$templateVars{'hasTemporal'} = $FORM::hasTemporal;
2594 2624
    $$templateVars{'hasSpatial'} = $FORM::hasSpatial;

Also available in: Unified diff