1
|
<?php
|
2
|
|
3
|
defined('_JEXEC') or die('Access denied');
|
4
|
|
5
|
jimport('joomla.environment.uri');
|
6
|
jimport('joomla.html.html');
|
7
|
jimport('joomla.methods');
|
8
|
|
9
|
JHtml :: _('behavior.mootools');
|
10
|
JView :: loadHelper('PublicationHelper');
|
11
|
JView :: loadHelper('DatasetHelper');
|
12
|
|
13
|
$document = JFactory :: getDocument();
|
14
|
$document -> addScript(JRoute :: _(JURI :: base() . 'components/com_openaire/js/project.js'));
|
15
|
$document -> addStyleSheet(JRoute :: _(JURI :: base() . 'components/com_openaire/css/tabcontent.css'));
|
16
|
$document -> addScript(JRoute :: _(JURI :: base() . 'components/com_openaire/js/tabcontent.js'));
|
17
|
|
18
|
?>
|
19
|
|
20
|
<div id="system">
|
21
|
<?php if (($this -> projectId == NULL) || ($this -> project == NULL) || (($this -> project -> acronym == NULL) && ($this -> project -> title == NULL))) { ?>
|
22
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_PROJECT')); ?></div>
|
23
|
<?php } else { ?>
|
24
|
<div class="innerLeft">
|
25
|
<div class="projectBox">
|
26
|
<div class="projectIcon"> </div>
|
27
|
<h3<?php echo(($this -> project -> sc39) ? (' class="sc39" title="' . JText :: _('SPECIAL_CLAUSE_39') . '"') : ''); ?>><?php echo(($this -> project -> acronym == NULL) ? $this -> project -> title : $this -> project -> acronym); ?></h3>
|
28
|
<dl class="separator">
|
29
|
<dt><?php echo(JText :: _('TITLE')); ?></dt>
|
30
|
<dd><?php echo(($this -> project -> title == NULL) ? '-' : $this -> project -> title); ?></dd>
|
31
|
<dt><?php echo(JText :: _('FUNDER')); ?></dt>
|
32
|
<dd><?php echo(($this -> project -> funder == NULL) ? '-' : $this -> project -> funder)?></dd>
|
33
|
<dt><?php echo(JText :: _('FUNDING_STREAM')); ?></dt>
|
34
|
<dd><?php echo(($this -> project -> fundingStream == NULL) ? '-' : $this -> project -> fundingStream); ?></dd>
|
35
|
<dt><?php echo(JText :: _('SCIENTIFIC_AREA')); ?></dt>
|
36
|
<dd><?php echo(($this -> project -> scientificArea == NULL) ? '-' : $this -> project -> scientificArea); ?></dd>
|
37
|
<dt><?php echo(JText :: _('CALL')); ?></dt>
|
38
|
<dd><?php echo(($this -> project -> call == NULL) ? '-' : $this -> project -> call); ?></dd>
|
39
|
<dt><?php echo(JText :: _('CONTRACT_GA_NUMBER')); ?></dt>
|
40
|
<dd><?php echo(($this -> project -> code == NULL) ? '-' : $this -> project -> code);?></dd>
|
41
|
<dt><?php echo(JText :: _('START_DATE')); ?></dt>
|
42
|
<dd><?php echo(($this -> project -> startDate == NULL) ? '-' : date(JText :: _('DATE_FORMAT'), ($this -> project -> startDate))); ?></dd>
|
43
|
<dt><?php echo(JText :: _('END_DATE')); ?></dt>
|
44
|
<dd><?php echo(($this -> project -> endDate == NULL) ? '-' : date(JText :: _('DATE_FORMAT'), ($this -> project -> endDate))); ?></dd>
|
45
|
<dt><?php echo(JText :: _('SPECIAL_CLAUSE_39')); ?></dt>
|
46
|
<dd><?php echo(($this -> project -> sc39 === NULL) ? '-' : JText :: _($this -> project -> sc39 ? 'YES__' : 'NO__')); ?></dd>
|
47
|
<?php $itemId = $this -> itemId; ?>
|
48
|
<dt><?php echo(JText :: _('ORGANIZATIONS')); ?></dt>
|
49
|
<dd><?php echo(($this -> project -> organizations == NULL) ? '-' : implode(', ', array_filter(array_map(function ($organization) use ($itemId) {return (($organization == NULL) || (($organization -> shortName == NULL) && ($organization -> name == NULL))) ? '' : ((($organization -> id == NULL) ? '' : '<a href="' . JRoute :: _( 'index.php?option=com_openaire&view=organization&Itemid=' . $itemId . '&organizationId=' . $organization -> id) . '">') . (($organization -> shortName == NULL) ? $organization -> name : $organization -> shortName) . (($organization -> id == NULL) ? '' : '</a>'));}, $this -> project -> organizations)))); ?></dd>
|
50
|
<dt><?php echo(JText :: _('MORE_INFORMATION')); ?></dt>
|
51
|
<dd>
|
52
|
|
53
|
<?php
|
54
|
if($this-> project->funding->funding_level_0!=="FP7"){
|
55
|
echo(($this->project -> url!==null&&!empty($this->project -> url))?'<a href="'.$this->project -> url.'" target="_blank" class="icon-external">'.$this->project->url.'</a>':'-');
|
56
|
?>
|
57
|
<!--<a href="<?php echo($this->project -> url); ?>" target="_blank" class="icon-external"><?php echo($this->project->url); ?></a>-->
|
58
|
<?php }else{ ?>
|
59
|
<a href="http://cordis.europa.eu/projects/<?php echo($this -> project -> code); ?>" target="_blank" class="icon-external"><?php echo(JText :: _('DETAILED_PROJECT_INFORMATION_CORDIS_')); ?></a>
|
60
|
<?php } ?>
|
61
|
</dd>
|
62
|
</dl>
|
63
|
</div>
|
64
|
<p> </p>
|
65
|
<div>
|
66
|
<div class="nav-container nav-left clearfix">
|
67
|
<ul class="tabs" persist="true">
|
68
|
<li><a rel="publtab"><?php echo(JText :: _('PUBLICATIONS')); ?></a></li>
|
69
|
<li><a rel="datatab"><?php echo(JText :: _('DATA')); ?></a></li>
|
70
|
<li class="selected"><a rel="statstab"><?php echo(JText :: _('STATISTICS')); ?></a></li>
|
71
|
</ul>
|
72
|
</div>
|
73
|
<div class="tabcontents">
|
74
|
<div id="publtab" class="tabcontent">
|
75
|
<?php if ($this -> publications == NULL) { ?>
|
76
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_PROJECT_PUBLICATIONS')); ?></div>
|
77
|
<?php } else if ($this -> publications -> publications == NULL) { ?>
|
78
|
<div class="box-info"><?php echo(JText :: _('NO_PROJECT_PUBLICATIONS_FOUND')); ?></div>
|
79
|
<?php } else { ?>
|
80
|
<div class="searchResults">
|
81
|
<?php if ($this -> publications -> totalPublications > OpenAireViewProject :: SIZE) { ?>
|
82
|
<div class="pageController">
|
83
|
<a class="viewall" href="<?php echo(JRoute :: _( 'index.php?option=com_openaire&view=browsepublications&Itemid=' . $this -> itemId . '&project=' . $this -> projectId)); ?> "><?php JText :: printf('VIEW_ALL_N', $this -> publications -> totalPublications); ?></a>
|
84
|
</div>
|
85
|
<?php }
|
86
|
foreach ($this -> publications -> publications as $publication) {
|
87
|
echo(PublicationHelper :: formatPublication($publication, $this -> itemId));
|
88
|
} ?>
|
89
|
</div>
|
90
|
<?php } ?>
|
91
|
</div>
|
92
|
<div id="datatab" class="tabcontent">
|
93
|
<?php if ($this -> datasets == NULL) { ?>
|
94
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_PROJECT_DATASETS')); ?></div>
|
95
|
<?php } else if ($this -> datasets -> datasets == NULL) { ?>
|
96
|
<div class="box-info"><?php echo(JText :: _('NO_PROJECT_DATASETS_FOUND')); ?></div>
|
97
|
<?php } else { ?>
|
98
|
<div class="searchResults">
|
99
|
<?php if ($this -> datasets -> totalDatasets > OpenAireViewProject :: SIZE) { ?>
|
100
|
<div class="pageController">
|
101
|
<a class="viewall" href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=browsedatasets&Itemid=' . $this -> itemId . '&project=' . $this -> projectId)); ?> "><?php JText :: printf('VIEW_ALL_N', $this -> datasets -> totalDatasets); ?></a>
|
102
|
</div>
|
103
|
<?php }
|
104
|
foreach ($this -> datasets -> datasets as $dataset) {
|
105
|
echo(DatasetHelper :: formatDataset($dataset, $this -> itemId));
|
106
|
} ?>
|
107
|
</div>
|
108
|
<?php } ?>
|
109
|
</div>
|
110
|
<div id="statstab" class="tabcontent" style="height:100%">
|
111
|
<div class="error" style="display: none;"><?php echo(JText :: _('NO_DATASOURCE_STATISTICS_FOUND')); ?></div>
|
112
|
<?php if (($this -> publications -> publications == NULL) || (count($this -> publications -> publications) < 2 )) { ?>
|
113
|
<div class="box-info"><?php echo(JText :: _('NO_PUBLICATION_STATISTICS_FOUND')); ?></div>
|
114
|
<?php } else { ?>
|
115
|
<h3><?php echo(JText :: _('SCIENTIFIC_RESULTS')); ?></h3>
|
116
|
<iframe frameborder="0" scrolling="no" width="90%" height="430px" src="<?php echo($this -> chartUrl); ?>chart.php?com=query&data=<?php echo(urlencode('{"emp": [' . (($this -> project -> startYear == NULL) ? OpenAireViewProject :: DEFAULT_START_YEAR : $this -> project -> startYear) . ', ' . (($this -> project -> endYear == NULL) ? OpenAireViewProject :: DEFAULT_END_YEAR : $this -> project -> endYear) . '],"bands": [[' . (($this -> project -> startYear == NULL) ? OpenAireViewProject :: DEFAULT_START_YEAR : $this -> project -> startYear) . ', ' . (($this -> project -> endYear == NULL) ? OpenAireViewProject :: DEFAULT_END_YEAR : $this -> project -> endYear) . ']],"table": "result","fields": [{"fld": "number","agg": "count","type": "spline","yaxis": 1,"c": false}],"xaxis": {"name": "year","agg": "avg"},"group": "","color": "","type": "chart","size": 30,"sort": "xaxis","xStyle": {"r": "-","s": "-","l": "-","ft": "-","wt": "-"},"yaxisheaders": [""],"fieldsheaders": [""],"in": [{"f": 0,"text": "Yearly"}],"filters": [{"name": "result_projects-project-acronym","values": ["' . (($this -> project -> acronym == NULL) ? $this -> project -> title : $this -> project -> acronym) . '"],"to": "-1"},{"name": "year","max": "' . ((($this -> project -> endYear == NULL) ? OpenAireViewProject :: DEFAULT_END_YEAR : $this -> project -> endYear) + 5) . '","min": "' . ((($this -> project -> startYear == NULL) ? OpenAireViewProject :: DEFAULT_START_YEAR : $this -> project -> startYear) - 2) . '","to": -1}],"having": [],"incfilters": [],"inchaving": [],"yaxisheaders": ["publications"]}')); ?>&w=90%"></iframe>
|
117
|
<hr />
|
118
|
<h3><?php echo(JText :: _('PUBLICATIONS_ACCESS_MODE')); ?></h3>
|
119
|
<iframe frameborder="0" scrolling="no" width="90%" height="430px" src="<?php echo($this -> chartUrl); ?>chart.php?com=query&data=<?php echo(urlencode('{"table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis": 1, "c": false}], "xaxis": {"name": "access_mode", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size": 30, "sort": "xaxis", "xStyle": {"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["' . JText :: _('PUBLICATIONS') . '"], "in": [], "filters": [{"name": "result_projects-project-acronym", "values": ["' . (($this -> project -> acronym == NULL) ? $this -> project -> title : $this -> project -> acronym) . '"], "to": "-1"}], "having": [], "title": "","subtitle": "", "xaxistitle": ""}')); ?>&w=90%"></iframe>
|
120
|
<hr />
|
121
|
<h3><?php echo(JText :: _('PUBLICATIONS_IN_REPOSITORIES')); ?></h3>
|
122
|
<iframe frameborder="0" scrolling="no" width="90%" height="430px" src="<?php echo($this -> chartUrl); ?>chart.php?com=query&data=<?php echo(urlencode('{"table": "result", "fields": [{"fld": "number", "agg": "count", "type": "column", "yaxis": 1, "c": false}], "xaxis": {"name": "result_datasources-datasource-name", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size": 30, "sort": "count-number", "xStyle": {"r": "90", "s": "-", "l": "-", "ft": "10", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["' . JText :: _('PUBLICATIONS') . '"], "in": [], "filters": [{"name": "result_projects-project-acronym", "values": ["' . (($this -> project -> acronym == NULL) ? $this -> project -> title : $this -> project -> acronym) . '"], "to": "-1"}, {"name": "type", "values": ["publication"], "to": "-1"}], "having": [], "title": "", "subtitle": "", "xaxistitle": "' . JText :: _('REPOSITORIES') . '", "order": "d"}')); ?>&w=90%"></iframe>
|
123
|
<?php } ?>
|
124
|
</div>
|
125
|
</div>
|
126
|
</div>
|
127
|
</div>
|
128
|
<div class="innerRight">
|
129
|
<div class="appBox">
|
130
|
<h3><?php echo(JText :: _('APP_BOX')); ?></h3>
|
131
|
<ul class="zebra">
|
132
|
<li>
|
133
|
<a href="<?php echo(JRoute :: _( 'index.php?option=com_openaire&view=browsepublications&Itemid=' . $this -> itemId . '&project=' . $this -> projectId)); ?>" class="pubDets"><?php echo(JText :: _('PUBLICATION_DETAILS')); ?></a>
|
134
|
</li>
|
135
|
<li>
|
136
|
<a href="#" id="showSnippet" class="incHTM"><?php echo(JText :: _('DYNAMICALLY_INCORPORATE_PUBLICATIONS_IN_YOUR_SITE_HTML_')); ?></a>
|
137
|
<div id="snippet" style="display: none;">
|
138
|
<a href="#" id="hideSnippet" class="hide_details"><?php echo(JText :: _('CLOSE')); ?></a>
|
139
|
<code>
|
140
|
<pre>
|
141
|
<script type="text/javascript">
|
142
|
<!--
|
143
|
document.write('<div id="oa_widget"></div>');
|
144
|
document.write('<script type="text/javascript" src="<?php echo(JRoute :: _(JURI :: base() . 'index.php?option=com_openaire&view=widget&format=raw&projectId=' . $this -> projectId)); ?>"></script>');
|
145
|
-->
|
146
|
</script>
|
147
|
</pre>
|
148
|
</code>
|
149
|
</div>
|
150
|
</li>
|
151
|
<li>
|
152
|
<a target="_blank" href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=publications&Itemid=' . $this -> itemId . '&format=raw&projectId=' . $this -> projectId.'&size='.$this -> publications -> totalPublications)); ?>" class="viewEC"><?php echo(JText :: _('VIEW_EC_PROGRESS_REPORT_HTML_')); ?></a>
|
153
|
</li>
|
154
|
<li>
|
155
|
<a href="<?php echo(JRoute :: _( 'index.php?option=com_openaire&view=publications&Itemid=' . $this -> itemId . '&format=raw&layout=csv&projectId=' . $this -> projectId.'&size='.$this -> publications -> totalPublications)); ?>" class="dlEC"><?php echo(JText :: _('DOWNLOAD_EC_PROGRESS_REPORT_CSV_')); ?></a>
|
156
|
</li>
|
157
|
</ul>
|
158
|
<div class="publicationControls">
|
159
|
<div><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=claim1&Itemid=' . $this -> itemId.'&projectId='.$this -> projectId.'&action=addProject')); ?>" class="button-primary"><?php echo(JText :: _('LINK_RESEARCH_RESULTS')); ?></a></div>
|
160
|
<div><a href="<?php echo(JRoute :: _( 'index.php?option=com_openaire&view=ingestion1&Itemid=' . $this -> itemId)); ?>" class="button-primary"><?php echo(JText :: _('DEPOSIT_PUBLICATIONS')); ?></a></div>
|
161
|
</div>
|
162
|
</div>
|
163
|
</div>
|
164
|
<?php } ?>
|
165
|
</div>
|
166
|
|