Project

General

Profile

1
<?php
2

    
3
defined('_JEXEC') or die('Access denied');
4

    
5
jimport('joomla.environment.uri');
6
jimport('joomla.methods');
7

    
8
$document = JFactory :: getDocument();
9
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/tabcontent.css'));
10
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/tabcontent.js'));
11
?>
12
<div class="searchBox">
13

    
14
			<form method="post" action="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchdatasets&Itemid=' . $this -> itemId )); ?>">
15
                                <input type="hidden" name="Itemid" value="<?php echo($this -> itemId); ?>" />
16
				<input type="hidden" name="noscroll" value="true" />
17
				<div class="flowWrapper">
18
					<?php if (($this -> keywords != NULL) && ($this -> fields != NULL) && ($this -> constraints != NULL)) {
19
						for ($i = 0; ($i < count($this -> keywords)) && ($i < count($this -> fields)) && ($i < count($this -> constraints)); $i++) { ?>
20
							<div class="srchNavTextAdvancedFilter">
21
								<input type="text" name="keyword[]" class=" uk-form-small  uk-width-4-10"  placeholder="<?php echo(JText :: _('SEARCH_KEYWORDS')); ?>" value="<?php echo($this -> keywords[$i]); ?>"/>                                                                
22
                                                                <!--<input type="submit" value="<?php echo(JText :: _('SEARCH')); ?>" class="uk-button uk-button-small" />-->
23
								<select name="field[]" class="fieldSelector styleSelect  uk-width-2-10">
24
									<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: ALL); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchDatasets :: ALL) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('ALL_FIELDS')); ?></option>
25
									<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: TITLE); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchDatasets :: TITLE) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('TITLE')); ?></option>
26
									<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: AUTHOR); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchDatasets :: AUTHOR) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('AUTHOR')); ?></option>
27
									<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: PUBLISHER); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchDatasets :: PUBLISHER) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('PUBLISHER')); ?></option>
28
									<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: SUBJECT); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchDatasets :: SUBJECT) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('SUBJECT')); ?></option>
29
								</select>
30
								<select name="constraint[]" class="wordTypeSelector styleSelect  uk-width-2-10">
31
									<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: ALL); ?>"<?php echo(($this -> constraints[$i] == OpenAireViewAdvancedSearchDatasets :: ALL) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('ALL_WORDS')); ?></option>
32
									<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: ANY); ?>"<?php echo(($this -> constraints[$i] == OpenAireViewAdvancedSearchDatasets :: ANY) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('ANY_WORDS')); ?></option>
33
								</select>
34
                                 <span class=" addNewFilter uk-icon-button uk-icon-button-success-hover uk-icon-plus" style=""></span>
35
								<span class="removeNewFilter uk-icon-button uk-icon-button-danger-hover uk-icon-remove" style="<?php echo(($i===0&&(1 < count($this -> keywords)) || (1 < count($this -> fields)) || (1 < count($this -> constraints)))?'':'display: none;'); ?>"></span>                                                        		
36
							</div>
37
						<?php }
38
					} else { ?>			
39
						<div class="srchNavTextAdvancedFilter">
40
							<input type="text" class="uk-form-small  uk-width-4-10" name="keyword[]"  placeholder="<?php echo(JText :: _('SEARCH_KEYWORDS')); ?>" />
41
                                                        <!--<input type="submit" value="<?php echo(JText :: _('SEARCH')); ?>" class="uk-button uk-button-small" />-->
42
							<select name="field[]" class="fieldSelector styleSelect  uk-width-2-10">
43
								<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: ALL); ?>"><?php echo(JText :: _('ALL_FIELDS')); ?></option>
44
								<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: TITLE); ?>"><?php echo(JText :: _('TITLE')); ?></option>
45
								<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: AUTHOR); ?>"><?php echo(JText :: _('AUTHOR')); ?></option>
46
								<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: PUBLISHER); ?>"><?php echo(JText :: _('PUBLISHER')); ?></option>
47
								<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: SUBJECT); ?>"><?php echo(JText :: _('SUBJECT')); ?></option>
