[metacat-cvs] metacat/lib/style/skins/nceas index.html

Saurabh Garg sgarg at ecoinformatics.org
Tue Nov 1 09:14:27 PST 2005


sgarg       05/11/01 09:14:27

  Modified:    lib/style/skins/nceas index.html
  Log:
  Change in nceas homepage so that search uses a radio button instead of check box
  
  Revision  Changes    Path
  1.10      +13 -7     metacat/lib/style/skins/nceas/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /cvs/metacat/lib/style/skins/nceas/index.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- index.html	26 Oct 2005 21:20:13 -0000	1.9
  +++ index.html	1 Nov 2005 17:14:27 -0000	1.10
  @@ -6,8 +6,8 @@
     *  For Details: http://www.nceas.ucsb.edu/
     *
     *   '$Author: sgarg $'
  -  *     '$Date: 2005/10/26 21:20:13 $'
  -  * '$Revision: 1.9 $'
  +  *     '$Date: 2005/11/01 17:14:27 $'
  +  * '$Revision: 1.10 $'
     * 
     * This is an HTML document for displaying metadata catalog tools
     *
  @@ -43,13 +43,17 @@
   
           function checkSearch(submitFormObj) {
                   var searchString = trim(submitFormObj.searchstring.value);
  -                var checkBox = document.getElementById("searchCheckBox");
  + 		var checkBox = document.getElementById("searchAll");
   
                   if (searchString=="") {
  -                        searchString="%";
  +			if (confirm("Show *all* data in the KNB?")) {
  +          			searchString = "%";
  +        		} else {
  +          			return false;
  +        		}
                   }
   
  -                if(checkBox.checked == false && searchString!="%"){
  +                if(!checkBox.checked && searchString!="%"){
                           submitFormObj.query.value = "<pathquery version=\"1.2\">"
                                                              +"<querytitle>Web-Search</querytitle>"
                                                              +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
  @@ -191,8 +195,10 @@
     <input type="hidden" name="action" value="squery">
     <input value="Search" type="submit">
   </form>
  -  <input type="CHECKBOX" name="searchAll" onClick="searchAll()" id="searchCheckBox" >
  -  <span class="regtext">Search All Fields</span>
  +<form>
  +<input name="search" type="radio" checked><span class="text_plain"> Search Title, Abstract, Keywords, Personnel (Quicker)</span></input><br>
  +<input name="search" type="radio" id="searchAll"><span class="text_plain"> Search all fields (Slower)</span></input><br>
  +</form>
      <br><br>
         This tool allows you to search the registry for data
         sets of interest. When you type text in the box and
  
  
  


More information about the Metacat-cvs mailing list