Project

General

Profile

« Previous | Next » 

Revision 2704

Added by sgarg about 19 years ago

Change in nceas homepage so that search uses a radio button instead of check box

View differences:

index.html
43 43

  
44 44
        function checkSearch(submitFormObj) {
45 45
                var searchString = trim(submitFormObj.searchstring.value);
46
                var checkBox = document.getElementById("searchCheckBox");
46
 		var checkBox = document.getElementById("searchAll");
47 47

  
48 48
                if (searchString=="") {
49
                        searchString="%";
49
			if (confirm("Show *all* data in the KNB?")) {
50
          			searchString = "%";
51
        		} else {
52
          			return false;
53
        		}
50 54
                }
51 55

  
52
                if(checkBox.checked == false && searchString!="%"){
56
                if(!checkBox.checked && searchString!="%"){
53 57
                        submitFormObj.query.value = "<pathquery version=\"1.2\">"
54 58
                                                           +"<querytitle>Web-Search</querytitle>"
55 59
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
......
191 195
  <input type="hidden" name="action" value="squery">
192 196
  <input value="Search" type="submit">
193 197
</form>
194
  <input type="CHECKBOX" name="searchAll" onClick="searchAll()" id="searchCheckBox" >
195
  <span class="regtext">Search All Fields</span>
198
<form>
199
<input name="search" type="radio" checked><span class="text_plain"> Search Title, Abstract, Keywords, Personnel (Quicker)</span></input><br>
200
<input name="search" type="radio" id="searchAll"><span class="text_plain"> Search all fields (Slower)</span></input><br>
201
</form>
196 202
   <br><br>
197 203
      This tool allows you to search the registry for data
198 204
      sets of interest. When you type text in the box and

Also available in: Unified diff