48
							</select>
49
							<select name="constraint[]" class="wordTypeSelector styleSelect  uk-width-2-10">
50
								<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: ALL); ?>"><?php echo(JText :: _('ALL_WORDS')); ?></option>
51
								<option value="<?php echo(OpenAireViewAdvancedSearchDatasets :: ANY); ?>"><?php echo(JText :: _('ANY_WORDS')); ?></option>
52
							</select>
53
                            <span class=" addNewFilter uk-icon-button uk-icon-button-success-hover uk-icon-plus" style="" ></span>
54
                            <span class="removeNewFilter uk-icon-button uk-icon-button-danger-hover uk-icon-remove" style="display:none;" ></span>
55
                                       
56
                                                    
57
						</div>
58
					<?php } ?>			
59
				<input type="submit" value="<?php echo(JText :: _('SEARCH')); ?>" class="advancedSearchButton uk-button uk-button-small" />
60
                                    <div class="advancedPageResults">
61
						<?php echo(JText :: _('RESULTS_PER_PAGE_')); ?>
62
						<select name="size" class="resultsSelections">
63
							<?php for ($size = OpenAireViewAdvancedSearchDatasets :: MIN_SIZE; $size <= OpenAireViewAdvancedSearchDatasets :: MAX_SIZE; $size += OpenAireViewAdvancedSearchDatasets :: SIZE_STEP) { ?>
64
								<option value="<?php echo($size); ?>"<?php echo(($size == $this -> size) ? ' selected="selected"' : ''); ?>><?php echo($size); ?></option>
65
							<?php } ?>
66
						</select>
67
					</div>
68
				</div>
69

    
70
				<?php if ($this -> statistics == NULL) { ?>
71
					<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_STATISTICS')); ?></div>
72
				<?php } else { ?>
73
					<div class="compileAdvancedSearchFilters">
74
						<div class="resultDisplayElement">
75
							<div class="header">
76
								<h3>
77
									<span class="limitLabel"><?php echo(JText :: _('LIMITS')); ?></span>
78
									<span id="noLimits" class="limitNoValue"><?php echo(JText :: _('___NONE')); ?></span>
79
								</h3>
80
								<input type="hidden" id="from" value="<?php echo(JText :: _('FROM')); ?>" />
81
								<input type="hidden" id="to" value="<?php echo(JText :: _('TO')); ?>" />
82
								<a id="clearAll" class="editClear"><?php echo(JText :: _('_CLEAR_ALL_')); ?></a>
83
							</div>
84
							<div id="advanceSearchFilters" class="filters">
85
								<p id="typeLimits" style="float: none; display:none;">
86
									<?php echo(JText :: _('DOCUMENT_TYPES_')); ?>
87
									<span></span>
88
								</p>
89
								<p id="languageLimits" style="float: none; display:none;">
90
									<?php echo(JText :: _('DOCUMENT_LANGUAGES_')); ?>
91
									<span></span>
92
								</p>
93
								<p id="funderLimits" style="float: none; display:none;">
94
									<?php echo(JText :: _('FUNDERS_')); ?>
95
									<span></span>
96
								</p>
97
								<p id="fundingStreamLimits" style="float: none; display:none;">
98
									<?php echo(JText :: _('FUNDING_STREAMS_')); ?>
99
									<span></span>
100
								</p>
101
								<p id="scientificAreaLimits" style="float: none; display:none;">
102
									<?php echo(JText :: _('SCIENTIFIC_AREAS_')); ?>
103
									<span></span>
104
								</p>
105
                                                                <p id="fundingStreamLevel2Limits" style="float: none; display:none;">
106
									<?php echo(JText :: _('FUNDING_STREAM_LEVEL_2_')); ?>
107
									<span></span>
108
								</p>
109
								<p id="dateLimits" style="float: none; display:none;">
110
									<?php echo(JText :: _('PUBLICATION_DATE_')); ?>
111
									<span></span>
112
								</p>
113
								<p id="accessModeLimits" style="float: none; display:none;">
114
									<?php echo(JText :: _('ACCESS_MODES_')); ?>
115
									<span></span>
116
								</p>
117
								<p id="datasourceLimits" style="float: none; display:none;">
118
									<?php echo(JText :: _('DATASOURCES_')); ?>
119
									<span></span>
120
								</p>
121
							</div>
122
						</div>
123
						<?php if (($this -> result != NULL) && ($this -> result -> datasets != NULL)) { ?>
124
							<div class="addmore">
125
								<a><?php echo(JText :: _('VIEW_ADD_FILTERS')); ?><span class=" showfilters  uk-icon-plus" style=""></span> <span class=" hidefilters  uk-icon-minus" style=""></span></a>
126
							</div>
127
                                            
128
						<?php } ?>
129
						<div class="leftAdvanced">
130
							<div id="type" class="filterItem">
131
								<?php if ($this -> statistics['type'] -> data == NULL) { ?>
132
									<div class="box-info"><?php echo($this -> statistics['type'] -> error); ?></div>
133
								<?php } else { ?>
134
									<a class="editRef">
135
										<h2><?php echo($this -> statistics['type'] -> title); ?></h2>
136
										<div class="editClearOptions">
137
											<?php echo(JText :: _('EDIT')); ?>
138
										</div>
139
									</a>
140
									<div class="hiddenAdvancedSearch flowWrapper">
141
										<?php foreach ($this -> types as $type) { ?>
142
											<input type="hidden" name="type[]" value="<?php echo($type); ?>" />
143
										<?php } ?>
144
										<div class="updateFilters">
145
											<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
146
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
147
										</div>
148
										<div class="filterLimits">
149
											<input class=" uk-form-small  uk-width-9-10" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
150
										</div>
151
										<div class="valueSelector">
152
											<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a>&nbsp;|&nbsp;<a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
153
										</div>
154
										<div class="filterListingBlock">
155
											<?php foreach ($this -> statistics['type'] -> data as $row) { ?>
156
												<div class="filterRow">
157
													<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> types, TRUE) ? ' checked="checked"' : ''); ?> />
158
													<label><?php echo($row -> name); ?></label>
159
												</div>
160
											<?php } ?>
