Project

General

Profile

1
<%@ page    language="java" %>
2
<%
3
/**
4
 * '$RCSfile$'
5
 * Copyright: 2003 Regents of the University of California and the
6
 *             National Center for Ecological Analysis and Synthesis
7
 * '$Author: daigle $'
8
 * '$Date: 2008-04-02 16:28:31 -0700 (Wed, 02 Apr 2008) $'
9
 * '$Revision: 3780 $'
10
 * 
11
 * This program is free software; you can redistribute it and/or modify
12
 * it under the terms of the GNU General Public License as published by
13
 * the Free Software Foundation; either version 2 of the License, or
14
 * (at your option) any later version.
15
 * 
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *   
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
 */
25
 %>
26

    
27
 <%@ include file="../../common/common-settings.jsp"%>
28

    
29
<!--____________________________max_width____________________________________-->
30

    
31
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
32
<html>
33
<head>
34
  <title>UCNRS Data Registry</title>
35
  <link rel="stylesheet" type="text/css" 
36
        href="<%=STYLE_SKINS_URL%>/nrs/nrs.css"></link>
37
  <script language="Javascript">
38
        function trim(stringToTrim) {
39
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
40
        }
41

    
42
        function checkSearch(submitFormObj) {
43
                var searchString = trim(submitFormObj.searchstring.value);
44
                if (searchString=="") {
45
                        searchString="%";
46
                }
47

    
48
                submitFormObj.query.value = "<pathquery version=\"1.2\">"
49
                                                  +"<querytitle>Web-Search</querytitle>"
50
                                                  +"<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>"
51
                                                           +"<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>"
52
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>"
53
                                                           +"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>"
54
                                                           +"<returndoctype>-//NCEAS//resource//EN</returndoctype>"
55
                                                           +"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>"
56
                                                           +"<returnfield>originator/individualName/surName</returnfield>"
57
                                                           +"<returnfield>originator/individualName/givenName</returnfield>"
58
                                                           +"<returnfield>creator/individualName/surName</returnfield>"
59
                                                           +"<returnfield>creator/individualName/givenName</returnfield>"
60
                                                           +"<returnfield>originator/organizationName</returnfield>"
61
                                                           +"<returnfield>creator/organizationName</returnfield>"
62
                                                           +"<returnfield>dataset/title</returnfield>"
63
                                                           +"<returnfield>keyword</returnfield>"
64
                                                           +"<querygroup operator=\"INTERSECT\">"
65
                                                                +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
66
                                                                        +"<value>University of California Natural Reserve System</value>"
67
                                                                        +"<pathexpr>organizationName</pathexpr>"
68
                                                                +"</queryterm>"
69
                                                                +"<querygroup operator=\"UNION\">"
70
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
71
                                                                                +"<value>" + searchString + "</value>"
72
                                                                                +"<pathexpr>surName</pathexpr>"
73
                                                                        +"</queryterm>"
74
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
75
                                                                                +"<value>" + searchString + "</value>"
76
                                                                                +"<pathexpr>givenName</pathexpr>"
77
                                                                        +"</queryterm>"
78
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
79
                                                                                +"<value>" + searchString + "</value>"
80
                                                                                +"<pathexpr>keyword</pathexpr>"
81
                                                                        +"</queryterm>"
82
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
83
                                                                                +"<value>" + searchString + "</value>"
84
                                                                                +"<pathexpr>para</pathexpr>"
85
                                                                        +"</queryterm>"
86
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
87
                                                                                +"<value>" + searchString + "</value>"
88
                                                                                +"<pathexpr>geographicDescription</pathexpr>"
89
                                                                        +"</queryterm>"
90
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
91
                                                                                +"<value>" + searchString + "</value>"
92
                                                                                +"<pathexpr>literalLayout</pathexpr>"
93
                                                                        +"</queryterm>"
94
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
95
                                                                                +"<value>" + searchString + "</value>"
96
                                                                                +"<pathexpr>title</pathexpr>"
97
                                                                        +"</queryterm>"
98
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
99
                                                                                +"<value>" + searchString + "</value>"
100
                                                                                +"<pathexpr>@packageId</pathexpr>"
101
                                                                        +"</queryterm>"
102
                                                                        +"<queryterm searchmode=\"contains\" casesensitive=\"false\">"
103
                                                                                +"<value>" + searchString + "</value>"
104
                                                                                +"<pathexpr>abstract/para</pathexpr>"
105
                                                                        +"</queryterm>"
106
                                                                +"</querygroup>"
107
                                                          +"</querygroup>"
108
                                                  +"</pathquery>";
109
                return true;
110
        }
111
  </script>
112
</head>
113

    
114
<body>
115
<table width="760" class="headertopmargin" border="0" cellspacing="0" cellpadding="0">
116
  <tr> 
117
    <td valign="middle" colspan="4" class="title">UC Natural Reserve System
118
    Data Registry</td>
119
    <td rowspan="3" width="20%" valign="top"> 
120
      <div align="right"><img src="<%=STYLE_SKINS_URL%>/nrs/nrs-logo.gif"></div>
121
    </td>
122
  </tr>
123
  <tr> 
124
    <td class="spacerrow" valign="top" colspan="4">&nbsp;</td>
125
  </tr>
126
  <tr> 
127
    <td valign="top" width="20%"> 
128
      <p><a href="http://www.ucnrs.org" target="_top"> NRS Home</a></p>
129
    </td>
130
    <td valign="top" width="20%"> 
131
      <p><a href="<%=STYLE_SKINS_URL%>/nrs/index.jsp" target="_top">Registry Home</a></p>
132
    </td>
133
    <td valign="top" width="20%"> 
134
      <p><a href="<%=CGI_URL%>/register-dataset.cgi?cfg=nrs"
135
			target="_top">Register a<br>
136
		New Data Set</a></p>
137
    </td>
138
    <td valign="top" width="20%"> 
139
<p class="searchbox">
140
Search for Data<br />
141
<form method="POST" action="<%=SERVLET_URL%>" target="_top" onSubmit="return checkSearch(this)">
142
  <input value="INTERSECT" name="operator" type="hidden">   
143
  <input size="14" name="searchstring" type="text" value="">
144
  <input name="query" type="hidden"/>
145
  <input name="qformat" value="nrs" type="hidden">
146
  <input name="enableediting" value="true" type="hidden">
147
  <input type="hidden" name="action" value="squery">
148
  <!-- <input value="Start Search" type="submit"> -->
149
</form>
150
</p>
151
    </td>
152
  </tr>
153
</table>
154
</body>
155
</html>
(1-1/9)