Project

General

Profile

1
<?php
2

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

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

    
8
JHtml :: _('behavior.framework',true);
9
$document = JFactory :: getDocument();
10
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/tooltip.js'));
11
$document -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/advancedsearchdatasources.js'));
12
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/tooltip/tooltip1.css'));
13
$document -> addStyleSheet(JUri :: base() . 'templates/' . JFactory :: getApplication() -> getTemplate() . '/styles/openaire/css/tooltip.css');
14
JViewLegacy :: loadHelper('FilterHelper');
15
JViewLegacy :: loadHelper('StatisticHelper');
16
?>
17

    
18
<div id="main-column">
19
	<?php if (((($this -> keywords != NULL) && ($this -> fields != NULL) && ($this -> constraints != NULL)) || ($this -> types != NULL) || ($this -> languages != NULL) || ($this -> contents != NULL) || ($this -> compatibilities != NULL)) && ($this -> result != NULL) && ($this -> result -> totalDatasources > 0)) { ?>
20
		<div id="left-column">
21
			<div class="refineBox">
22
				<?php $baseUrl = 'index.php?option=com_openaire&view=advancedsearchdatasources&Itemid=' . $this -> itemId;
23
				for ($i = 0; ($i < count($this -> keywords)) && ($i < count($this -> fields)) && ($i < count($this -> constraints)); $i++)
24
					$baseUrl .= '&keyword%5B%5D=' . $this -> keywords[$i] . '&field%5B%5D=' . $this -> fields[$i] . '&constraint%5B%5D=' . $this -> constraints[$i];
25
				foreach ($this -> types as $type) 
26
					$baseUrl .= '&type%5B%5D=' . $type;
27
				foreach ($this -> languages as $language)
28
					$baseUrl .= '&language%5B%5D=' . $language;
29
				foreach ($this -> contents as $content)
30
					$baseUrl .= '&content%5B%5D=' . $content;
31
				foreach ($this -> compatibilities as $compatibility)
32
					$baseUrl .= '&compatibility%5B%5D=' . $compatibility;
33
				$baseUrl .= '&page=1&size=' . $this -> size . '&noscroll=true';
34
				echo(FilterHelper :: formatFilters($this -> filters, $this -> result -> statistics, $baseUrl, '#dtsrctab'));
35
				echo(StatisticHelper :: formatStatistics($this -> result -> statistics, $this -> filters, $baseUrl, '#dtsrctab')); ?>
36
			</div>
37
		</div>
38
	<?php } ?>
39
	<div id="right-column">
40
		<?php echo($this -> loadTemplate('form'));
41
		if ((($this -> keywords != NULL) && ($this -> fields != NULL) && ($this -> constraints != NULL)) || ($this -> types != NULL) || ($this -> languages != NULL) || ($this -> contents != NULL) || ($this -> compatibilities != NULL)) {
42
			echo($this -> loadTemplate('datasources'));
43
		} ?>
44
	</div>
45
</div>
46

    
(1-1/4)