From a169491520b55020caaab21d90a9dfddb3430812 Mon Sep 17 00:00:00 2001 From: Heike Reinken <reinken@ub.uni-leipzig.de> Date: Mon, 8 Jun 2020 13:58:20 +0200 Subject: [PATCH] refs #17607 [master] <h4> becomes <h2> * On the sidebar: <h4> becomes <h2> --- .../templates/Recommend/ExpandFacets.phtml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 themes/finc/templates/Recommend/ExpandFacets.phtml diff --git a/themes/finc/templates/Recommend/ExpandFacets.phtml b/themes/finc/templates/Recommend/ExpandFacets.phtml new file mode 100644 index 00000000000..b25b7223f8f --- /dev/null +++ b/themes/finc/templates/Recommend/ExpandFacets.phtml @@ -0,0 +1,21 @@ +<!-- finc - templates - Recommend - ExpandFacets --> +<?php /* copied from bootstrap3 - h4 becomes h2 - #17607 - HR */?> + +<?php + $expandFacetSet = $this->recommend->getExpandedSet(); + // Get empty search object to use as basis for parameter generation below: + $blankResults = $this->recommend->getEmptyResults(); +?> +<?php if ($expandFacetSet): ?> + <div class="sidegroup"> + <?php foreach ($expandFacetSet as $title => $cluster): ?> + <h2><?=$this->transEsc($cluster['label']) ?></h2> + <div class="list-group"> + <?php foreach ($cluster['list'] as $thisFacet): ?> + <a class="list-group-item" href="<?=$this->url('search-results') . $blankResults->getUrlQuery()->addFacet($title, $thisFacet['value'])?>"><?=$this->escapeHtml($thisFacet['displayText'])?></a> + <?php endforeach; ?> + </div> + <?php endforeach; ?> + </div> +<?php endif; ?> +<!-- finc - templates - Recommend - ExpandFacets - END --> -- GitLab