1
|
<?php
|
2
|
|
3
|
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
|
4
|
<div class="<?php echo $className ?>">
|
5
|
|
6
|
<?php
|
7
|
if ($params->get('pubs_openaire')) {
|
8
|
?>
|
9
|
<div class="stats">
|
10
|
<h6>OpenAIRE Publications</h6>
|
11
|
<span class="header">Total:</span> <span class="value"><?php echo $stats->totalPubs ?> (<?php echo $stats->totalOpenAccessAfter2008 ?> OA)</span><br/>
|
12
|
</div>
|
13
|
<?php
|
14
|
}
|
15
|
|
16
|
if ($params->get('pubs_sc39')) {
|
17
|
?>
|
18
|
<div class="stats">
|
19
|
<h6>SC39 project publications</h6>
|
20
|
<span class="header">Total:</span> <span class="value"><?php echo $stats->totalSC39?> (<?php echo $stats->openSC39 ?> OA)</span><br/>
|
21
|
</div>
|
22
|
<?php
|
23
|
}
|
24
|
|
25
|
if ($params->get('per_area')) {
|
26
|
?>
|
27
|
<div class="stats">
|
28
|
<h6>Per Scientific area</h6>
|
29
|
<?php
|
30
|
$pStats = $stats->subdivisionStats->lines;
|
31
|
usort($pStats, 'compareStatLines');
|
32
|
|
33
|
foreach(array_slice(array_reverse($pStats), 0, $limit) as $line) {
|
34
|
?>
|
35
|
<span class="header"><?php echo $line->name->value ?>:</span>
|
36
|
<span class="value"><a href="<?php echo ('index.php?option='.$params->get('component').'&view=search&layout=browse&Itemid='.$params->get('searchMenuId').'&href='.base64_encode('/xmlResults.action?query=(area+%3D+"'.urlencode($line->name->value).'")&format=xml')); ?>" class="icon-findr"><?php echo($line->values[0]->value); ?></a></span><br>
|
37
|
<?php
|
38
|
}
|
39
|
|
40
|
if (count($pStats) > $limit) {
|
41
|
?>
|
42
|
<div class="view_all"><a class="modal" rel="{handler: 'adopt', adopt: 'sub-all'}" href="#sub-all"> View all...</a></div>
|
43
|
<div style="display:none">
|
44
|
<div id="sub-all">
|
45
|
<div class="module">
|
46
|
<?php
|
47
|
foreach(array_reverse($pStats) as $line) {
|
48
|
?>
|
49
|
<span class="header"><?php echo $line->name->label ?>:</span>
|
50
|
<span class="value"><a href="<?php echo ('index.php?option='.$params->get('component').'&view=search&layout=browse&Itemid='.$params->get('searchMenuId').'&href='.base64_encode('/xmlResults.action?query=(area+%3D+"'.urlencode($line->name->value).'")&format=xml')); ?>" class="icon-findr"><?php echo($line->values[0]->value); ?></a></span><br>
|
51
|
<?php
|
52
|
}
|
53
|
?>
|
54
|
</div>
|
55
|
</div>
|
56
|
</div>
|
57
|
<?php
|
58
|
}
|
59
|
?>
|
60
|
</div>
|
61
|
<?php
|
62
|
}
|
63
|
|
64
|
if ($params->get('per_programme')) {
|
65
|
?>
|
66
|
<div class="stats">
|
67
|
<h6>Per Programme</h6>
|
68
|
<?php
|
69
|
$pStats = $stats->programmeStats->lines;
|
70
|
usort($pStats, 'compareStatLines');
|
71
|
|
72
|
foreach(array_slice(array_reverse($pStats), 0, $limit) as $line) {
|
73
|
?>
|
74
|
<span class="header"><?php echo $line->name->value ?>:</span>
|
75
|
<span class="value"><a href="<?php echo ('index.php?option='.$params->get('component').'&view=search&layout=browse&Itemid='.$params->get('searchMenuId').'&href='.base64_encode('/xmlResults.action?query=(programme+%3D+"'.urlencode($line->name->label).'")&format=xml')); ?>" class="icon-findr"><?php echo($line->values[0]->value); ?></a></span><br>
|
76
|
<?php
|
77
|
}
|
78
|
|
79
|
if (count($pStats) > $limit) {
|
80
|
?>
|
81
|
<div class="view_all"><a class="modal" rel="{handler: 'adopt', adopt: 'progr-all'}" href="#progr-all"> View all...</a></div>
|
82
|
<div style="display:none">
|
83
|
<div id="progr-all">
|
84
|
<div class="module">
|
85
|
<?php
|
86
|
foreach(array_reverse($pStats) as $line) {
|
87
|
?>
|
88
|
<span class="header"><?php echo $line->name->label ?>:</span>
|
89
|
<span class="value"><a href="<?php echo ('index.php?option='.$params->get('component').'&view=search&layout=browse&Itemid='.$params->get('searchMenuId').'&href='.base64_encode('/xmlResults.action?query=(programme+%3D+"'.urlencode($line->name->label).'")&format=xml')); ?>" class="icon-findr"><?php echo($line->values[0]->value); ?></a></span><br>
|
90
|
<?php
|
91
|
}
|
92
|
?>
|
93
|
</div>
|
94
|
</div>
|
95
|
</div>
|
96
|
<?php
|
97
|
}
|
98
|
?>
|
99
|
</div>
|
100
|
<?php
|
101
|
}
|
102
|
|
103
|
if ($params->get('per_project')) {
|
104
|
?>
|
105
|
<div class="stats">
|
106
|
<h6>Per Project</h6>
|
107
|
<?php
|
108
|
$pStats = $stats->projectStats->lines;
|
109
|
usort($pStats, 'compareStatLines');
|
110
|
|
111
|
foreach(array_slice(array_reverse($pStats), 0, $limit) as $line) {
|
112
|
?>
|
113
|
<span class="header"><?php echo $line->name->label ?>:</span>
|
114
|
<span class="value"><a href="<?php echo ('index.php?option='.$params->get('component').'&view=search&layout=browse&Itemid='.$params->get('searchMenuId').'&href='.base64_encode('/xmlResults.action?query=(project+%3D+"'.urlencode($line->name->label).'")&format=xml')); ?>" class="icon-findr"><?php echo($line->values[0]->value); ?></a></span><br>
|
115
|
<?php
|
116
|
}
|
117
|
|
118
|
if (count($pStats) > $limit) {
|
119
|
?>
|
120
|
<div class="view_all"><a class="modal" rel="{handler: 'adopt', adopt: 'proj-all'}" href="#proj-all"> View all...</a></div>
|
121
|
<div style="display:none">
|
122
|
<div id="proj-all">
|
123
|
<div class="module">
|
124
|
<?php
|
125
|
foreach(array_reverse($pStats) as $line) {
|
126
|
?>
|
127
|
<span class="header"><?php echo $line->name->label ?>:</span>
|
128
|
<span class="value"><a href="<?php echo ('index.php?option='.$params->get('component').'&view=search&layout=browse&Itemid='.$params->get('searchMenuId').'&href='.base64_encode('/xmlResults.action?query=(project+%3D+"'.urlencode($line->name->label).'")&format=xml')); ?>" class="icon-findr"><?php echo($line->values[0]->value); ?></a></span><br>
|
129
|
<?php
|
130
|
}
|
131
|
?>
|
132
|
</div>
|
133
|
</div>
|
134
|
</div>
|
135
|
<?php
|
136
|
}
|
137
|
?>
|
138
|
</div>
|
139
|
<?php
|
140
|
}
|
141
|
|
142
|
if ($params->get('stats_link')) {
|
143
|
?>
|
144
|
<div class="view_stats"><a href="index.php?option=<?php echo $params->get('component')?>&view=stats&Itemid=<?php echo $params->get('statsMenuId')?>">More statistics...</a></div>
|
145
|
<?php
|
146
|
}
|
147
|
?>
|
148
|
</div>
|