161
										</div>
162
									</div>
163
								<?php } ?>
164
							</div>
165
							<div id="language" class="filterItem">
166
								<?php if ($this -> statistics['language'] -> data == NULL) { ?>
167
									<div class="box-info"><?php echo($this -> statistics['language'] -> error); ?></div>
168
								<?php } else { ?>
169
									<a class="editRef">
170
										<h2><?php echo($this -> statistics['language'] -> title); ?></h2>
171
										<div class="editClearOptions">
172
											<?php echo(JText :: _('EDIT')); ?>
173
										</div>
174
									</a>
175
									<div class="hiddenAdvancedSearch flowWrapper">
176
										<?php foreach ($this -> languages as $language) { ?>
177
											<input type="hidden" name="language[]" value="<?php echo($language); ?>" />
178
										<?php } ?>
179
										<div class="updateFilters">
180
											<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
181
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
182
										</div>
183
										<div class="filterLimits">
184
											<input class=" uk-form-small  uk-width-9-10" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
185
										</div>
186
										<div class="valueSelector">
187
											<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a>&nbsp;|&nbsp;<a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
188
										</div>
189
										<div class="filterListingBlock">
190
											<?php foreach ($this -> statistics['language'] -> data as $row) { ?>
191
												<div class="filterRow">
192
													<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> languages, TRUE) ? ' checked="checked"' : ''); ?> />
193
													<label><?php echo($row -> name); ?></label>
194
												</div>
195
											<?php } ?>
196
										</div>
197
									</div>
198
								<?php } ?>
199
							</div>
200
							<div id="funder" class="filterItem">
