Revision 3742
Added by ben leinfelder about 16 years ago
search.js | ||
---|---|---|
23 | 23 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>" |
24 | 24 |
+"<returndoctype>-//NCEAS//resource//EN</returndoctype>" |
25 | 25 |
+"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>" |
26 |
+"<returndoctype>metadata</returndoctype>" |
|
26 | 27 |
+"<returnfield>originator/individualName/surName</returnfield>" |
27 | 28 |
+"<returnfield>originator/individualName/givenName</returnfield>" |
28 | 29 |
+"<returnfield>creator/individualName/surName</returnfield>" |
... | ... | |
31 | 32 |
+"<returnfield>creator/organizationName</returnfield>" |
32 | 33 |
+"<returnfield>dataset/title</returnfield>" |
33 | 34 |
+"<returnfield>keyword</returnfield>" |
35 |
//fgdc fields |
|
36 |
+"<returnfield>idinfo/citation/citeinfo/title</returnfield>" |
|
37 |
+"<returnfield>idinfo/citation/citeinfo/origin</returnfield>" |
|
38 |
+"<returnfield>idinfo/keywords/theme/themekey</returnfield>" |
|
34 | 39 |
+"<querygroup operator=\"INTERSECT\">" |
35 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
36 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
37 |
+"<pathexpr>organizationName</pathexpr>" |
|
38 |
+"</queryterm>" |
|
40 |
+"<querygroup operator=\"UNION\">" |
|
41 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
42 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
43 |
+"<pathexpr>organizationName</pathexpr>" |
|
44 |
+"</queryterm>" |
|
45 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
46 |
+"<value>%</value>" |
|
47 |
+"<pathexpr>placekey</pathexpr>" |
|
48 |
+"</queryterm>" |
|
49 |
+"</querygroup>" |
|
39 | 50 |
+"<querygroup operator=\"UNION\">" |
40 | 51 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
41 | 52 |
+"<value>" + searchString + "</value>" |
... | ... | |
92 | 103 |
+"<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype>" |
93 | 104 |
+"<returndoctype>-//NCEAS//resource//EN</returndoctype>" |
94 | 105 |
+"<returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>" |
106 |
+"<returndoctype>metadata</returndoctype>" |
|
95 | 107 |
+"<returnfield>originator/individualName/surName</returnfield>" |
96 | 108 |
+"<returnfield>originator/individualName/givenName</returnfield>" |
97 | 109 |
+"<returnfield>creator/individualName/surName</returnfield>" |
... | ... | |
100 | 112 |
+"<returnfield>creator/organizationName</returnfield>" |
101 | 113 |
+"<returnfield>dataset/title</returnfield>" |
102 | 114 |
+"<returnfield>keyword</returnfield>" |
115 |
//fgdc fields |
|
116 |
+"<returnfield>idinfo/citation/citeinfo/title</returnfield>" |
|
117 |
+"<returnfield>idinfo/citation/citeinfo/origin</returnfield>" |
|
118 |
+"<returnfield>idinfo/keywords/theme/themekey</returnfield>" |
|
103 | 119 |
+"<querygroup operator=\"INTERSECT\">" |
104 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
105 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
106 |
+"<pathexpr>organizationName</pathexpr>" |
|
107 |
+"</queryterm>" |
|
120 |
+"<querygroup operator=\"UNION\">" |
|
121 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
122 |
+"<value>National Center for Ecological Analysis and Synthesis</value>" |
|
123 |
+"<pathexpr>organizationName</pathexpr>" |
|
124 |
+"</queryterm>" |
|
125 |
+"<queryterm searchmode=\"contains\" casesensitive=\"false\">" |
|
126 |
+"<value>%</value>" |
|
127 |
+"<pathexpr>placekey</pathexpr>" |
|
128 |
+"</queryterm>" |
|
129 |
+"</querygroup>" |
|
108 | 130 |
+ queryTermString |
109 | 131 |
+"</querygroup>" |
110 | 132 |
+"</pathquery>"; |
... | ... | |
113 | 135 |
return true; |
114 | 136 |
} |
115 | 137 |
|
138 |
function browseAll(searchFormId) { |
|
139 |
var searchForm = document.getElementById(searchFormId); |
|
140 |
var searchString = searchForm.searchstring; |
|
141 |
var checkBox = document.getElementById("searchAll"); |
|
142 |
searchString.value=""; |
|
143 |
checkBox.checked = true; |
|
144 |
if (checkSearch(searchForm)) { |
|
145 |
searchForm.submit(); |
|
146 |
} |
|
147 |
|
|
148 |
} |
|
149 |
|
|
116 | 150 |
function searchAll(){ |
117 | 151 |
var checkBox = document.getElementById("searchCheckBox"); |
118 | 152 |
if (checkBox.checked == true) { |
Also available in: Unified diff
add support for FGDC doctype display