diff --git a/module/VuFind/src/VuFind/Search/Solr/HierarchicalFacetHelper.php b/module/VuFind/src/VuFind/Search/Solr/HierarchicalFacetHelper.php index 1e19b454d131fe0bfd74598cb93c0e3c6b910d04..29108a8ebd82a80d00cb16dc3cebd8002f0bfba6 100644 --- a/module/VuFind/src/VuFind/Search/Solr/HierarchicalFacetHelper.php +++ b/module/VuFind/src/VuFind/Search/Solr/HierarchicalFacetHelper.php @@ -61,7 +61,7 @@ class HierarchicalFacetHelper } // Avoid problems having the reference set further below unset($facetItem); - $sortFunc = function($a, $b) use ($topLevel) { + $sortFunc = function ($a, $b) use ($topLevel) { if ($a['level'] == $b['level'] && (!$topLevel || $a['level'] == 0)) { $aText = $a['displayText'] == $a['value'] ? $this->formatDisplayText($a['displayText']) @@ -82,9 +82,9 @@ class HierarchicalFacetHelper * Helper method for building hierarchical facets: * Convert facet list to a hierarchical array * - * @param string $facet Facet name - * @param array $facetList Facet list - * @param UrlHelper $urlHelper Query URL helper for building facet URLs + * @param string $facet Facet name + * @param array $facetList Facet list + * @param UrlHelper $urlHelper Query URL helper for building facet URLs * * @return array Facet hierarchy * @@ -173,9 +173,9 @@ class HierarchicalFacetHelper /** * Create an item for the hierarchical facet array * - * @param string $facet Facet name - * @param array $item Facet item received from Solr - * @param UrlQueryHelper $urlHelper UrlQueryHelper for creating facet + * @param string $facet Facet name + * @param array $item Facet item received from Solr + * @param UrlQueryHelper $urlHelper UrlQueryHelper for creating facet * url's * active children * diff --git a/themes/bootstrap3/js/facets.js b/themes/bootstrap3/js/facets.js index e43ed2b99803d1893c4e56096cf656f635fe86bb..1451eff2fcbfb4d51d16340359287e3da184f8fc 100644 --- a/themes/bootstrap3/js/facets.js +++ b/themes/bootstrap3/js/facets.js @@ -1,3 +1,4 @@ +/*global htmlEncode, path */ function buildFacetNodes(data, currentPath, allowExclude, excludeTitle, counts) { var json = [];