35 |
35 |
src="@systemidserver@@style-skins-path@/esa/esa.js"></script>
|
36 |
36 |
<script language="JavaScript" type="text/JavaScript"
|
37 |
37 |
src="@systemidserver@@style-common-path@/branding.js"></script>
|
|
38 |
<script language="Javascript">
|
|
39 |
|
|
40 |
function trim(stringToTrim) {
|
|
41 |
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
|
|
42 |
}
|
|
43 |
|
|
44 |
function checkSearch(submitFormObj) {
|
|
45 |
var searchString = trim(submitFormObj.elements["anyfield"].value);
|
|
46 |
var checkBox = document.getElementById("searchCheckBox");
|
|
47 |
|
|
48 |
if (searchString=="") {
|
|
49 |
searchString="%";
|
|
50 |
}
|
|
51 |
|
|
52 |
if(checkBox.checked == false && searchString != "%"){
|
|
53 |
submitFormObj.anyfield.value = "";
|
|
54 |
submitFormObj.title.value = searchString;
|
|
55 |
submitFormObj.surName.value = searchString;
|
|
56 |
submitFormObj.givenName.value = searchString;
|
|
57 |
submitFormObj.keyword.value = searchString;
|
|
58 |
submitFormObj.title.value = searchString;
|
|
59 |
submitFormObj.organizationName.value = searchString;
|
|
60 |
submitFormObj.operator.value="UNION";
|
|
61 |
var abs = document.getElementById("abstract");
|
|
62 |
abs.value=searchString;
|
|
63 |
}
|
|
64 |
return true;
|
|
65 |
}
|
|
66 |
|
|
67 |
function searchAll(){
|
|
68 |
var checkBox = document.getElementById("searchCheckBox");
|
|
69 |
if(checkBox.checked == true){
|
|
70 |
alert("You have selected to search all possible existing fields. This search will take longer.");
|
|
71 |
}
|
|
72 |
}
|
|
73 |
|
|
74 |
function searchKNB(){
|
|
75 |
var checkBox = document.getElementById("knbCheckBox");
|
|
76 |
if(checkBox.checked == true){
|
|
77 |
alert("You have selected to search KNB data also.");
|
|
78 |
}
|
|
79 |
}
|
|
80 |
|
|
81 |
|
|
82 |
</script>
|
38 |
83 |
</head>
|
39 |
84 |
<body>
|
40 |
85 |
<script language="JavaScript">
|
... | ... | |
60 |
105 |
<menu>
|
61 |
106 |
<li><span class="searchbox">Search for Data</span><br />
|
62 |
107 |
<menu>
|
63 |
|
<form method="POST" action="@servlet-path@" target="_top">
|
|
108 |
<form method="POST" action="@servlet-path@" target="_top" onSubmit="return checkSearch(this)">
|
64 |
109 |
<input value="INTERSECT" name="operator" type="hidden">
|
65 |
|
<input size="14" name="anyfield" type="text" value="">
|
66 |
|
<!--<input name="organizationName" value="Ecological Society of America" type="hidden">-->
|
|
110 |
<input size="14" name="anyfield" type="text" value="">
|
|
111 |
<input type="hidden" name="organizationName">
|
|
112 |
<input type="hidden" name="surName">
|
|
113 |
<input type="hidden" name="givenName">
|
|
114 |
<input type="hidden" name="keyword">
|
|
115 |
<input type="hidden" name="title">
|
|
116 |
<input type="hidden" name="abstract/para" id="abstract">
|
67 |
117 |
<input name="action" value="query" type="hidden">
|
68 |
118 |
<input name="qformat" value="esa" type="hidden">
|
69 |
119 |
<input name="enableediting" value="true" type="hidden">
|
70 |
|
<input name="operator" value="UNION" type="hidden">
|
71 |
120 |
<input name="returnfield" value="originator/individualName/surName" type="hidden">
|
72 |
121 |
<input name="returnfield" value="originator/individualName/givenName" type="hidden">
|
73 |
122 |
<input name="returnfield" value="creator/individualName/surName" type="hidden">
|
... | ... | |
84 |
133 |
<input name="returndoctype" value="-//NCEAS//eml-dataset//EN" type="hidden">
|
85 |
134 |
<input value="Search" type="submit">
|
86 |
135 |
</form>
|
87 |
|
The registry search system is used to locate data sets of interest
|
88 |
|
by searching through existing registered data sets.
|
89 |
|
Presently the search covers all fields, including
|
90 |
|
author, title, abstract, keywords, and other documentation
|
91 |
|
for each data set. Use a '%' symbol as a wildcard in searches
|
92 |
|
(e.g., '%biodiversity%' would locate any phrase with the word
|
|
136 |
<input type="CHECKBOX" name="searchAll" onClick="searchAll()" id="searchCheckBox" >
|
|
137 |
<span class="regtext">Search All Fields</span>
|
|
138 |
|
|
139 |
<input type="CHECKBOX" name="searchKNB" onClick="searchKNB()" id="knbCheckBox" >
|
|
140 |
<span class="regtext">Search KNB data also?</span>
|
|
141 |
<br><br>
|
|
142 |
This tool allows you to search the registry for data sets
|
|
143 |
of interest. When you type in text in the box and click on
|
|
144 |
the "Search" button, the search will be conducted within
|
|
145 |
the title, author, abstract, and keyword fields only.
|
|
146 |
Checking the "Search All" box will perform a search on all
|
|
147 |
possible existing fields (this search will take longer).
|
|
148 |
Use a '%' symbol as a wildcard in searches (e.g.,
|
|
149 |
'%biodiversity%' would locate any phrase with the word
|
93 |
150 |
biodiversity embedded within it).
|
94 |
151 |
</menu>
|
|
152 |
<br><br>
|
95 |
153 |
</li>
|
96 |
154 |
<li><a href="@servlet-path@?action=query&operator=INTERSECT&anyfield=%25&qformat=esa&enableediting=true&returndoctype=eml://ecoinformatics.org/eml-2.0.1&returndoctype=eml://ecoinformatics.org/eml-2.0.0&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN&returndoctype=-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN&returnfield=dataset/title&returnfield=keyword&returnfield=originator/individualName/surName&returnfield=creator/individualName/surName&returnfield=originator/organizationName&returnfield=creator/organizationName">Browse data sets</a><br />
|
97 |
155 |
<menu>
|
Changes to the ESA skin so as to search on particular given fields instead of searching everything