201
								<?php if ($this -> statistics['funder'] -> data  == NULL) { ?>
202
									<div class="box-info"><?php echo($this -> statistics['funder'] -> error); ?></div>
203
								<?php } else { ?>
204
									<a class="editRef">
205
										<h2><?php echo($this -> statistics['funder'] -> title); ?></h2>
206
										<div class="editClearOptions">
207
											<?php echo(JText :: _('EDIT')); ?>
208
										</div>
209
									</a>
210
									<div class="hiddenAdvancedSearch flowWrapper">
211
										<?php foreach ($this -> funders as $funder) { ?>
212
											<input type="hidden" name="funder[]" value="<?php echo($funder); ?>" />
213
										<?php } ?>
214
										<div class="updateFilters">
215
											<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
216
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
217
										</div>
218
										<div class="filterLimits">
219
											<input class="uk-form-small  uk-width-9-10" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
220
										</div>
221
										<div class="valueSelector">
222
											<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a>&nbsp;|&nbsp;<a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
223
										</div>
224
										<div class="filterListingBlock">
225
											<?php foreach ($this -> statistics['funder'] -> data as $row) { ?>
226
												<div class="filterRow">
227
													<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> funders, TRUE) ? ' checked="checked"' : ''); ?> />
228
													<label><?php echo($row -> name); ?></label>
229
												</div>
230
											<?php } ?>
231
										</div>
232
									</div>
233
								<?php } ?>
234
							</div>
235
							<div id="fundingStream" class="filterItem">
236
								<?php if ($this -> statistics['fundingStream'] -> data == NULL) { ?>
237
									<div class="box-info"><?php echo($this -> statistics['fundingStream'] -> error); ?></div>
238
								<?php } else { ?>
239
									<a class="editRef">
240
										<h2><?php echo($this -> statistics['fundingStream'] -> title); ?></h2>
241
										<div class="editClearOptions">
242
											<?php echo(JText :: _('EDIT')); ?>
243
										</div>
244
									</a>
245
									<div class="hiddenAdvancedSearch flowWrapper">
246
										<?php foreach ($this -> fundingStreams as $fundingStream) { ?>
247
											<input type="hidden" name="fundingStream[]" value="<?php echo($fundingStream); ?>" />
248
										<?php } ?>
249
										<div class="updateFilters">
250
												<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
251
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
252
										</div>
253
										<div class="filterLimits">
254
											<input class="uk-form-small  uk-width-9-10" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
255
										</div>
256
										<div class="valueSelector">
257
											<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a>&nbsp;|&nbsp;<a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
258
										</div>
259
										<div class="filterListingBlock">
260
											<?php foreach ($this -> statistics['fundingStream'] -> data as $row) { ?>
261
												<div class="filterRow">
262
													<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> fundingStreams, TRUE) ? ' checked="checked"' : ''); ?> />
263
													<label><?php echo($row -> name); ?></label>
264
												</div>
265
											<?php } ?>
266
										</div>
267
									</div>
268
								<?php } ?>
269
							</div>
270
                                                        <div id="scientificArea" class="filterItem">
271
								<?php if ($this -> statistics['scientificArea'] -> data == NULL) { ?>
272
									<div class="box-info"><?php echo($this -> statistics['scientificArea'] -> error); ?></div>
273
								<?php } else { ?>
274
									<a class="editRef">
275
										<h2><?php echo($this -> statistics['scientificArea'] -> title); ?></h2>
276
										<div class="editClearOptions">
277
											<?php echo(JText :: _('EDIT')); ?>
278
										</div>
279
									</a>
280
									<div class="hiddenAdvancedSearch flowWrapper">
281
										<?php foreach ($this -> scientificAreas as $scientificArea) { ?>
282
											<input type="hidden" name="scientificArea[]" value="<?php echo($scientificArea); ?>" />
283
										<?php } ?>
284
										<div class="updateFilters">
285
											<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
286
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
287
										</div>
288
										<div class="filterLimits">
289
											<input class=" uk-form-small  uk-width-9-10" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
290
										</div>
291
										<div class="valueSelector">
292
											<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a>&nbsp;|&nbsp;<a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
293
										</div>
294
										<div class="filterListingBlock">
295
											<?php foreach ($this -> statistics['scientificArea'] -> data as $row) { ?>
296
												<div class="filterRow">
297
													<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> scientificAreas, TRUE) ? ' checked="checked"' : ''); ?> />
