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/advancedsearchpublications.js'));
|
12
|
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/tooltip/tooltip1.css'));
|
13
|
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'templates/' . JFactory :: getApplication() -> getTemplate() . '/styles/openaire/css/tooltip.css'));
|
14
|
JViewLegacy :: loadHelper('FilterHelper');
|
15
|
JViewLegacy :: loadHelper('StatisticHelper');
|
16
|
JViewLegacy:: loadHelper('OpenaireHelper');
|
17
|
OpenaireHelper::initSearchAjaxUrls($document, $this -> itemId);
|
18
|
$document->setTitle("OpenAIRE - Search Publications");
|
19
|
?>
|
20
|
|
21
|
<div id="main-column">
|
22
|
<?php if ((
|
23
|
(($this -> keywords != NULL) && ($this -> fields != NULL) && ($this -> constraints != NULL)) || ($this -> types != NULL) || ($this -> languages != NULL) || ($this -> funders != NULL) || ($this -> fundingStreams != NULL) || ($this -> scientificAreas != NULL) || ($this -> date != -1) || ($this -> accessModes != NULL) || ($this -> datasources != NULL)) && ($this -> result != NULL) && ($this -> result -> totalPublications > 0)) { ?>
|
24
|
<div class="tm-main uk-width-1-5" style="float:left;">
|
25
|
<div class="refineBox">
|
26
|
<?php $baseUrl = 'index.php?option=com_openaire&view=advancedsearchpublications&Itemid=' . $this -> itemId;
|
27
|
for ($i = 0; ($i < count($this -> keywords)) && ($i < count($this -> fields)) && ($i < count($this -> constraints)); $i++)
|
28
|
$baseUrl .= '&keyword%5B%5D=' . $this -> keywords[$i] . '&field%5B%5D=' . $this -> fields[$i] . '&constraint%5B%5D=' . $this -> constraints[$i];
|
29
|
foreach ($this -> types as $type)
|
30
|
$baseUrl .= '&type%5B%5D=' . urlencode($type);
|
31
|
foreach ($this -> languages as $language)
|
32
|
$baseUrl .= '&language%5B%5D=' . urlencode($language);
|
33
|
foreach ($this -> funders as $funder)
|
34
|
$baseUrl .= '&funder%5B%5D=' . urlencode($funder);
|
35
|
foreach ($this -> fundingStreams as $fundingStream)
|
36
|
$baseUrl .= '&fundingStream%5B%5D=' . urlencode($fundingStream);
|
37
|
foreach ($this -> scientificAreas as $scientificArea)
|
38
|
$baseUrl .= '&scientificArea%5B%5D=' . urlencode($scientificArea);
|
39
|
foreach ($this -> fundingStreamsLevel2 as $fundingStreamLevel2)
|
40
|
$baseUrl .= '&fundingStreamLevel2%5B%5D=' . urlencode($fundingStreamLevel2);
|
41
|
$baseUrl .= '&date=' . $this -> date . '&fromMonth=' . $this -> fromMonth . '&fromYear=' . $this -> fromYear . '&toMonth=' . $this -> toMonth . '&toYear=' . $this -> toYear;
|
42
|
foreach ($this -> accessModes as $accessMode)
|
43
|
$baseUrl .= '&accessMode%5B%5D=' . urlencode($accessMode);
|
44
|
foreach ($this -> datasources as $datasource)
|
45
|
$baseUrl .= '&datasource%5B%5D=' . urlencode($datasource);
|
46
|
$baseUrl .= '&page=1&size=' . $this -> size . '&noscroll=true';
|
47
|
echo(FilterHelper :: formatFilters($this -> filters, $this -> result -> statistics, $baseUrl, '#publtab'));
|
48
|
echo(StatisticHelper :: formatStatistics($this -> result -> statistics, $this -> filters, $baseUrl, '#publtab')); ?>
|
49
|
</div>
|
50
|
</div>
|
51
|
<?php } ?>
|
52
|
<div <?php echo((((($this -> keywords != NULL) && ($this -> fields != NULL) && ($this -> constraints != NULL)) || ($this -> types != NULL) || ($this -> languages != NULL) || ($this -> funders != NULL) || ($this -> fundingStreams != NULL) || ($this -> scientificAreas != NULL) || ($this -> date != -1) || ($this -> accessModes != NULL) || ($this -> datasources != NULL)) && ($this -> result != NULL) && ($this -> result -> totalPublications > 0))? 'class="tm-main uk-width-3-4" style="float:right;"':''); ?>>
|
53
|
<?php echo($this->loadTemplate('form')); ?>
|
54
|
<div class="tabs" style="clear:both;">
|
55
|
<ul class="uk-tab" >
|
56
|
<li class="uk-active"><a href="#"><?php echo(JText :: _('PUBLICATIONS')); ?></a></li>
|
57
|
<!-- <li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=searchdatasets&Itemid=' . $this->itemId . '&noscroll=true#datatab')); ?>"><?php echo(JText :: _('DATA')); ?></a></li>
|
58
|
<li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchprojects&Itemid=' . $this->itemId . '&noscroll=true')); ?>"><?php echo(JText :: _('PROJECTS')); ?></a></li>
|
59
|
<li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchpeople&Itemid=' . $this->itemId . '&noscroll=true')); ?>"><?php echo(JText :: _('PEOPLE')); ?></a></li>
|
60
|
<li ><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchorganizations&Itemid=' . $this->itemId . '&noscroll=true')); ?>"><?php echo(JText :: _('ORGANIZATIONS')); ?></a></li>
|
61
|
<li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchdatasources&Itemid=' . $this->itemId . '&noscroll=true')); ?>"><?php echo(JText :: _('DATASOURCES')); ?></a></li>
|
62
|
-->
|
63
|
</ul>
|
64
|
<ul id="tab-content" class="uk-switcher uk-margin">
|
65
|
|
66
|
|
67
|
<li class="uk-active">
|
68
|
|
69
|
<?php
|
70
|
if ((($this->keywords != NULL) && ($this->fields != NULL) && ($this->constraints != NULL)) || ($this->types != NULL) || ($this->languages != NULL) || ($this->funders != NULL) || ($this->fundingStreams != NULL) || ($this->scientificAreas != NULL) || ($this->date != -1) || ($this->accessModes != NULL) || ($this->datasources != NULL)) {
|
71
|
echo($this->loadTemplate('publications'));
|
72
|
} else {
|
73
|
?>
|
74
|
<div id="publicationBrowse"></div>
|
75
|
<?php } ?>
|
76
|
</li>
|
77
|
</ul>
|
78
|
</div>
|
79
|
|
80
|
</div>
|
81
|
</div>
|
82
|
|