Revision 42144
Added by Argiro Kokogiannaki about 8 years ago
modules/uoa-joomla/trunk/joomla-3.4/com_openaire/site/views/project/tmpl/default.php | ||
---|---|---|
144 | 144 |
</div> |
145 | 145 |
<?php |
146 | 146 |
|
147 |
|
|
148 |
// $url =$this -> chartUrl.'chart.php?com=query&persistent=false&data={"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-title","values": ["'.$this -> project -> title. '"],"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"]}&h=70%'; |
|
149 |
$url =$this -> chartUrl.'chart.php?com=query&persistent=false&data={"query":"projScient","projTitle":"'.$this -> projectId.'", "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-title","values": ["'.$this -> project -> title. '"],"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"]}&h=70%'; |
|
150 |
|
|
147 |
$url = $this -> chartUrl.'chart.php?com=query&persistent=false&data='.urlencode('{"query":"projScient","projTitle":"'.$this -> projectId.'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "spline", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["'.JText :: _('Publications').'"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [" "], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}'); |
|
148 |
|
|
149 |
|
|
150 |
|
|
151 | 151 |
$document->addScriptDeclaration("var scientificResultsUrl = '" . $url."'"); |
152 | 152 |
?> |
153 | 153 |
<div class="frame"> </div> |
... | ... | |
160 | 160 |
</div> |
161 | 161 |
<?php |
162 | 162 |
|
163 |
// $url =$this -> chartUrl.'chart.php?com=query&persistent=false&data={"table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis": 1, "c": false}], "xaxis": {"name": "bestlicense", "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-title", "values": ["' .$this -> project -> title . '"], "to": "-1"}], "having": [], "title": "","subtitle": "", "xaxistitle": ""}'; |
|
164 |
|
|
165 |
$url =$this -> chartUrl.'chart.php?com=query&persistent=false&data={"query":"projOA","projTitle":"'.$this -> projectId.'","table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis": 1, "c": false}], "xaxis": {"name": "bestlicense", "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-title", "values": ["' .$this -> project -> title . '"], "to": "-1"}], "having": [], "title": "","subtitle": "", "xaxistitle": ""}'; |
|
166 |
|
|
163 |
|
|
164 |
$url = $this -> chartUrl.'chart.php?com=query&persistent=false&data='.urlencode('{"query":"projOA","projTitle":"'.$this -> projectId.'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "pie", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["'.JText :: _('Publications').'"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [" "], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}'); |
|
165 |
|
|
166 |
|
|
167 |
|
|
167 | 168 |
$document->addScriptDeclaration("var publicationsAccessModeUrl = '" . $url."'"); |
168 | 169 |
?> |
169 | 170 |
<div class="frame"> </div> |
... | ... | |
175 | 176 |
<img class="loader " src="./components/com_openaire/images/loader.gif" /> |
176 | 177 |
</div> |
177 | 178 |
<?php |
178 |
// $url =$this -> chartUrl.'chart.php?com=query&persistent=false&data={"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-title", "values": ["'.$this -> project -> title.'"], "to": "-1"}, {"name": "type", "values": ["publication"], "to": "-1"}], "having": [], "title": "", "subtitle": "", "xaxistitle": "' . JText :: _('REPOSITORIES') . '", "order": "d"}&w=90%'; |
|
179 |
$url =$this -> chartUrl.'chart.php?com=query&persistent=false&data={"query":"projPubsRepos","projTitle":"'.$this -> projectId.'","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-title", "values": ["'.$this -> project -> title.'"], "to": "-1"}, {"name": "type", "values": ["publication"], "to": "-1"}], "having": [], "title": "", "subtitle": "", "xaxistitle": "' . JText :: _('REPOSITORIES') . '", "order": "d"}&w=90%';
|
|
179 |
|
|
180 |
$url = $this -> chartUrl.'chart.php?com=query&persistent=false&data='.urlencode('{"query":"projPubsRepos","projTitle":"'.$this -> projectId.'", "table": "result", "fields": [{"fld": "number", "agg": "count", "type": "column", "yaxis":1, "c":false}], "xaxis":{"name": "result_classifications-type", "agg": "avg"}, "group": "", "color": "", "type": "chart", "size":30, "sort": "xaxis", "xStyle":{"r": "-", "s": "-", "l": "-", "ft": "-", "wt": "-"}, "yaxisheaders": [""], "fieldsheaders": ["'.JText :: _('Publications').'"], "in": [], "filters": [{"name": "result_datasources-datasource-name", "values": [" "], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}');
|
|
180 | 181 |
|
181 | 182 |
$document->addScriptDeclaration("var publicationsInRepositoriesUrl = '" . $url."'"); |
182 | 183 |
?> |
Also available in: Unified diff
change the stats url for projects- fixing bug with & in title