-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
263 lines (230 loc) · 13.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>Collecting Missions</title>
<meta name="description" content="This is a site that shows Bioversity International's collecting missions">
<meta name="author" content="Bioversity International">
<meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1,user-scalable=no">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAgymWVxqul11-hNQpNvgjL1ZzQsq-d8WI&sensor=false"></script>
<script type="text/javascript" src="js/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="js/bootstrap-typeahead.js"></script>
<script type="text/javascript" src="js/jquery.nouislider.min.js"></script>
<script type="text/javascript" src="js/jquery.placeholder.min.js"></script>
<script type="text/javascript" src="js/cache.js?v1.0"></script>
<script type="text/javascript" src="js/routes.js?v1.0"></script>
<script type="text/javascript" src="js/slide.js?v1.0"></script>
<script type="text/javascript" src="js/dropdown.js?v1.0"></script>
<script type="text/javascript" src="js/query.js?v1.0"></script>
<script type="text/javascript" src="js/map.js?v1.0"></script>
<script type="text/javascript" src="js/missions.js?v1.0"></script>
<script type="text/javascript" src="js/samples.js?v1.0"></script>
<script type="text/javascript" src="js/accessions.js?v1.0"></script>
<script type="text/javascript" src="js/traits.js?v1.0"></script>
<script type="text/javascript" src="js/infowindow.js?v1.0.3"></script>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link href="css/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/nouislider.css" rel="stylesheet">
<script>
if (!Function.prototype.bind) {
Function.prototype.bind = function (oThis) {
if (typeof this !== "function") {
// closest thing possible to the ECMAScript 5 internal IsCallable function
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
}
var aArgs = Array.prototype.slice.call(arguments, 1),
fToBind = this,
fNOP = function () {},
fBound = function () {
return fToBind.apply(this instanceof fNOP && oThis
? this
: oThis,
aArgs.concat(Array.prototype.slice.call(arguments)));
};
fNOP.prototype = this.prototype;
fBound.prototype = new fNOP();
return fBound;
};
}
$(function() {
map.init()
slide.init()
query.init()
dropdown.init()
traits.init()
$('.dropdown-toggle').dropdown()
$('input, textarea').placeholder();
// just adding a comment lol
query.checkParameter();
})
</script>
</head>
<body>
<button class="btn slide"><i class="icon-chevron-left"></i></button>
<div class="table-cell sidebar">
<div id="logos">
<p>
<a target="_blank" href="https://alliancebioversityciat.org/"><img src="img/Alliance Logo Refresh-EN color.jpg" style="height: 100px;"></a>
</p>
</div>
<h1>
<a href="index.html" target="_blank">Collecting Missions</a>
</h1>
<p id="tagline">
Access to original passport data of more than 220,000 samples collected around the world during Bioversity International* supported missions. About 150,000 samples are currently geo-referenced and can be displayed on the map to the right.
</p>
<div id="content">
<div class="control-group">
<!-- <label>Enable heatmap <input type="checkbox" id="heatmap"/></label> -->
</div>
<hr />
<div class="control-group">
<label>
Collection date range <span id='sliderbar-value'></span>
<!-- for now this dont work
<br />
<br />
<div class="sliderbar"></div>
-->
</label>
</div>
<hr />
<div class="control-group">
Choose a query by clicking here:
<br>
<div class="btn-group">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span>Queries</span></button>
<ul class="dropdown-menu">
<li><a href="#search" group="samples">Collected Samples</a></li>
<li><a href="#search" group="missions">Collecting Missions</a></li>
<li><a href="#search" group="accessions">Linked Accessions</a></li>
<li><a href="#search" group="traits">Traits</a></li>
</ul>
</div>
<br>
<br>
When the search mask appears, fill in your search criteria and then click on the <b>Submit Query</b> button at the bottom of this page.
<br><br>
After you've submitted the query, a <b>Download CSV</b> button will appear at the bottom, enabling you to download all the samples resulting from your query, including those which are not geo-referenced and are not visible on the map.
</div>
<hr />
<div class="control-group query-group traits" style="display: none">
<div groupName="traits">
Select crop:
<select style="width: 150px">
</select>
<div class="traitFilter">
</div>
</div>
</div> <!-- /traits -->
<a name="search"></a>
<div class="control-group query-group missions" style="display: none">
<div groupName="missions">
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="ID_MISSION" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="ID_SUB_MISSION" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Title" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Country_Name" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Region_Name" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Start_Date" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="End_Date" class="typeahead" />
</div>
<label>Institutes</label>
<div groupName="institutes">
<input type="text" fusionTableId="1g5rq1sLqXArypFIudfAXN1p5P0dMGfNmW7AwWD0" placeholder="ACRONYM" class="typeahead" />
<input type="text" fusionTableId="1g5rq1sLqXArypFIudfAXN1p5P0dMGfNmW7AwWD0" placeholder="NAME_NAT" class="typeahead" />
</div>
<label>Cooperators</label>
<div groupName="cooperators">
<input type="text" fusionTableId="1o-UvQHmOzovOgsYMlYpDD3kj0YDd8BBePhwcANE" placeholder="Firstname" class="typeahead" />
<input type="text" fusionTableId="1o-UvQHmOzovOgsYMlYpDD3kj0YDd8BBePhwcANE" placeholder="Surname" class="typeahead" />
</div>
</div> <!-- /missions -->
<div class="control-group query-group samples" style="display: none">
<div groupName="samples">
<input type="text" placeholder="Collecting_Number" class="typeahead" />
<input type="text" placeholder="COLLDATE" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Country_Name" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="ScientificName" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Genus" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Species/Group" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Speciestype" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Samplestatus_text" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Collectingsource_text" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Admin1" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Admin2" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="Admin3" class="typeahead" />
<input type="text" fusionTableId="1sfPdnErQ8ZubgZaHEa7FrYmsp63VELha6JERUj8" placeholder="COLLSITE" class="typeahead" />
</div>
</div> <!-- /samples -->
<div class="control-group query-group accessions" style="display: none">
<!-- <div groupName="accessions">
<input type="text" placeholder="AccessionNumber" />
</div> -->
<label>Holding institute</label>
<div groupName="institutes">
<input type="text" fusionTableId="1g5rq1sLqXArypFIudfAXN1p5P0dMGfNmW7AwWD0" placeholder="ACRONYM" class="typeahead" />
<input type="text" fusionTableId="1g5rq1sLqXArypFIudfAXN1p5P0dMGfNmW7AwWD0" placeholder="NAME_NAT" class="typeahead" />
</div>
</div> <!-- /accessions -->
<!--
<div class="control-group">
<label>Linked Accessions:</label>
</div>
<div class="control-group query-group">
<input type="text" placeholder="AccessionNumber" class="typeahead" />
</div>
-->
<div class="form-actions">
<input class="btn btn-primary submit-query" name="commit" type="submit" id="submit" value="Submit Query">
</div>
<div class="control-group downlaod-csv">
</div>
<hr />
<div class="control-group">
<!-- <label>Don't forget to add your Google Fusion <span class="label label-important">API key</span>. More info on <a target="_blank" href="https://developers.google.com/fusiontables/docs/v1/using#APIKey">this page</a>.</label> -->
<div class="alert api-calls">
No query performed yet
</div>
</div>
</div>
<div id="feedback">
<p style="font-size: 10px; line-height:1.3;width:80%; margin:auto;margin-bottom: 20px;">
<em>*At the time Bioversity International was called the International Board for Plant Genetic Resources. Read more about the <a href="https://www.bioversityinternational.org/about_us/history_of_bioversity.html" title="Opens internal link in current window" target="_blank" class="internal-link">history of Bioversity International</a></em>
</p>
<p style="width:80%; margin:auto;margin-bottom: 20px;">
Read more about the <a target="_blank" href="https://www.bioversityinternational.org/collecting_missions/introduction.html">Collecting Missions</a> and their <a target="_blank" href="https://www.bioversityinternational.org/collecting_missions/history.html">history</a>
</p>
<p>
<a href="mailto:[email protected]?subject=Collecting%20Missions%20Send%20Feedback">Send feedback</a>
<!--<a href="https://github.com/bioversity/geosite">GitHub</a>-->
</p>
</div>
</div> <!-- /sidebar -->
<div class="map-container">
<div id="map_canvas" style="width: 100%; height: 100%;"></div>
</div> <!-- /map-container -->
<!-- modal -->
<div class="modal hide">
<div class="modal-body">
<p class="content">One fine body…</p>
</div>
<div class="modal-footer">
<a href="#" class="close-modal btn">Close</a>
<a href="#" target="_blank" class="download-modal btn btn-primary">Download</a>
</div>
</div>
<!-- /modal -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38778131-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>