Arc-hive-omeka-theme/view/common/cross-site-search/item-set-results.phtml

29 lines
1.0 KiB
PHTML

<?php $fulltextSearch = $this->params()->fromQuery('fulltext_search'); ?>
<?php echo $this->hyperlink(
$this->translate('Advanced item set search'),
$this->url(null, ['action' => 'item-sets-advanced', 'class' => 'advanced-search'], ['query' => $this->params()->fromQuery()], true),
['class' => 'advanced-search']
); ?>
<h3 class="item-set-resutls-title"><?php echo sprintf($this->translate('Item set results for "%s"'), $fulltextSearch); ?></h3>
<?php echo $this->pagination(); ?>
<div class="item-set results">
<ul>
<?php foreach ($itemSets as $itemSet): ?>
<?php $sites = $itemSet->sites(); ?>
<li>
<span class="result-title"><?php echo $itemSet->displayTitle(); ?></span>
<ul>
<?php foreach ($sites as $site): ?>
<li><?php echo $this->hyperlink($site->title(), $itemSet->siteUrl($site->slug())); ?></li>
<?php endforeach; ?>
</ul>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php echo $this->pagination(); ?>