Project

General

Profile

« Previous | Next » 

Revision 3469

Added by walbridge over 17 years ago

NCEAS skin changes: moved images into subfolder for organization, moved search javascript into sea
rch.js to cut down on replication. Modifications to nceas.css and midnight.css to clean up integration of Drupal theme.

View differences:

index.html
30 30
<head>
31 31
<title>NCEAS Data Repository</title>
32 32
  <link rel="stylesheet" type="text/css" 
33
        href="@systemidserver@@style-skins-path@/nceas/midnight.css">
33
        href="@systemidserver@@style-skins-path@/nceas/nceas.css">
34 34
  <script language="JavaScript" type="text/JavaScript"
35 35
          src="@systemidserver@@style-skins-path@/nceas/nceas.js"></script>
36 36
  <script language="JavaScript" type="text/JavaScript"
37 37
          src="@systemidserver@@style-common-path@/branding.js"></script>
38 38
  <script type="text/javascript" 
39 39
          src="@systemidserver@@style-skins-path@/nceas/navigation.js"></script>
40
  <script language="Javascript">
41
        function trim(stringToTrim) {
42
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
43
        }
40
  <script type="text/javascript"
41
          src="@systemidserver@@style-skins-path@/nceas/search.js"></script>
44 42

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

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

  
57
                if(!checkBox.checked && searchString!="%"){
58
                        submitFormObj.query.value = "<pathquery version=\"1.2\">"
59
                                                           +"<querytitle>Web-Search</querytitle>"
60
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
61
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
62
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
63
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
64
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
65
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
66
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
67
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
68
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
69
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
70
                                                           +"<returnfield>originator/organizationName</returnfield>"
71
                                                           +"<returnfield>creator/organizationName</returnfield>"
72
                                                           +"<returnfield>dataset/title</returnfield>"
73
                                                           +"<returnfield>keyword</returnfield>"
74
                                                           +"<querygroup operator=\"INTERSECT\">"
75
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
76
                                                                        +"<value>National Center for Ecological Analysis and Synthesis</value>"
77
                                                                        +"<pathexpr>organizationName</pathexpr>"
78
                                                                +"</queryterm>"
79
                                                                +"<querygroup operator=\"UNION\">"
80
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
81
                                                                                +"<value>" + searchString + "</value>"
82
                                                                                +"<pathexpr>surName</pathexpr>"
83
                                                                        +"</queryterm>"
84
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
85
                                                                                +"<value>" + searchString + "</value>"
86
                                                                                +"<pathexpr>givenName</pathexpr>"
87
                                                                        +"</queryterm>"
88
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
89
                                                                                +"<value>" + searchString + "</value>"
90
                                                                                +"<pathexpr>keyword</pathexpr>"
91
                                                                        +"</queryterm>"
92
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
93
                                                                                +"<value>" + searchString + "</value>"
94
                                                                         +"<pathexpr>para</pathexpr>"
95
                                                                        +"</queryterm>"
96
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
97
                                                                                +"<value>" + searchString + "</value>"
98
                                                                                +"<pathexpr>geographicDescription</pathexpr>"
99
                                                                        +"</queryterm>"
100
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
101
                                                                                +"<value>" + searchString + "</value>"
102
                                                                                +"<pathexpr>literalLayout</pathexpr>"
103
                                                                        +"</queryterm>"
104
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
105
                                                                                +"<value>" + searchString + "</value>"
106
                                                                                +"<pathexpr>title</pathexpr>"
107
                                                                        +"</queryterm>"
108
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
109
                                                                                +"<value>" + searchString + "</value>"
110
                                                                                +"<pathexpr>@packageId</pathexpr>"
111
                                                                        +"</queryterm>"
112
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
113
                                                                                +"<value>" + searchString + "</value>"
114
                                                                                +"<pathexpr>abstract/para</pathexpr>"
115
                                                                        +"</queryterm>"
116
                                                                +"</querygroup>"
117
                                                          +"</querygroup>"
118
                                                  +"</pathquery>";
119
                } else {
120
                        queryTermString = "";
121
                        if(searchString != "%"){
122
                                queryTermString = "<queryterm searchmode=\"contains\" casesensitive=\"false\">"
123
                                                        +"<value>" + searchString + "</value>"
124
                                                 +"</queryterm>";
125
                        }
126
                        submitFormObj.query.value = "<pathquery version=\"1.2\">"
127
                                                           +"<querytitle>Web-Search</querytitle>"
128
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
129
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
130
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
131
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
132
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
133
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
134
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
135
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
136
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
137
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
138
                                                           +"<returnfield>originator/organizationName</returnfield>"
139
                                                           +"<returnfield>creator/organizationName</returnfield>"
140
                                                           +"<returnfield>dataset/title</returnfield>"
141
                                                           +"<returnfield>keyword</returnfield>"
142
                                                           +"<querygroup operator=\"INTERSECT\">"
143
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
144
                                                                        +"<value>National Center for Ecological Analysis and Synthesis</value>"
145
                                                                        +"<pathexpr>organizationName</pathexpr>"
146
                                                                +"</queryterm>"
147
                                                                + queryTermString
148
                                                           +"</querygroup>"
149
                                                    +"</pathquery>";
150

  
151
                }
