[metacat-cvs] metacat/lib/style/skins/nrs index.html
Saurabh Garg
sgarg at ecoinformatics.org
Tue Nov 1 09:35:19 PST 2005
sgarg 05/11/01 09:35:19
Modified: lib/style/skins/nrs index.html
Log:
Change in nrs homepage so that search uses a radio button instead of check box
Revision Changes Path
1.7 +13 -7 metacat/lib/style/skins/nrs/index.html
Index: index.html
===================================================================
RCS file: /cvs/metacat/lib/style/skins/nrs/index.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- index.html 26 Oct 2005 21:20:13 -0000 1.6
+++ index.html 1 Nov 2005 17:35:19 -0000 1.7
@@ -6,8 +6,8 @@
* For Details: http://www.nceas.ucsb.edu/
*
* '$Author: sgarg $'
- * '$Date: 2005/10/26 21:20:13 $'
- * '$Revision: 1.6 $'
+ * '$Date: 2005/11/01 17:35:19 $'
+ * '$Revision: 1.7 $'
*
* This is an HTML document for displaying metadata catalog tools
*
@@ -44,13 +44,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>"
@@ -201,8 +205,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