1 |
21841
|
thanos.pap
|
<?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 |
|
|
JView :: loadHelper('DatasourceHelper');
|
10 |
|
|
|
11 |
|
|
?>
|
12 |
35567
|
argiro.kok
|
<div class="pageController">
|
13 |
|
|
<?php if ($this -> result -> totalDatasources > OpenAireViewSearchDatasourcesRaw :: SIZE) { ?>
|
14 |
|
|
<a class="viewall" href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=searchdatasources&Itemid=' . $this -> itemId . '&keyword=' . $this -> keyword . '&noscroll=true#dtsrctab')); ?> "><?php JText :: printf('VIEW_ALL_N', $this -> result -> totalDatasources); ?></a>
|
15 |
|
|
<?php }?>
|
16 |
|
|
<h4><?php echo(JText :: _('DATASOURCES')); ?></h4>
|
17 |
|
|
</div>
|
18 |
21841
|
thanos.pap
|
|
19 |
|
|
<?php if ($this -> result == NULL) { ?>
|
20 |
|
|
<div class="error"><?php echo(JText :: _('ERROR_SEARCHING_DATASOURCES')); ?></div>
|
21 |
|
|
<?php } else if ($this -> result -> datasources == NULL) { ?>
|
22 |
|
|
<div class="box-info"><?php echo(JText :: _('NO_DATASOURCES_FOUND')); ?></div>
|
23 |
|
|
<?php } else { ?>
|
24 |
|
|
<div class="searchResults">
|
25 |
|
|
<?php foreach ($this -> result -> datasources as $datasource) {
|
26 |
|
|
echo(DatasourceHelper :: formatDatasource($datasource, $this -> itemId));
|
27 |
|
|
} ?>
|
28 |
|
|
</div>
|
29 |
|
|
<?php if ($this -> result -> totalDatasources > OpenAireViewSearchDatasourcesRaw :: SIZE) { ?>
|
30 |
|
|
<div class="pageController">
|
31 |
30864
|
yannis.str
|
<a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=searchdatasources&Itemid=' . $this -> itemId . '&keyword=' . $this -> keyword . '&noscroll=true#dtsrctab')); ?> "><?php JText :: printf('VIEW_ALL_N', $this -> result -> totalDatasources); ?></a>
|
32 |
21841
|
thanos.pap
|
</div>
|
33 |
|
|
<?php }
|
34 |
|
|
} ?>
|