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 -> addScript(JRoute :: _(JUri :: base() . 'components/com_openaire/js/tooltip.js'));
|
10
|
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'components/com_openaire/css/tooltip/tooltip1.css'));
|
11
|
$document -> addStyleSheet(JRoute :: _(JUri :: base() . 'templates/' . JFactory :: getApplication() -> getTemplate() . '/styles/openaire/css/tooltip.css'));
|
12
|
JViewLegacy:: loadHelper('BrowseHelper');
|
13
|
|
14
|
?>
|
15
|
|
16
|
<div class="quickViewSelections">
|
17
|
<h3><?php echo(JText :: _('AT_A_GLANCE')); ?></h3>
|
18
|
<div class="quickViewSelections">
|
19
|
<h4 class="pub_icon"><?php echo(JText :: _('PUBLICATIONS')); ?></h4>
|
20
|
<div class="flowWrapper">
|
21
|
<?php if ($this -> publications == NULL) { ?>
|
22
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_PUBLICATION_STATISTICS')); ?></div>
|
23
|
<?php } else {
|
24
|
$baseUrl = 'index.php?option=com_openaire&view=browsepublications&lang=' . $this->lang. '&Itemid=' . $this -> itemId;
|
25
|
echo(BrowseHelper :: formatStatistic($this -> publications['funder'], $baseUrl,"pub"));
|
26
|
echo(BrowseHelper :: formatStatistic($this -> publications['accessMode'], $baseUrl,"pub"));
|
27
|
echo(BrowseHelper :: formatStatistic($this -> publications['year'], $baseUrl,"pub"));
|
28
|
echo(BrowseHelper :: formatStatistic($this -> publications['type'], $baseUrl,"pub"));
|
29
|
echo(BrowseHelper :: formatStatistic($this -> publications['language'], $baseUrl,"pub"));
|
30
|
echo(BrowseHelper :: formatStatistic($this -> publications['datasource'], $baseUrl,"pub"));
|
31
|
echo(BrowseHelper :: formatStatistic($this -> publications['community'], $baseUrl,"pub"));
|
32
|
} ?>
|
33
|
</div>
|
34
|
</div>
|
35
|
<div class="quickViewSelections">
|
36
|
<h4 class="data_icon"><?php echo(JText :: _('DATA')); ?></h4>
|
37
|
<div class="flowWrapper">
|
38
|
<?php if ($this -> datasets == NULL) { ?>
|
39
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_DATASET_STATISTICS')); ?></div>
|
40
|
<?php } else {
|
41
|
$baseUrl = 'index.php?option=com_openaire&view=browsedatasets&Itemid=' . $this -> itemId;
|
42
|
echo(BrowseHelper :: formatStatistic($this -> datasets['type'], $baseUrl,"data"));
|
43
|
echo(BrowseHelper :: formatStatistic($this -> datasets['language'], $baseUrl,"data"));
|
44
|
echo(BrowseHelper :: formatStatistic($this -> datasets['year'], $baseUrl,"data"));
|
45
|
echo(BrowseHelper :: formatStatistic($this -> datasets['datasource'], $baseUrl,"data"));
|
46
|
echo(BrowseHelper :: formatStatistic($this -> datasets['funder'], $baseUrl,"data"));
|
47
|
echo(BrowseHelper :: formatStatistic($this -> datasets['accessMode'], $baseUrl,"data"));
|
48
|
} ?>
|
49
|
</div>
|
50
|
</div>
|
51
|
<div class="quickViewSelections">
|
52
|
<h4 class="project_icon"><?php echo(JText :: _('PROJECTS')); ?></h4>
|
53
|
<div class="flowWrapper">
|
54
|
<?php if ($this -> projects == NULL) { ?>
|
55
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_PROJECT_STATISTICS')); ?></div>
|
56
|
<?php } else {
|
57
|
$baseUrl = 'index.php?option=com_openaire&view=browseprojects&Itemid=' . $this -> itemId;
|
58
|
echo(BrowseHelper :: formatStatistic($this -> projects['funder'], $baseUrl,"Project"));
|
59
|
echo(BrowseHelper :: formatStatistic($this -> projects['fundingStream'], $baseUrl,"Project"));
|
60
|
echo(BrowseHelper :: formatStatistic($this -> projects['startYear'], $baseUrl,"Project"));
|
61
|
echo(BrowseHelper :: formatStatistic($this -> projects['endYear'], $baseUrl,"Project"));
|
62
|
} ?>
|
63
|
</div>
|
64
|
</div>
|
65
|
<div class="quickViewSelections">
|
66
|
<h4 class="organization_icon"><?php echo(JText :: _('ORGANIZATIONS')); ?></h4>
|
67
|
<div class="flowWrapper">
|
68
|
<?php if ($this -> organizations == NULL) { ?>
|
69
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_ORGANIZATION_STATISTICS')); ?></div>
|
70
|
<?php } else {
|
71
|
foreach ($this -> organizations as $organizationStatistic)
|
72
|
echo(BrowseHelper :: formatStatistic($organizationStatistic, 'index.php?option=com_openaire&view=browseorganizations&Itemid=' . $this -> itemId,"Org"));
|
73
|
} ?>
|
74
|
</div>
|
75
|
</div>
|
76
|
<div class="quickViewSelections">
|
77
|
<h4 class="datasource_icon"><?php echo(JText :: _('DATASOURCES')); ?></h4>
|
78
|
<div class="flowWrapper">
|
79
|
<?php if ($this -> datasources == NULL) { ?>
|
80
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_DATASOURCE_STATISTICS')); ?></div>
|
81
|
<?php } else {
|
82
|
foreach ($this -> datasources as $datasourceStatistic)
|
83
|
echo(BrowseHelper :: formatStatistic($datasourceStatistic, 'index.php?option=com_openaire&view=browsedatasources&Itemid=' . $this -> itemId,"DataProvider"));
|
84
|
} ?>
|
85
|
</div>
|
86
|
</div>
|
87
|
</div>
|
88
|
|