Project

General

Profile

« Previous | Next » 

Revision 2706

Added by sgarg about 19 years ago

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

View differences:

lib/style/skins/obfs/index.html
44 44

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

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

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

Also available in: Unified diff