298
													<label><?php echo($row -> name); ?></label>
299
												</div>
300
											<?php } ?>
301
										</div>
302
									</div>
303
								<?php } ?>
304
							</div>	
305
						</div>
306
						<div class="rightAdvanced">
307
							<div id="fundingStreamLevel2" class="filterItem">
308
								<?php if ($this -> statistics['fundingStreamLevel2'] -> data == NULL) { ?>
309
									<div class="box-info"><?php echo($this -> statistics['fundingStreamLevel2'] -> error); ?></div>
310
								<?php } else { ?>
311
									<a class="editRef">
312
										<h2><?php echo($this -> statistics['fundingStreamLevel2'] -> title); ?></h2>
313
										<div class="editClearOptions">
314
											<?php echo(JText :: _('EDIT')); ?>
315
										</div>
316
									</a>
317
									<div class="hiddenAdvancedSearch flowWrapper">
318
										<?php foreach ($this -> fundingStreamsLevel2 as $fundingStreamLevel2) { ?>
319
											<input type="hidden" name="fundingStreamLevel2[]" value="<?php echo($fundingStreamLevel2); ?>" />
320
										<?php } ?>
321
										<div class="updateFilters">
322
											<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
323
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
324
										</div>
325
										<div class="filterLimits">
326
											<input class=" uk-form-small  uk-width-9-10" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
327
										</div>
328
										<div class="valueSelector">
329
											<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a>&nbsp;|&nbsp;<a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
330
										</div>
331
										<div class="filterListingBlock">
332
											<?php foreach ($this -> statistics['fundingStreamLevel2'] -> data as $row) { ?>
333
												<div class="filterRow">
334
													<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> fundingStreamsLevel2, TRUE) ? ' checked="checked"' : ''); ?> />
335
													<label><?php echo($row -> name); ?></label>
336
												</div>
337
											<?php } ?>
338
										</div>
339
									</div>
340
								<?php } ?>
341
							</div>				
342
							<div id="date" class="filterItem">
