Revision 39467
Added by Eri Katsari over 8 years ago
modules/uoa-joomla/trunk/joomla-3.4/com_openaire/site/views/datasource/tmpl/default.php | ||
---|---|---|
58 | 58 |
<dt><?php echo(JText :: _('TYPE')); ?></dt> |
59 | 59 |
<dd><?php echo(($this -> datasource -> type == NULL) ? '-' : $this -> datasource -> type); ?></dd> |
60 | 60 |
<dt><?php echo(JText :: _('ITEMS')); ?></dt> |
61 |
<dd><?php echo(($this -> datasource -> items == NULL) ? '-' : ($this -> datasource -> items . (($this -> datasource -> date == NULL) ? '' : (' (' . date(JText :: _('DATE_FORMAT'), $this -> datasource -> date) . ')')))); ?></dd> |
|
62 |
<dt><?php echo(JText :: _('SUBJECTS')); ?></dt> |
|
61 |
<dd><?php |
|
62 |
$data = ''; |
|
63 |
$publications = ''; |
|
64 |
if($this -> datasets !== NULL && $this -> datasets -> totalDatasets>0) |
|
65 |
$data = 'Data: <a class="viewall" href="'.JRoute :: _('index.php?option=com_openaire&view=browsedatasets&Itemid=' . $this -> itemId . '&datasource=' . $this -> datasourceId). '">'.$this -> datasets -> totalDatasets.'</a>'; |
|
66 |
if($this -> publications !== NULL && $this -> publications -> totalPublications>0) |
|
67 |
$publications = 'Publications: <a class="viewall" href="'.JRoute :: _('index.php?option=com_openaire&view=browsepublications&Itemid=' . $this -> itemId . '&datasource=' . $this -> datasourceId). '">'.$this -> publications -> totalPublications.'</a>'; |
|
68 |
echo(($data==='' &&$publications === '')?'-':(($data!=='' &&$publications !== '')?$publications.' / '.$data:$publications.''.$data)); ?></dd> |
|
69 |
|
|
70 |
<!--<dd><?php echo(($this -> datasource -> items == NULL) ? '-' : ($this -> datasource -> items . (($this -> datasource -> date == NULL) ? '' : (' (' . date(JText :: _('DATE_FORMAT'), $this -> datasource -> date) . ')')))); ?></dd>--> <!--<dt><?php echo(JText :: _('SUBJECTS')); ?></dt> |
|
63 | 71 |
<dd><?php echo(($this -> datasource -> subjects == NULL) ? '-' : $this -> datasource -> subjects); ?></dd> |
64 | 72 |
<dt><?php echo(JText :: _('LANGUAGES')); ?></dt> |
65 | 73 |
<dd><?php echo(($this -> datasource -> languages == NULL) ? '-' : $this -> datasource -> languages); ?></dd> |
66 | 74 |
<dt><?php echo(JText :: _('CONTENTS')); ?></dt> |
67 | 75 |
<dd><?php echo(($this -> datasource -> contents == NULL) ? '-' : $this -> datasource -> contents); ?></dd> |
68 | 76 |
<dt><?php echo(JText :: _('POLICIES')); ?></dt> |
69 |
<dd><?php echo(($this -> datasource -> policies == NULL) ? '-' : $this -> datasource -> policies); ?></dd> |
|
77 |
<dd><?php echo(($this -> datasource -> policies == NULL) ? '-' : $this -> datasource -> policies); ?></dd>-->
|
|
70 | 78 |
<dt><?php echo(JText :: _('COMPATIBILITY')); ?></dt> |
71 | 79 |
<dd><?php echo(($this -> datasource -> compatibility == NULL) ? '-' : $this -> datasource -> compatibility); ?></dd> |
72 | 80 |
<dt><?php echo(JText :: _('OAI_PMH')); ?></dt> |
... | ... | |
150 | 158 |
<div class="frame"> </div> |
151 | 159 |
<div class="ajaxframe"> </div> |
152 | 160 |
</div> |
161 |
|
|
162 |
<div id="publicationsPerFunder"> |
|
163 |
<h3><?php echo(JText :: _('PUBLICATIONS PER FUNDER')); ?></h3> |
|
164 |
|
|
165 |
<div class="loading"> |
|
166 |
<?php echo(JText :: _('PLEASE_WAIT_CHART_IS_LOADING_')); ?> |
|
167 |
<img class="loader " src="./components/com_openaire/images/loader.gif" /> |
|
168 |
</div> |
|
169 |
|
|
170 |
<?php |
|
171 |
$url = $this -> projectStatisticsChartUrl.'chart.php?com=query&persistent=false&data='.urlencode('{"query":"dtsrcPubsFund","dtsrcName":"'.$this -> datasourceId.'", "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": ["'.$sanitized.'"], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}'); |
|
172 |
$document->addScriptDeclaration("var publicationsPerFunderUrl = '" . $url . "'"); |
|
173 |
?> |
|
174 |
<div class="frame"> </div> |
|
175 |
<div class="ajaxframe"> </div> |
|
176 |
|
|
177 |
</div> |
|
178 |
|
|
179 |
<div id="publicationsPerProject"> |
|
180 |
<h3><?php echo(JText :: _('TOP PROJECTS IN PUBLICATIONS')); ?></h3> |
|
181 |
<div class="loading"> |
|
182 |
<?php echo(JText :: _('PLEASE_WAIT_CHART_IS_LOADING_')); ?> |
|
183 |
<img class="loader " src="./components/com_openaire/images/loader.gif" /> |
|
184 |
</div> |
|
185 |
<?php |
|
186 |
|
|
187 |
$url = $this -> projectStatisticsChartUrl.'chart.php?com=query&persistent=false&data='.urlencode('{"query":"dtsrcProjPubs","dtsrcName":"'.$this -> datasourceId.'", "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": ["'.$sanitized.'"], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}'); |
|
188 |
$document->addScriptDeclaration("var publicationsPerProjectUrl = '" . $url . "'"); |
|
189 |
?> |
|
190 |
<div class="frame"> </div> |
|
191 |
<div class="ajaxframe"> </div> |
|
192 |
|
|
193 |
</div> |
|
194 |
<div id="dataPerProject"> |
|
195 |
<h3><?php echo(JText :: _('TOP PROJECTS IN DATA')); ?></h3> |
|
196 |
<div class="loading"> |
|
197 |
<?php echo(JText :: _('PLEASE_WAIT_CHART_IS_LOADING_')); ?> |
|
198 |
<img class="loader " src="./components/com_openaire/images/loader.gif" /> |
|
199 |
</div> |
|
200 |
<?php |
|
201 |
|
|
202 |
$url = $this -> projectStatisticsChartUrl.'chart.php?com=query&persistent=false&data='.urlencode('{"query":"dtsrcProjData","dtsrcName":"'.$this -> datasourceId.'", "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": ["'.$sanitized.'"], "to": "-1"}], "having": [], "incfilters": [], "inchaving": [], "title": "", "subtitle": "", "xaxistitle": ""}'); |
|
203 |
|
|
204 |
$document->addScriptDeclaration("var dataPerProjectUrl = '" . $url . "'"); |
|
205 |
?> |
|
206 |
<div class="frame"> </div> |
|
207 |
<div class="ajaxframe"> </div> |
|
208 |
|
|
209 |
</div> |
|
210 |
|
|
211 |
|
|
212 |
|
|
213 |
|
|
153 | 214 |
<div id="publicationsPerDocumentType"> |
154 |
<h3><?php echo(JText :: _('PUBLICATIONS_PER_DOCUMENT_TYPE')); ?></h3>
|
|
215 |
<h3><?php echo(JText :: _('PUBLICATIONS PER DOCUMENT TYPE')); ?></h3>
|
|
155 | 216 |
<div class="loading"> |
156 | 217 |
<?php echo(JText :: _('PLEASE_WAIT_CHART_IS_LOADING_')); ?> |
157 | 218 |
<img class="loader " src="./components/com_openaire/images/loader.gif" /> |
Also available in: Unified diff
Eri:added new charts for datasource pages