Revision 3469
Added by walbridge about 17 years ago
lib/style/skins/nceas/search.js | ||
---|---|---|
1 |
function trim(stringToTrim) { |
|
2 |
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,''); |
|
3 |
} |
|
4 |
|
|
5 |
function checkSearch(submitFormObj) { |
|
6 |
var searchString = trim(submitFormObj.searchstring.value); |
|
7 |
var checkBox = document.getElementById("searchAll"); |
|
8 |
|
|
9 |
if (searchString=="") { |
|
10 |
if (confirm("Show *all* data in the KNB?")) { |
|
11 |
searchString = "%"; |
|
12 |
} else { |
|
13 |
return false; |
|
14 |
} |
|
15 |
} |
|
16 |
|
|
17 |
if (!checkBox.checked && searchString!="%") { |
|
18 |
submitFormObj.query.value = "<pathquery version=\"1.2\">" |
|
19 |
+"<querytitle>Web-Search</querytitle>" |
|
20 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>" |
|
21 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>" |
|
22 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>" |
|
23 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>" |
|
24 |
+"<returndoctype>-//NCEAS//resource//EN</returndoctype>" |
|
25 |
+"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>" |
|
26 |
+"<returnfield>originator/individualName/surName</returnfield>" |
|
27 |
+"<returnfield>originator/individualName/givenName</returnfield>" |
|
28 |
+"<returnfield>creator/individualName/surName</returnfield>" |
|
29 |
+"<returnfield>creator/individualName/givenName</returnfield>" |
|
30 |
+"<returnfield>originator/organizationName</returnfield>" |
|
31 |
+"<returnfield>creator/organizationName</returnfield>" |
|
32 |
+"<returnfield>dataset/title</returnfield>" |
|
33 |
+"<returnfield>keyword</returnfield>" |
|
34 |
+"<querygroup operator=\"INTERSECT\">" |
|
35 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
36 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
37 |
+"<pathexpr>organizationName</pathexpr>" |
|
38 |
+"</queryterm>" |
|
39 |
+"<querygroup operator=\"UNION\">" |
|
40 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
41 |
+"<value>" + searchString + "</value>" |
|
42 |
+"<pathexpr>surName</pathexpr>" |
|
43 |
+"</queryterm>" |
|
44 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
45 |
+"<value>" + searchString + "</value>" |
|
46 |
+"<pathexpr>givenName</pathexpr>" |
|
47 |
+"</queryterm>" |
|
48 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
49 |
+"<value>" + searchString + "</value>" |
|
50 |
+"<pathexpr>keyword</pathexpr>" |
|
51 |
+"</queryterm>" |
|
52 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
53 |
+"<value>" + searchString + "</value>" |
|
54 |
+"<pathexpr>para</pathexpr>" |
|
55 |
+"</queryterm>" |
|
56 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
57 |
+"<value>" + searchString + "</value>" |
|
58 |
+"<pathexpr>geographicDescription</pathexpr>" |
|
59 |
+"</queryterm>" |
|
60 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
61 |
+"<value>" + searchString + "</value>" |
|
62 |
+"<pathexpr>literalLayout</pathexpr>" |
|
63 |
+"</queryterm>" |
|
64 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
65 |
+"<value>" + searchString + "</value>" |
|
66 |
+"<pathexpr>title</pathexpr>" |
|
67 |
+"</queryterm>" |
|
68 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
69 |
+"<value>" + searchString + "</value>" |
|
70 |
+"<pathexpr>@packageId</pathexpr>" |
|
71 |
+"</queryterm>" |
|
72 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
73 |
+"<value>" + searchString + "</value>" |
|
74 |
+"<pathexpr>abstract/para</pathexpr>" |
|
75 |
+"</queryterm>" |
|
76 |
+"</querygroup>" |
|
77 |
+"</querygroup>" |
|
78 |
+"</pathquery>"; |
|
79 |
|
|
80 |
} else { |
|
81 |
queryTermString = ""; |
|
82 |
if (searchString != "%"){ |
|
83 |
queryTermString = "<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
84 |
+"<value>" + searchString + "</value>" |
|
85 |
+"</queryterm>"; |
|
86 |
} |
|
87 |
submitFormObj.query.value = "<pathquery version=\"1.2\">" |
|
88 |
+"<querytitle>Web-Search</querytitle>" |
|
89 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>" |
|
90 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>" |
|
91 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>" |
|
92 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>" |
|
93 |
+"<returndoctype>-//NCEAS//resource//EN</returndoctype>" |
|
94 |
+"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>" |
|
95 |
+"<returnfield>originator/individualName/surName</returnfield>" |
|
96 |
+"<returnfield>originator/individualName/givenName</returnfield>" |
|
97 |
+"<returnfield>creator/individualName/surName</returnfield>" |
|
98 |
+"<returnfield>creator/individualName/givenName</returnfield>" |
|
99 |
+"<returnfield>originator/organizationName</returnfield>" |
|
100 |
+"<returnfield>creator/organizationName</returnfield>" |
|
101 |
+"<returnfield>dataset/title</returnfield>" |
|
102 |
+"<returnfield>keyword</returnfield>" |
|
103 |
+"<querygroup operator=\"INTERSECT\">" |
|
104 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
105 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
106 |
+"<pathexpr>organizationName</pathexpr>" |
|
107 |
+"</queryterm>" |
|
108 |
+ queryTermString |
|
109 |
+"</querygroup>" |
|
110 |
+"</pathquery>"; |
|
111 |
|
|
112 |
} |
|
113 |
return true; |
|
114 |
} |
|
115 |
|
|
116 |
function searchAll(){ |
|
117 |
var checkBox = document.getElementById("searchCheckBox"); |
|
118 |
if (checkBox.checked == true) { |
|
119 |
alert("You have selected to search all possible existing fields. This search will take longer."); |
|
120 |
} |
|
121 |
} |
|
0 | 122 |
lib/style/skins/nceas/nceas.css | ||
---|---|---|
122 | 122 |
margin: 0px; |
123 | 123 |
} |
124 | 124 |
|
125 |
.style2 { |
|
126 |
font-size: 14px |
|
127 |
} |
|
125 | 128 |
|
126 | 129 |
/** |
127 | 130 |
* these override styles imported from eml css |
... | ... | |
159 | 162 |
padding-left: 10px; |
160 | 163 |
} |
161 | 164 |
|
165 |
table { |
|
166 |
margin-left: 2px; |
|
167 |
} |
|
168 |
|
|
169 |
td, th { |
|
170 |
padding: 1px 1px; |
|
171 |
} |
|
172 |
|
|
162 | 173 |
.tablehead { |
163 | 174 |
color: #0040A1; |
164 | 175 |
background: #FFFFFF; |
... | ... | |
224 | 235 |
} |
225 | 236 |
|
226 | 237 |
.searchresultsdivider { |
227 |
background-color: #dddddd; |
|
238 |
border-bottom: 1px solid #ddd; |
|
239 |
margin-bottom: 10px; |
|
228 | 240 |
} |
229 | 241 |
|
242 |
.searchresultsdividerPale { |
|
243 |
margin: 4px 4px; |
|
230 | 244 |
} |
231 | 245 |
|
232 |
.searchresultsdividerPale { |
|
233 |
border-color: #ff9933; |
|
234 |
border: 4px; |
|
235 |
|
|
246 |
.text_plain { |
|
247 |
padding-top: 5px; |
|
236 | 248 |
} |
237 | 249 |
|
250 |
pre { |
|
251 |
margin-right: 8em; |
|
252 |
padding: .4em .75em; |
|
253 |
} |
|
254 |
|
|
238 | 255 |
/** |
239 | 256 |
* these are used only in the registry skins |
240 | 257 |
*/ |
... | ... | |
245 | 262 |
text-decoration: none; |
246 | 263 |
} |
247 | 264 |
|
265 |
td.templatecontentareaclass a { |
|
266 |
border: none; |
|
267 |
} |
|
268 |
|
|
248 | 269 |
br { |
249 | 270 |
margin: 0px; |
250 | 271 |
padding: 0px; |
251 | 272 |
} |
252 | 273 |
|
253 | 274 |
.intro { |
254 |
width: 760px;
|
|
255 |
margin-left: 15px;
|
|
275 |
width: 760px;
|
|
276 |
margin-left: 15px; |
|
256 | 277 |
} |
257 | 278 |
|
258 | 279 |
textarea { |
lib/style/skins/nceas/midnight.css | ||
---|---|---|
101 | 101 |
|
102 | 102 |
a[href ^="mailto:"] { |
103 | 103 |
padding-right: 20px; |
104 |
background: transparent url(icon_mailto.gif) no-repeat center right; |
|
104 |
background: transparent url(images/icon_mailto.gif) no-repeat center right;
|
|
105 | 105 |
} |
106 | 106 |
|
107 | 107 |
a[href $='.pdf'] { |
108 | 108 |
padding-right: 18px; |
109 |
background: transparent url(icon_pdf.gif) no-repeat center right; |
|
109 |
background: transparent url(images/icon_pdf.gif) no-repeat center right;
|
|
110 | 110 |
} |
111 | 111 |
|
112 | 112 |
a[href $='.doc'] { |
113 | 113 |
padding-right: 18px; |
114 |
background: transparent url(icon_doc.gif) no-repeat center right; |
|
114 |
background: transparent url(images/icon_doc.gif) no-repeat center right;
|
|
115 | 115 |
} |
116 | 116 |
|
117 | 117 |
a[href $='.dot'] { |
118 | 118 |
padding-right: 18px; |
119 |
background: transparent url(icon_doc.gif) no-repeat center right; |
|
119 |
background: transparent url(images/icon_doc.gif) no-repeat center right;
|
|
120 | 120 |
} |
121 | 121 |
|
122 | 122 |
h2.title a, h2.title a:hover { |
... | ... | |
216 | 216 |
width: 878px; |
217 | 217 |
margin: 0 5px; |
218 | 218 |
clear: both; |
219 |
background: #fff url(content_background.jpg) repeat-y; |
|
219 |
background: #fff url(images/content_background.jpg) repeat-y;
|
|
220 | 220 |
} |
221 | 221 |
|
222 | 222 |
#main_content { |
... | ... | |
252 | 252 |
word-spacing: 0; |
253 | 253 |
float:left; |
254 | 254 |
text-align: center; |
255 |
background: #254462 url(navigation_background.jpg) bottom no-repeat; |
|
256 |
padding: 0 5px 25px;
|
|
255 |
background: #254462 url(images/navigation_background.jpg) bottom no-repeat;
|
|
256 |
padding: 0 0px 25px;
|
|
257 | 257 |
width: 878px; |
258 | 258 |
line-height: 1.0; |
259 |
margin: 0px 0px 0px 5px; |
|
259 | 260 |
} |
260 | 261 |
|
261 | 262 |
#navigation ul { |
... | ... | |
298 | 299 |
} |
299 | 300 |
|
300 | 301 |
#main_nav li.expanded { |
301 |
background: #336 url(midnight_images/nav_downarrow.png) right center no-repeat;
|
|
302 |
background: #336 url(images/nav_downarrow.png) right center no-repeat; |
|
302 | 303 |
text-align: left; |
303 | 304 |
} |
304 | 305 |
|
... | ... | |
307 | 308 |
} |
308 | 309 |
|
309 | 310 |
#main_nav li.expanded a:hover { |
310 |
background: #cc9 url(midnight_images/nav_downarrow_hover.png) right center no-repeat;
|
|
311 |
background: #cc9 url(images/nav_downarrow_hover.png) right center no-repeat; |
|
311 | 312 |
} |
312 | 313 |
|
313 | 314 |
#main_nav li.expanded ul a:hover { |
... | ... | |
358 | 359 |
} |
359 | 360 |
|
360 | 361 |
#header h1 span { |
361 |
background: url(banner_background.jpg) no-repeat; |
|
362 |
background: url(images/banner_background.jpg) no-repeat;
|
|
362 | 363 |
position: absolute; |
363 | 364 |
top: 0; |
364 | 365 |
left: 0; |
... | ... | |
370 | 371 |
|
371 | 372 |
#footer { |
372 | 373 |
text-align: center; |
373 |
background: #fff url(footer_background.jpg) top center no-repeat; |
|
374 |
background: #fff url(images/footer_background.jpg) top center no-repeat;
|
|
374 | 375 |
padding: 10px 0 5px; |
375 | 376 |
margin: 0; |
376 | 377 |
} |
lib/style/skins/nceas/header.html | ||
---|---|---|
28 | 28 |
<title>NCEAS Data Repository</title> |
29 | 29 |
<link rel="stylesheet" type="text/css" |
30 | 30 |
href="@systemidserver@@style-skins-path@/nceas/nceas.css"></link> |
31 |
<script language="Javascript"> |
|
32 |
function trim(stringToTrim) { |
|
33 |
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,''); |
|
34 |
} |
|
35 |
|
|
36 |
function checkSearch(submitFormObj) { |
|
37 |
var searchString = trim(submitFormObj.searchstring.value); |
|
38 |
if (searchString=="") { |
|
39 |
searchString="%"; |
|
40 |
} |
|
41 |
|
|
42 |
submitFormObj.query.value = "<pathquery version=\"1.2\">" |
|
43 |
+"<querytitle>Web-Search</querytitle>" |
|
44 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>" |
|
45 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>" |
|
46 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>" |
|
47 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>" |
|
48 |
+"<returndoctype>-//NCEAS//resource//EN</returndoctype>" |
|
49 |
+"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>" |
|
50 |
+"<returnfield>originator/individualName/surName</returnfield>" |
|
51 |
+"<returnfield>originator/individualName/givenName</returnfield>" |
|
52 |
+"<returnfield>creator/individualName/surName</returnfield>" |
|
53 |
+"<returnfield>creator/individualName/givenName</returnfield>" |
|
54 |
+"<returnfield>originator/organizationName</returnfield>" |
|
55 |
+"<returnfield>creator/organizationName</returnfield>" |
|
56 |
+"<returnfield>dataset/title</returnfield>" |
|
57 |
+"<returnfield>keyword</returnfield>" |
|
58 |
+"<querygroup operator=\"INTERSECT\">" |
|
59 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
60 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
61 |
+"<pathexpr>organizationName</pathexpr>" |
|
62 |
+"</queryterm>" |
|
63 |
+"<querygroup operator=\"UNION\">" |
|
64 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
65 |
+"<value>" + searchString + "</value>" |
|
66 |
+"<pathexpr>surName</pathexpr>" |
|
67 |
+"</queryterm>" |
|
68 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
69 |
+"<value>" + searchString + "</value>" |
|
70 |
+"<pathexpr>givenName</pathexpr>" |
|
71 |
+"</queryterm>" |
|
72 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
73 |
+"<value>" + searchString + "</value>" |
|
74 |
+"<pathexpr>keyword</pathexpr>" |
|
75 |
+"</queryterm>" |
|
76 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
77 |
+"<value>" + searchString + "</value>" |
|
78 |
+"<pathexpr>para</pathexpr>" |
|
79 |
+"</queryterm>" |
|
80 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
81 |
+"<value>" + searchString + "</value>" |
|
82 |
+"<pathexpr>geographicDescription</pathexpr>" |
|
83 |
+"</queryterm>" |
|
84 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
85 |
+"<value>" + searchString + "</value>" |
|
86 |
+"<pathexpr>literalLayout</pathexpr>" |
|
87 |
+"</queryterm>" |
|
88 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
89 |
+"<value>" + searchString + "</value>" |
|
90 |
+"<pathexpr>title</pathexpr>" |
|
91 |
+"</queryterm>" |
|
92 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
93 |
+"<value>" + searchString + "</value>" |
|
94 |
+"<pathexpr>@packageId</pathexpr>" |
|
95 |
+"</queryterm>" |
|
96 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
97 |
+"<value>" + searchString + "</value>" |
|
98 |
+"<pathexpr>abstract/para</pathexpr>" |
|
99 |
+"</queryterm>" |
|
100 |
+"</querygroup>" |
|
101 |
+"</querygroup>" |
|
102 |
+"</pathquery>"; |
|
103 |
return true; |
|
104 |
} |
|
105 |
</script> |
|
106 |
|
|
31 |
<script type="text/javascript" |
|
32 |
href="@systemidserver@@style-skins-path@/nceas/search.js"></script> |
|
107 | 33 |
</head> |
108 | 34 |
|
109 | 35 |
<body> |
lib/style/skins/nceas/nceas-login.xsl | ||
---|---|---|
100 | 100 |
</xsl:template> |
101 | 101 |
|
102 | 102 |
</xsl:stylesheet> |
103 |
|
lib/style/skins/nceas/index.html | ||
---|---|---|
30 | 30 |
<head> |
31 | 31 |
<title>NCEAS Data Repository</title> |
32 | 32 |
<link rel="stylesheet" type="text/css" |
33 |
href="@systemidserver@@style-skins-path@/nceas/midnight.css">
|
|
33 |
href="@systemidserver@@style-skins-path@/nceas/nceas.css">
|
|
34 | 34 |
<script language="JavaScript" type="text/JavaScript" |
35 | 35 |
src="@systemidserver@@style-skins-path@/nceas/nceas.js"></script> |
36 | 36 |
<script language="JavaScript" type="text/JavaScript" |
37 | 37 |
src="@systemidserver@@style-common-path@/branding.js"></script> |
38 | 38 |
<script type="text/javascript" |
39 | 39 |
src="@systemidserver@@style-skins-path@/nceas/navigation.js"></script> |
40 |
<script language="Javascript"> |
|
41 |
function trim(stringToTrim) { |
|
42 |
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,''); |
|
43 |
} |
|
40 |
<script type="text/javascript" |
|
41 |
src="@systemidserver@@style-skins-path@/nceas/search.js"></script> |
|
44 | 42 |
|
45 |
function checkSearch(submitFormObj) { |
|
46 |
var searchString = trim(submitFormObj.searchstring.value); |
|
47 |
var checkBox = document.getElementById("searchAll"); |
|
48 |
|
|
49 |
if (searchString=="") { |
|
50 |
if (confirm("Show *all* data in the KNB?")) { |
|
51 |
searchString = "%"; |
|
52 |
} else { |
|
53 |
return false; |
|
54 |
} |
|
55 |
} |
|
56 |
|
|
57 |
if(!checkBox.checked && searchString!="%"){ |
|
58 |
submitFormObj.query.value = "<pathquery version=\"1.2\">" |
|
59 |
+"<querytitle>Web-Search</querytitle>" |
|
60 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>" |
|
61 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>" |
|
62 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>" |
|
63 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>" |
|
64 |
+"<returndoctype>-//NCEAS//resource//EN</returndoctype>" |
|
65 |
+"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>" |
|
66 |
+"<returnfield>originator/individualName/surName</returnfield>" |
|
67 |
+"<returnfield>originator/individualName/givenName</returnfield>" |
|
68 |
+"<returnfield>creator/individualName/surName</returnfield>" |
|
69 |
+"<returnfield>creator/individualName/givenName</returnfield>" |
|
70 |
+"<returnfield>originator/organizationName</returnfield>" |
|
71 |
+"<returnfield>creator/organizationName</returnfield>" |
|
72 |
+"<returnfield>dataset/title</returnfield>" |
|
73 |
+"<returnfield>keyword</returnfield>" |
|
74 |
+"<querygroup operator=\"INTERSECT\">" |
|
75 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
76 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
77 |
+"<pathexpr>organizationName</pathexpr>" |
|
78 |
+"</queryterm>" |
|
79 |
+"<querygroup operator=\"UNION\">" |
|
80 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
81 |
+"<value>" + searchString + "</value>" |
|
82 |
+"<pathexpr>surName</pathexpr>" |
|
83 |
+"</queryterm>" |
|
84 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
85 |
+"<value>" + searchString + "</value>" |
|
86 |
+"<pathexpr>givenName</pathexpr>" |
|
87 |
+"</queryterm>" |
|
88 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
89 |
+"<value>" + searchString + "</value>" |
|
90 |
+"<pathexpr>keyword</pathexpr>" |
|
91 |
+"</queryterm>" |
|
92 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
93 |
+"<value>" + searchString + "</value>" |
|
94 |
+"<pathexpr>para</pathexpr>" |
|
95 |
+"</queryterm>" |
|
96 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
97 |
+"<value>" + searchString + "</value>" |
|
98 |
+"<pathexpr>geographicDescription</pathexpr>" |
|
99 |
+"</queryterm>" |
|
100 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
101 |
+"<value>" + searchString + "</value>" |
|
102 |
+"<pathexpr>literalLayout</pathexpr>" |
|
103 |
+"</queryterm>" |
|
104 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
105 |
+"<value>" + searchString + "</value>" |
|
106 |
+"<pathexpr>title</pathexpr>" |
|
107 |
+"</queryterm>" |
|
108 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
109 |
+"<value>" + searchString + "</value>" |
|
110 |
+"<pathexpr>@packageId</pathexpr>" |
|
111 |
+"</queryterm>" |
|
112 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
113 |
+"<value>" + searchString + "</value>" |
|
114 |
+"<pathexpr>abstract/para</pathexpr>" |
|
115 |
+"</queryterm>" |
|
116 |
+"</querygroup>" |
|
117 |
+"</querygroup>" |
|
118 |
+"</pathquery>"; |
|
119 |
} else { |
|
120 |
queryTermString = ""; |
|
121 |
if(searchString != "%"){ |
|
122 |
queryTermString = "<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
123 |
+"<value>" + searchString + "</value>" |
|
124 |
+"</queryterm>"; |
|
125 |
} |
|
126 |
submitFormObj.query.value = "<pathquery version=\"1.2\">" |
|
127 |
+"<querytitle>Web-Search</querytitle>" |
|
128 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>" |
|
129 |
+"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>" |
|
130 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>" |
|
131 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>" |
|
132 |
+"<returndoctype>-//NCEAS//resource//EN</returndoctype>" |
|
133 |
+"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>" |
|
134 |
+"<returnfield>originator/individualName/surName</returnfield>" |
|
135 |
+"<returnfield>originator/individualName/givenName</returnfield>" |
|
136 |
+"<returnfield>creator/individualName/surName</returnfield>" |
|
137 |
+"<returnfield>creator/individualName/givenName</returnfield>" |
|
138 |
+"<returnfield>originator/organizationName</returnfield>" |
|
139 |
+"<returnfield>creator/organizationName</returnfield>" |
|
140 |
+"<returnfield>dataset/title</returnfield>" |
|
141 |
+"<returnfield>keyword</returnfield>" |
|
142 |
+"<querygroup operator=\"INTERSECT\">" |
|
143 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
144 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
145 |
+"<pathexpr>organizationName</pathexpr>" |
|
146 |
+"</queryterm>" |
|
147 |
+ queryTermString |
|
148 |
+"</querygroup>" |
|
149 |
+"</pathquery>"; |
|
150 |
|
|
151 |
} |
|
152 |
return true; |
|
153 |
} |
|
154 |
|
|
155 |
function searchAll(){ |
|
156 |
var checkBox = document.getElementById("searchCheckBox"); |
|
157 |
if(checkBox.checked == true){ |
|
158 |
alert("You have selected to search all possible existing fields. This search will take longer."); |
|
159 |
} |
|
160 |
} |
|
161 |
</script> |
|
162 |
<link href="nceas.css" rel="stylesheet" type="text/css"> |
|
163 |
<style type="text/css"> |
|
164 |
<!-- |
|
165 |
.style2 {font-size: 14px} |
|
166 |
--> |
|
167 |
</style> |
|
168 | 43 |
</head> |
169 | 44 |
<body id="Overview"> |
170 | 45 |
<div id="main_wrapper"> |
... | ... | |
175 | 50 |
href="#search">search</a>.</p> <h1><span></span><a href="/">NCEAS</a></h1> |
176 | 51 |
</div> |
177 | 52 |
<div id="navigation"> |
53 |
<p></p> |
|
178 | 54 |
<ul id="main_nav"> |
179 |
|
|
180 |
<ul class="menu"> |
|
181 |
<li class="collapsed"><a href="http://www.nceas.ucsb.edu">Home</a></li> |
|
182 |
<li class="collapsed"><a href="http://data.nceas.ucsb.edu">Repository</a></li> |
|
183 |
<li class="collapsed"><a href="@cgi-prefix@/register-dataset.cgi?cfg=nceas">Register</a></li> |
|
184 |
</ul> |
|
55 |
<ul class="menu"> |
|
56 |
<li class="collapsed"><a href="http://www.nceas.ucsb.edu">Home</a></li> |
|
57 |
<li class="collapsed"><a href="http://data.nceas.ucsb.edu">Repository</a></li> |
|
58 |
<li class="collapsed"><a href="@cgi-prefix@/register-dataset.cgi?cfg=nceas">Register</a></li> |
|
59 |
</ul> |
|
185 | 60 |
</ul> |
186 |
</div> <!-- navigation -->
|
|
61 |
</div> <!-- navigation --> |
|
187 | 62 |
|
188 | 63 |
<div id="content_wrapper"> |
189 | 64 |
<h1>NCEAS Data Repository</h1> |
... | ... | |
196 | 71 |
<br> |
197 | 72 |
<table class="tables" cellpadding="8" cellspacing="0"> |
198 | 73 |
<tr class="sectheader"> |
199 |
<td class="borderbottom" colspan="2" align="left"><span class="label"> </span><a name="search" ></a>
|
|
74 |
<td class="borderbottom"><a name="search" ></a> |
|
200 | 75 |
<p align="center" class="largetext"> Search for Data Sets </p></td> |
201 | 76 |
</tr> |
202 | 77 |
<tr class="sectbody"></tr> |
203 | 78 |
|
204 | 79 |
<tr > |
205 |
<td colspan="2" align="left"><form method="POST" action="@servlet-path@" target="_top" onSubmit="return checkSearch(this)"> |
|
206 |
<span class="searchresultsdividerPale"> |
|
80 |
<td align="left"><form method="POST" action="@servlet-path@" target="_top" onSubmit="return checkSearch(this)"> |
|
81 |
<div class="searchresultsdividerPale"> |
|
82 |
<p> |
|
207 | 83 |
<input value="UNION" name="operator" type="hidden"> |
208 | 84 |
|
209 | 85 |
<input size="14" name="searchstring" type="text" value="" id="searchBox"> |
... | ... | |
212 | 88 |
<input name="enableediting" value="true" type="hidden"> |
213 | 89 |
<input type="hidden" name="action" value="squery"> |
214 | 90 |
<input value="Search" type="submit"> |
215 |
</span> |
|
216 |
</form> |
|
217 |
<form> |
|
218 |
<input name="search" type="radio" checked> |
|
91 |
</p> |
|
92 |
<p> |
|
93 |
<input name="search" type="radio" checked> |
|
219 | 94 |
Search Title, Abstract, Keywords, Personnel (Quicker) <br> |
220 | 95 |
<input name="search" type="radio" id="searchAll"> |
221 | 96 |
Search all fields (Slower) <br> |
222 |
|
|
223 |
</form> |
|
97 |
</p> |
|
98 |
</div> |
|
99 |
|
|
224 | 100 |
<div align="center"> |
225 | 101 |
<p align="left">This tool allows you to search the registry for data sets of interest. When you type text in the box and click on the "Search" button, the search will only be conducted within the title, author, abstract, and keyword fields. Checking the "Search All Fields" box will search on these and all other existing fields (this search will take more time). <br> |
226 | 102 |
<br> |
... | ... | |
271 | 147 |
<div id="footer"> |
272 | 148 |
<div id="footer_logos"> |
273 | 149 |
<a href="http://www.msi.ucsb.edu/"><img |
274 |
src="logo_msi.jpg" alt="MSI: Marine Science Institute" height="66" |
|
275 |
width="132"></a><a href="http://www.nsf.gov/"><img src="logo_nsf.jpg" |
|
150 |
src="images/logo_msi.jpg" alt="MSI: Marine Science Institute" height="66"
|
|
151 |
width="132"></a><a href="http://www.nsf.gov/"><img src="images/logo_nsf.jpg"
|
|
276 | 152 |
alt="NSF: National Science |
277 | 153 |
Foundation" height="66" width="70"></a><a href="http://www.ucsb.edu/"><img |
278 |
src="logo_ucsb.jpg" alt="UCSB: University of California at Santa Barbara" |
|
154 |
src="images/logo_ucsb.jpg" alt="UCSB: University of California at Santa Barbara"
|
|
279 | 155 |
height="66" width="132"></a> |
280 | 156 |
</div> <!-- footer_logos --> |
281 | 157 |
<div id="footer_contact"> |
Also available in: Unified diff
NCEAS skin changes: moved images into subfolder for organization, moved search javascript into sea
rch.js to cut down on replication. Modifications to nceas.css and midnight.css to clean up integration of Drupal theme.