343
								<?php if ($this -> statistics['year'] -> data == NULL) { ?>
344
									<div class="box-info"><?php echo($this -> statistics['year'] -> error); ?></div>
345
								<?php } else { ?>
346
									<a class="editRef">
347
										<h2><?php echo(JText :: _('PUBLICATION_DATE')); ?></h2>
348
										<div class="editClearOptions">
349
											<?php echo(JText :: _('EDIT')); ?>
350
										</div>
351
									</a>
352
									<div class="hiddenAdvancedSearch flowWrapper">
353
										<input type="hidden" name="date" value="<?php echo($this -> date); ?>" />
354
										<input type="hidden" name="fromMonth" value="<?php echo($this -> fromMonth); ?>" />
355
										<input type="hidden" name="fromYear" value="<?php echo($this -> fromYear); ?>" />
356
										<input type="hidden" name="toMonth" value="<?php echo($this -> toMonth); ?>" />
357
										<input type="hidden" name="toYear" value="<?php echo($this -> toYear); ?>" />
358
										<div class="updateFilters">
359
                                                                                    <input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
360
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
361
										</div>
362
										<div class="selector">
363
											<select class="dateType styleSelect uk-width-9-10 ">
364
												<option value="-1"<?php echo(($this -> date == -1) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('ANY')); ?></option>
365
												<option value="0"<?php echo(($this -> date == 0) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_SPECIFIED_DATE_RANGE')); ?></option>							
366
												<option value="1"<?php echo(($this -> date == 1) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_ONE_MONTH')); ?></option>
367
												<option value="2"<?php echo(($this -> date == 2) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_2_MONTHS')); ?></option>
368
												<option value="3"<?php echo(($this -> date == 3) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_3_MONTHS')); ?></option>
369
												<option value="6"<?php echo(($this -> date == 6) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_6_MONTHS')); ?></option>
370
												<option value="12"<?php echo(($this -> date == 12) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_12_MONTHS')); ?></option>
371
												<option value="24"<?php echo(($this -> date == 24) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_2_YEARS')); ?></option>
372
												<option value="36"<?php echo(($this -> date == 36) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_3_YEARS')); ?></option>
373
												<option value="60"<?php echo(($this -> date == 60) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_5_YEARS')); ?></option>
374
												<option value="120"<?php echo(($this -> date == 120) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_10_YEARS')); ?></option>
375
											</select>
376
										</div>
377
										<div class="fromDate" style="display: <?php echo(($this -> date == 0) ? 'block' : 'none'); ?>;">
378
											<p class="fromTo"><?php echo(ucfirst(JText :: _('FROM'))); ?></p>
379
											<select class="monthFrom styleSelect uk-width-4-10">
380
												<option value="1"<?php echo(($this -> fromMonth == 1) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JANUARY__')); ?></option>
381
												<option value="2"<?php echo(($this -> fromMonth == 2) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('FEBRUARY__')); ?></option>
382
												<option value="3"<?php echo(($this -> fromMonth == 3) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('MARCH__')); ?></option>
383
												<option value="4"<?php echo(($this -> fromMonth == 4) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('APRIL__')); ?></option>
384
												<option value="5"<?php echo(($this -> fromMonth == 5) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('MAY__')); ?></option>
385
												<option value="6"<?php echo(($this -> fromMonth == 6) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JUNE__')); ?></option>
386
												<option value="7"<?php echo(($this -> fromMonth == 7) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JULY__')); ?></option>
387
												<option value="8"<?php echo(($this -> fromMonth == 8) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('AUGUST__')); ?></option>
388
												<option value="9"<?php echo(($this -> fromMonth == 9) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('SEPTEMBER__')); ?></option>
389
												<option value="10"<?php echo(($this -> fromMonth == 10) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('OCTOBER__')); ?></option>
390
												<option value="11"<?php echo(($this -> fromMonth == 11) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('NOVEMBER__')); ?></option>
391
												<option value="12"<?php echo(($this -> fromMonth == 12) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('DECEMBER__')); ?></option>
392
											</select>
393
											<select class="yearFrom styleSelect uk-width-3-10">
394
												<?php for ($year = $this -> minYear; $year <= $this -> maxYear; $year++) { ?>
395
													<option value="<?php echo($year); ?>"<?php echo(($year == $this -> fromYear) ? ' selected="selected"' : ''); ?>><?php echo($year); ?></option>
396
												<?php } ?>
397
											</select>
398
										</div>
399
										<div class="toDate" style="display: <?php echo(($this -> date == 0) ? 'block' : 'none'); ?>;">
400
											<p class="fromTo"><?php echo(ucfirst(JText :: _('TO'))); ?></p>
401
											<select class="monthTo styleSelect uk-width-4-10">
402
												<option value="1"<?php echo(($this -> toMonth == 1) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JANUARY__')); ?></option>
403
												<option value="2"<?php echo(($this -> toMonth == 2) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('FEBRUARY__')); ?></option>
404
												<option value="3"<?php echo(($this -> toMonth == 3) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('MARCH__')); ?></option>
405
												<option value="4"<?php echo(($this -> toMonth == 4) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('APRIL__')); ?></option>
406
												<option value="5"<?php echo(($this -> toMonth == 5) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('MAY__')); ?></option>
407
												<option value="6"<?php echo(($this -> toMonth == 6) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JUNE__')); ?></option>
408
												<option value="7"<?php echo(($this -> toMonth == 7) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JULY__')); ?></option>
409
												<option value="8"<?php echo(($this -> toMonth == 8) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('AUGUST__')); ?></option>
410
												<option value="9"<?php echo(($this -> toMonth == 9) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('SEPTEMBER__')); ?></option>
411
												<option value="10"<?php echo(($this -> toMonth == 10) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('OCTOBER__')); ?></option>
412
												<option value="11"<?php echo(($this -> toMonth == 11) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('NOVEMBER__')); ?></option>
413
												<option value="12"<?php echo(($this -> toMonth == 12) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('DECEMBER__')); ?></option>
414
											</select>
415
											<select class="yearTo styleSelect uk-width-3-10">
416
												<?php for ($year = $this -> minYear; $year <= $this -> maxYear; $year++) { ?>
417
													<option value="<?php echo($year); ?>"<?php echo(($year == $this -> toYear) ? ' selected="selected"' : ''); ?>><?php echo($year); ?></option>
418
												<?php } ?>
419
											</select>
420
										</div>
421
									</div>
422
								<?php } ?>
423
							</div>
424
							<div id="accessMode" class="filterItem">
425
								<?php if ($this -> statistics['accessMode'] -> data == NULL) { ?>
426
									<div class="box-info"><?php echo($this -> statistics['accessMode'] -> error); ?></div>
427
								<?php } else { ?>
428
									<a class="editRef">
429
										<h2><?php echo($this -> statistics['accessMode'] -> title); ?></h2>
430
										<div class="editClearOptions">
431
											<?php echo(JText :: _('EDIT')); ?>
432
										</div>
433
									</a>
434
									<div class="hiddenAdvancedSearch flowWrapper">
435
										<?php foreach ($this -> accessModes as $accessMode) { ?>
436
											<input type="hidden" name="accessMode[]" value="<?php echo($accessMode); ?>" />
437
										<?php } ?>
438
										<div class="updateFilters">
439
											<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
440
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
441
										</div>
442
										<div class="filterLimits">
443
											<input class=" uk-form-small  uk-width-9-10" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
444
										</div>
445
										<div class="valueSelector">
446
											<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a>&nbsp;|&nbsp;<a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
447
										</div>
448
										<div class="filterListingBlock">
449
											<?php foreach ($this -> statistics['accessMode'] -> data as $row) { ?>
450
												<div class="filterRow">
451
													<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> accessModes, TRUE) ? ' checked="checked"' : ''); ?> />
452
													<label><?php echo($row -> name); ?></label>
453
												</div>
454
											<?php } ?>
455
										</div>
456
									</div>
457
								<?php } ?>
458
							</div>
459
							<div id="datasource" class="filterItem">
460
								<?php if ($this -> statistics['datasource'] -> data == NULL) { ?>
461
									<div class="box-info"><?php echo($this -> statistics['datasource'] -> error); ?></div>
462
								<?php } else { ?>
463
									<a class="editRef">
464
										<h2><?php echo($this -> statistics['datasource'] -> title); ?></h2>
465
										<div class="editClearOptions">
466
											<?php echo(JText :: _('EDIT')); ?>
467
										</div>
468
									</a>
469
									<div class="hiddenAdvancedSearch flowWrapper">
470
										<?php foreach ($this -> datasources as $datasource) { ?>
471
											<input type="hidden" name="datasource[]" value="<?php echo($datasource); ?>" />
472
										<?php } ?>
473
										<div class="updateFilters">
474
											<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="uk-button uk-button-mini okElement" />
475
											<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="uk-button uk-button-mini cancelElement" />
476
										</div>
477
										<div class="filterLimits">
478
											<input class=" uk-form-small  uk-width-9-10" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
479
										</div>
480
										<div class="valueSelector">
481
											<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a>&nbsp;|&nbsp;<a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
482
										</div>
483
										<div class="filterListingBlock">
484
											<?php foreach ($this -> statistics['datasource'] -> data as $row) { ?>
485
												<div class="filterRow">
486
													<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> datasources, TRUE) ? ' checked="checked"' : ''); ?> />
487
													<label><?php echo($row -> name); ?></label>
488
												</div>
489
											<?php } ?>
490
										</div>
491
									</div>
492
								<?php } ?>
493
							</div>				
494
						</div>
495
					</div>
496
				<?php } ?>                            
497
                            <div class="flowWrapper">
498
					<div class="advancedSearchOpt">
499
						<a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=searchdatasets&Itemid=' . $this -> itemId . '&noscroll=true#publtab')); ?>"><?php echo(JText :: _('SIMPLE_SEARCH_')); ?></a>
500
					</div>
501
				</div>
502
			</form>
503
		<!--</div>
504
	</div>-->
505
</div>
(3-3/4)