152
                return true;
153
        }
154

  
155
        function searchAll(){
156
                var checkBox = document.getElementById("searchCheckBox");
157
                if(checkBox.checked == true){
158
                        alert("You have selected to search all possible existing fields. This search will take longer.");
159
                }
160
        }
161
   </script>
162
  <link href="nceas.css" rel="stylesheet" type="text/css">
163
  <style type="text/css">
164
<!--
165
.style2 {font-size: 14px}
166
-->
167
  </style>
168 43
</head>
169 44
<body id="Overview">
170 45
    <div id="main_wrapper">
......
175 50
        href="#search">search</a>.</p> <h1><span></span><a href="/">NCEAS</a></h1>
176 51
    </div>
177 52
    <div id="navigation">
53
        <p></p>
178 54
        <ul id="main_nav">
179

  
180
                    <ul class="menu">
181
                        <li class="collapsed"><a href="http://www.nceas.ucsb.edu">Home</a></li>
182
                        <li class="collapsed"><a href="http://data.nceas.ucsb.edu">Repository</a></li>
183
                        <li class="collapsed"><a href="@cgi-prefix@/register-dataset.cgi?cfg=nceas">Register</a></li>
184
                    </ul>
55
            <ul class="menu">
56
                <li class="collapsed"><a href="http://www.nceas.ucsb.edu">Home</a></li>
57
                <li class="collapsed"><a href="http://data.nceas.ucsb.edu">Repository</a></li>
58
                <li class="collapsed"><a href="@cgi-prefix@/register-dataset.cgi?cfg=nceas">Register</a></li>
59
            </ul>
185 60
        </ul>
186
     </div> <!-- navigation --> 
61
    </div> <!-- navigation --> 
187 62

  
188 63
    <div id="content_wrapper">
189 64
        <h1>NCEAS Data Repository</h1>
......
196 71
<br>
197 72
<table class="tables" cellpadding="8" cellspacing="0">
198 73
  <tr class="sectheader">
199
    <td class="borderbottom" colspan="2" align="left"><span class="label"> </span><a name="search" ></a>
74
    <td class="borderbottom"><a name="search" ></a>
200 75
        <p align="center" class="largetext"> Search for Data Sets </p></td>
201 76
  </tr>
202 77
  <tr class="sectbody"></tr>
203 78
 
204 79
  <tr >
205
    <td  colspan="2" align="left"><form method="POST" action="@servlet-path@" target="_top" onSubmit="return checkSearch(this)">
206
        <span class="searchresultsdividerPale">
80
    <td align="left"><form method="POST" action="@servlet-path@" target="_top" onSubmit="return checkSearch(this)">
81
        <div class="searchresultsdividerPale">
82
        <p>
207 83
        <input value="UNION" name="operator" type="hidden">
208 84
&nbsp;
209 85
        <input size="14" name="searchstring" type="text" value="" id="searchBox">
......
212 88
        <input name="enableediting" value="true" type="hidden">
213 89
        <input type="hidden" name="action" value="squery">
214 90
        <input value="Search" type="submit">
215
        </span>
216
      </form>
217
        <form>
218
          <input name="search" type="radio" checked>
91
        </p>
92
        <p>
93
        <input name="search" type="radio" checked>
219 94
        Search Title, Abstract, Keywords, Personnel (Quicker) <br>
220 95
        <input name="search" type="radio" id="searchAll">
221 96
        Search all fields (Slower) <br>
222
          
223
        </form>
97
        </p>
98
        </div>
99
        
224 100
        <div align="center">
225 101
          <p align="left">This tool allows you to search the registry for data sets of interest. When you type text in the box and click on the "Search" button, the search will only be conducted within the title, author, abstract, and keyword fields. Checking the "Search All Fields" box will search on these and all other existing fields (this search will take more time). <br>
226 102
                <br>
......
271 147
<div id="footer">
272 148
    <div id="footer_logos">
273 149
                <a href="http://www.msi.ucsb.edu/"><img
274
src="logo_msi.jpg" alt="MSI: Marine Science Institute" height="66"
275
width="132"></a><a href="http://www.nsf.gov/"><img src="logo_nsf.jpg"
150
src="images/logo_msi.jpg" alt="MSI: Marine Science Institute" height="66"
151
width="132"></a><a href="http://www.nsf.gov/"><img src="images/logo_nsf.jpg"
276 152
alt="NSF: National Science 
277 153
Foundation" height="66" width="70"></a><a href="http://www.ucsb.edu/"><img
278
src="logo_ucsb.jpg" alt="UCSB: University of California at Santa Barbara"
154
src="images/logo_ucsb.jpg" alt="UCSB: University of California at Santa Barbara"
279 155
height="66" width="132"></a>
280 156
    </div> <!-- footer_logos -->
281 157
    <div id="footer_contact">

Also available in: Unified diff