1
|
<?php
|
2
|
|
3
|
defined('_JEXEC') or die('Access denied');
|
4
|
|
5
|
jimport('joomla.environment.request');
|
6
|
jimport('joomla.environment.uri');
|
7
|
jimport('joomla.methods');
|
8
|
|
9
|
JHtml :: _('behavior.mootools');
|
10
|
$document = JFactory :: getDocument();
|
11
|
$document -> addStyleSheet(JRoute :: _(JURI :: base() . 'components/com_openaire/css/SqueezeBox.css'));
|
12
|
$document -> addScript(JRoute :: _(JURI :: base() . 'components/com_openaire/js/statistics.js'));
|
13
|
$document -> addScript(JRoute :: _(JURI :: base() . 'components/com_openaire/js/SqueezeBox.js'));
|
14
|
|
15
|
?>
|
16
|
|
17
|
<h1 class="title"><?php echo(JText :: _('FP7_OPEN_ACCESS_STATISTICS')); ?></h1>
|
18
|
<div class="info"><?php echo(JText :: _('S_ARE_BASED_ON_THE_CURRENT_KNOWLEDGE_OF_OPENAIRE_ABOUT_FP7_PUBLICATIONS_AND_THEIR_OA_STATUS_')); ?></div>
|
19
|
<div class="stats_section">
|
20
|
<div style="text-align: left;">
|
21
|
<?php if ($this -> statistics != NULL) {
|
22
|
JText :: printf('TOTAL_NUMBER_OF_PUBLICATIONS_PUBLISHED_IN_FP7_S', '<a href="' . JRoute :: _('index.php?option=com_openaire&view=browse&Itemid=' . $this -> itemId) . '" class="icon-findr">' . $this -> statistics -> totalPublications . '</a>');
|
23
|
} else {
|
24
|
echo(JText :: _('ERROR_RETRIEVING_STATISTICS'));
|
25
|
} ?>
|
26
|
</div>
|
27
|
</div>
|
28
|
<div class="stats_section">
|
29
|
<h4><?php echo(JText :: _('OPEN_ACCESS_IN_FP7_AT_A_GLANCE')); ?></h4>
|
30
|
<div class="stats_group">
|
31
|
<?php if ($this -> publicationsByAccessMode === NULL) { ?>
|
32
|
<div style="text-align: left;">
|
33
|
<?php echo(JText :: _('ERROR_RETRIEVING_STATISTICS')); ?>
|
34
|
</div>
|
35
|
<?php } else if ($this -> publicationsByAccessMode == NULL) { ?>
|
36
|
<div style="text-align: left;">
|
37
|
<?php echo(JText :: _('NO_ACCESS_MODE_STATISTICS_FOUND')); ?>
|
38
|
</idv>
|
39
|
<?php } else { ?>
|
40
|
<div>
|
41
|
<?php JText :: printf('NUMBER_OF_OPEN_ACCESS_PUBLICATIONS_GREEN_OR_GOLD_S', '<a href="' . JRoute :: _('index.php?option=com_openaire&view=browse&Itemid=' . $this -> itemId . '&accessMode=OPEN') . '" class="icon-findr">' . $this -> openAccessPublications . '</a>'); ?>
|
42
|
</div>
|
43
|
<div>
|
44
|
<?php JText :: printf('NUMBER_OF_PUBLICATIONS_STILL_IN_EMBARGO_PERIOD_S', '<a href="' . JRoute :: _('index.php?option=com_openaire&view=browse&Itemid=' . $this -> itemId . '&accessMode=CLOSED&accessMode=EMBARGO&accessmode=RESTRICTED') . '" class="icon-findr">' . $this -> embargoPublications . '</a>'); ?>
|
45
|
</div>
|
46
|
<?php foreach ($this -> publicationsByAccessMode as $publicationsByAccessMode) { ?>
|
47
|
<div style="padding-left: 30px;">
|
48
|
<?php echo($publicationsByAccessMode -> name); ?> - <a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=browse&Itemid=' . $this -> itemId . '&accessMode=' . $publicationsByAccessMode -> accessMode)); ?>" class="icon-findr"><?php echo($publicationsByAccessMode -> publications); ?></a>
|
49
|
</div>
|
50
|
<?php } ?>
|
51
|
<div class="chart">
|
52
|
<input type="hidden" class="chartUrl" value="<?php echo(JRoute :: _('index.php?option=com_openaire&view=chart&chart=accessMode')); ?>" />
|
53
|
<span class="chartToggle pseudolink"><?php echo(JText :: _('VIEW_GRAPH_')); ?></span>
|
54
|
</div>
|
55
|
<?php } ?>
|
56
|
</div>
|
57
|
</div>
|
58
|
<div class="stats_section">
|
59
|
<h4><?php echo(JText :: _('PUBLICATION_STATISTICS')); ?></h4>
|
60
|
<?php if ($this -> publicationsByProgramme === NULL) { ?>
|
61
|
<div style="text-align: left;">
|
62
|
<?php echo(JText :: _('ERROR_RETRIEVING_STATISTICS')); ?>
|
63
|
</div>
|
64
|
<?php } else if ($this -> publicationsByProgramme == NULL) { ?>
|
65
|
<div style="text-align: left;">
|
66
|
<?php echo(JText :: _('NO_PROGRAMME_STATISTICS_FOUND')); ?>
|
67
|
</div>
|
68
|
<?php } else { ?>
|
69
|
<div class="stats_group">
|
70
|
<img class="toggle" style="margin-right: 7px; vertical-align: top;" src="<?php echo(JRoute :: _(JURI :: base() . 'components/com_openaire/images/plus.gif')); ?>" height="14" width="14" />
|
71
|
<span><?php echo(JText :: _('FP7_PROGRAMME')); ?></span>
|
72
|
<div class="chart">
|
73
|
<input type="hidden" class="chartUrl" value="<?php echo(JRoute :: _('index.php?option=com_openaire&view=chart&chart=programme')); ?>" />
|
74
|
<span class="chartToggle pseudolink"><?php echo(JText :: _('VIEW_GRAPH_')); ?></span>
|
75
|
</div>
|
76
|
<div class="toggle" style="display: none;">
|
77
|
<table class="zebra stats_table">
|
78
|
<thead>
|
79
|
<tr>
|
80
|
<th width="50%"><?php echo(JText :: _('FUNDING_STREAM')); ?></th>
|
81
|
<th><?php echo(JText :: _('PUBLICATIONS')); ?></th>
|
82
|
<th><?php echo(JText :: _('PROJECTS')); ?></th>
|
83
|
<th><?php echo(JText :: _('OPEN_ACCESS')); ?></th>
|
84
|
</tr>
|
85
|
</thead>
|
86
|
<tbody>
|
87
|
<?php foreach ($this -> publicationsByProgramme as $publicationsByProgramme) { ?>
|
88
|
<tr>
|
89
|
<td><?php echo($publicationsByProgramme -> name); ?></td>
|
90
|
<td><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=browse&Itemid=' . $this -> itemId . '&programme=' . $publicationsByProgramme -> acronym)); ?>" class="icon-findr"><?php echo($publicationsByProgramme -> totalPublications); ?></a></td>
|
91
|
<td><?php echo($publicationsByProgramme -> projects); ?></td>
|
92
|
<td><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=browse&Itemid=' . $this -> itemId . '&programme=' . $publicationsByProgramme -> acronym . '&accessMode=OPEN')) ?>" class="icon-findr"><?php echo($publicationsByProgramme -> openPublications); ?></a> (<?php echo($publicationsByProgramme -> openPublicationsRatio); ?>%)</td>
|
93
|
</tr>
|
94
|
<?php } ?>
|
95
|
</tbody>
|
96
|
</table>
|
97
|
</div>
|
98
|
</div>
|
99
|
<?php }
|
100
|
if ($this -> publicationsByScientificArea === NULL) { ?>
|
101
|
<div style="text-align: left;">
|
102
|
<?php echo(JText :: _('ERROR_RETRIEVING_STATISTICS')); ?>
|
103
|
</div>
|
104
|
<?php } else if ($this -> publicationsByScientificArea == NULL) { ?>
|
105
|
<div style="text-align: left;">
|
106
|
<?php echo(JText :: _('NO_SCIENTFIC_AREA_STATISTICS_FOUND')); ?>
|
107
|
</div>
|
108
|
<?php } else { ?>
|
109
|
<div class="stats_group">
|
110
|
<img class="toggle" style="margin-right: 7px; vertical-align: top;" src="<?php echo(JRoute :: _(JURI :: base() . 'components/com_openaire/images/plus.gif')); ?>" height="14" width="14" />
|
111
|
<?php echo(JText :: _('SCIENTIFIC_AREA')); ?>
|
112
|
<div class="chart">
|
113
|
<input type="hidden" class="chartUrl" value="<?php echo(JRoute :: _('index.php?option=com_openaire&view=chart&chart=scientificArea')); ?>" />
|
114
|
<span class="chartToggle pseudolink"><?php echo(JText :: _('VIEW_GRAPH_')); ?></span>
|
115
|
</div>
|
116
|
<div class="toggle" style="display: none;">
|
117
|
<table class="zebra stats_table">
|
118
|
<thead>
|
119
|
<tr>
|
120
|
<th width="50%"><?php echo(JText :: _('SCIENTIFIC_AREA')); ?></th>
|
121
|
<th><?php echo(JText :: _('PUBLICATIONS')); ?></th>
|
122
|
<th><?php echo(JText :: _('PROJECTS')); ?></th>
|
123
|
<th><?php echo(JText :: _('OPEN_ACCESS')); ?></th>
|
124
|
</tr>
|
125
|
</thead>
|
126
|
<tbody>
|
127
|
<?php foreach ($this -> publicationsByScientificArea as $publicationsByScientificArea) { ?>
|
128
|
<tr>
|
129
|
<td><?php echo($publicationsByScientificArea -> name); ?></td>
|
130
|
<td><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=browse&Itemid=' . $this -> itemId . '&scientificArea=' . $publicationsByScientificArea -> acronym)); ?>" class="icon-findr"><?php echo($publicationsByScientificArea -> totalPublications); ?></a></td>
|
131
|
<td><?php echo($publicationsByScientificArea -> projects); ?></td>
|
132
|
<td><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=browse&Itemid=' . $this -> itemId . '&scientificArea=' . $publicationsByScientificArea -> acronym . '&accessMode=OPEN')); ?>" class="icon-findr"><?php echo($publicationsByScientificArea -> openPublications); ?></a> (<?php echo($publicationsByScientificArea -> openPublicationsRatio); ?>%)</td>
|
133
|
</tr>
|
134
|
<?php } ?>
|
135
|
</tbody>
|
136
|
</table>
|
137
|
</div>
|
138
|
</div>
|
139
|
<?php }
|
140
|
if ($this -> publicationsByCountry === NULL) { ?>
|
141
|
<div style="text-align: left;">
|
142
|
<?php echo(JText :: _('ERROR_RETRIEVING_STATISTICS')); ?>
|
143
|
</div>
|
144
|
<?php } else if ($this -> publicationsByCountry == NULL) { ?>
|
145
|
<div style="text-align: left;">
|
146
|
<?php echo(JText :: _('NO_COUNTRY_STATISTICS_FOUND')); ?>
|
147
|
</div>
|
148
|
<?php } else { ?>
|
149
|
<div class="stats_group">
|
150
|
<img class="toggle" style="margin-right: 7px; vertical-align: top;" src="<?php echo(JRoute :: _(JURI :: base() . 'components/com_openaire/images/' . ($this -> showCountries ? 'minus' : 'plus') . '.gif')); ?>" height="14" width="14" />
|
151
|
<?php echo(JText :: _('COUNTRY')); ?>
|
152
|
<div class="chart">
|
153
|
<input type="hidden" class="chartUrl" value="<?php echo(JRoute :: _('index.php?option=com_openaire&view=chart&chart=country')); ?>" />
|
154
|
<span class="chartToggle pseudolink"><?php echo(JText :: _('VIEW_GRAPH_')); ?></span>
|
155
|
</div>
|
156
|
<div class="toggle"<?php echo($this -> showCountries ? '' : ' style="display: none;"'); ?>>
|
157
|
<table class="zebra stats_table">
|
158
|
<thead>
|
159
|
<tr>
|
160
|
<th width="50%"><?php echo(JText :: _('COUNTRY')); ?></th>
|
161
|
<th><?php echo(JText :: _('PUBLICATIONS')); ?></th>
|
162
|
<th><?php echo(JText :: _('PROJECTS')); ?></th>
|
163
|
<th><?php echo(JText :: _('OPEN_ACCESS')); ?></th>
|
164
|
</tr>
|
165
|
</thead>
|
166
|
<tbody>
|
167
|
<?php foreach ($this -> publicationsByCountry as $publicationsByCountry) { ?>
|
168
|
<tr>
|
169
|
<td><?php echo($publicationsByCountry -> name); ?></td>
|
170
|
<td><?php echo($publicationsByCountry -> totalPublications); ?></td>
|
171
|
<td><?php echo($publicationsByCountry -> projects); ?></td>
|
172
|
<td><?php echo($publicationsByCountry -> openPublications); ?> (<?php echo($publicationsByCountry -> openPublicationsRatio); ?>%)</td>
|
173
|
</tr>
|
174
|
<?php }
|
175
|
if (!$this -> showCountries) { ?>
|
176
|
<tr>
|
177
|
<td colspan="3"></td>
|
178
|
<td align="right"><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=statistics&Itemid=' . $this -> itemId . '&showCountries=true')); ?>"><span class="show_details"><?php echo(JText :: _('SHOW_ALL')); ?></span></a></td>
|
179
|
</tr>
|
180
|
<?php } ?>
|
181
|
</tbody>
|
182
|
</table>
|
183
|
</div>
|
184
|
</div>
|
185
|
<?php }
|
186
|
if ($this -> publicationsByInstitution === NULL) { ?>
|
187
|
<div style="text-align: left;">
|
188
|
<?php echo(JText :: _('ERROR_RETRIEVING_STATISTICS')); ?>
|
189
|
</div>
|
190
|
<?php } else if ($this -> publicationsByInstitution == NULL) { ?>
|
191
|
<div style="text-align: left;">
|
192
|
<?php echo(JText :: _('NO_INSTITUTION_STATISTICS_FOUND')); ?>
|
193
|
</div>
|
194
|
<?php } else { ?>
|
195
|
<div class="stats_group">
|
196
|
<img class="toggle" style="margin-right: 7px; vertical-align: top;" src="<?php echo(JRoute :: _(JURI :: base() . 'components/com_openaire/images/' . ($this -> showInstitutions ? 'minus' : 'plus') . '.gif')); ?>" height="14" width="14" />
|
197
|
<?php echo(JText :: _('INSTITUTION')); ?>
|
198
|
<div class="chart">
|
199
|
<input type="hidden" class="chartUrl" value="<?php echo(JRoute :: _('index.php?option=com_openaire&view=chart&chart=institution')); ?>" />
|
200
|
<span class="chartToggle pseudolink"><?php echo(JText :: _('VIEW_GRAPH_')); ?></span>
|
201
|
</div>
|
202
|
<div class="toggle"<?php echo($this -> showInstitutions ? '' : ' style="display: none;"'); ?>>
|
203
|
<table class="zebra stats_table">
|
204
|
<thead>
|
205
|
<tr>
|
206
|
<th width="50%"><?php echo(JText :: _('INSTITUTION')); ?></th>
|
207
|
<th><?php echo(JText :: _('PUBLICATIONS')); ?></th>
|
208
|
<th><?php echo(JText :: _('PROJECTS')); ?></th>
|
209
|
<th><?php echo(JText :: _('OPEN_ACCESS')); ?></th>
|
210
|
</tr>
|
211
|
</thead>
|
212
|
<tbody>
|
213
|
<?php foreach ($this -> publicationsByInstitution as $publicationsByInstitution) { ?>
|
214
|
<tr>
|
215
|
<td><?php echo($publicationsByInstitution -> name); ?></td>
|
216
|
<td><?php echo($publicationsByInstitution -> totalPublications); ?></td>
|
217
|
<td><?php echo($publicationsByInstitution -> projects); ?></td>
|
218
|
<td><?php echo($publicationsByInstitution -> openPublications); ?> (<?php echo($publicationsByInstitution -> openPublicationsRatio); ?>%)</td>
|
219
|
</tr>
|
220
|
<?php }
|
221
|
if (!$this -> showInstitutions) { ?>
|
222
|
<tr>
|
223
|
<td colspan="3"></td>
|
224
|
<td align="right"><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=statistics&Itemid=' . $this -> itemId . '&showInstitutions=true')); ?>"><span class="show_details"><?php echo(JText :: _('SHOW_ALL')); ?></span></a></td>
|
225
|
</tr>
|
226
|
<?php } ?>
|
227
|
</tbody>
|
228
|
</table>
|
229
|
</div>
|
230
|
</div>
|
231
|
<?php } ?>
|
232
|
</div>
|
233
|
<div class="stats_section">
|
234
|
<h4><?php echo(JText :: _('FP7_OA_PILOT_SPECIAL_CLAUSE_39_PROJECTS_OA_EVALUATION')); ?></h4>
|
235
|
<div class="stats_group">
|
236
|
<div style="text-align: left;">
|
237
|
<?php if ($this -> statistics != NULL) {
|
238
|
JText :: printf('N_PROJECTS_WITH_SPECIAL_CLAUSE_39', $this -> statistics -> sc39Projects);
|
239
|
} else {
|
240
|
echo(JText :: _('ERROR_RETRIEVING_STATISTICS'));
|
241
|
} ?>
|
242
|
</div>
|
243
|
</div>
|
244
|
</div>
|
245
|
<div class="stats_section">
|
246
|
<h4><?php echo(JText :: _('MISC')); ?></h4>
|
247
|
<div class="stats_group">
|
248
|
<?php if ($this -> statistics != NULL) { ?>
|
249
|
<div style="text-align: left;">
|
250
|
<?php JText :: printf('AVERAGE_NUMBER_OF_PUBLICATIONS_PER_PROJECT_N', $this -> statistics -> averagePublicationsPerProject); ?>
|
251
|
</div>
|
252
|
<div style="text-align: left;">
|
253
|
<?php JText :: printf('AVERAGE_NUMBER_OF_PUBLICATIONS_PER_YEAR_N', $this -> statistics -> averagePublicationsPerYear); ?>
|
254
|
</div>
|
255
|
<?php } else { ?>
|
256
|
<div style="text-align: left;">
|
257
|
<?php echo(JText :: _('ERROR_RETRIEVING_STATISTICS')); ?>
|
258
|
</div>
|
259
|
<?php } ?>
|
260
|
</div>
|
261
|
</div>
|
262
|
|