Skip to content
Snippets Groups Projects
Commit c12be5b3 authored by Claas Kazzer's avatar Claas Kazzer :speech_balloon: Committed by Mathias Maaß
Browse files

refs #23949 finc: corrects finc recommend/EbscoResults to use ul, like the rest of the facets

* Pls. verify if we need the more-link here
parent 1f80fd47
No related merge requests found
......@@ -18,30 +18,42 @@
<?php
$data = $this->recommend->getResult();
if (is_array($data['results']) && count($data['results']) > 0): ?>
<?php /* Design should follow structure of recommend - sidefacets - CK */ ?>
<div id="side-panel-ebsco" class="facet-group">
<div class="facet title" data-toggle="collapse" href="#side-collapse-ebsco">
<?= $this->transEsc('Ebsco::title_hits_databases') ?>
</div>
<div id="side-collapse-ebsco" class="collapse in">
<?php foreach ($data['results'] as $result): ?>
<div class="facet">
<span class="badge">
<?= $this->escapeHtml($result['hits']) ?>
</span>
<?= $this->externalLink(
<?php /* Design should follow structure of recommend - sidefacets - CK */
/* finc uses list design - CK */
?>
<div class="facet-group" id="side-panel-ebsco">
<h3>
<a class="title" aria-expanded="true" id="control-for-side-collapse-ebsco" data-toggle="collapse" href="#side-collapse-ebsco">
<?= $this->transEsc('Ebsco::title_hits_databases') ?> <span class="sr-only"><?=$this->transEsc('facet_select_hint') ?></span>
</a>
</h3>
<ul id="side-collapse-ebsco" class="collapse in">
<?php foreach ($data['results'] as $result): ?>
<li class="facet">
<?= $this->externalLink(
$this->escapeHtmlAttr($result['url']),
$this->truncate($this->translate('Ebsco::'.$result['database']), 90)
) ?>
</div>
<?php endforeach; ?>
<?= $this->externalLink(
$data['hits_total_url'],
$this->translate('more'),
['class' => 'facet narrow-toggle']
) ?>
</div>
<span class="badge">
<?= $this->escapeHtml($result['hits']) ?>
</span>
</li>
<?php endforeach; ?>
<li class="facet">
<?= $this->externalLink(
$data['hits_total_url'],
'<span class="text">' .
$this->translate('more') .
'&nbsp;... </span>',
['class' => 'facet narrow-toggle more-facets'],
true
)
?>
</li>
</ul>
</div>
<?php endif; ?>
<!-- finc: recommend - ebscoresults - END -->
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment