diff --git a/module/VuFind/src/VuFind/Search/Base/Params.php b/module/VuFind/src/VuFind/Search/Base/Params.php index fd4e97d80a67a0d757f133c490d927252845c2d7..948915f4e3f55661a5a94be93315c1476a17091c 100644 --- a/module/VuFind/src/VuFind/Search/Base/Params.php +++ b/module/VuFind/src/VuFind/Search/Base/Params.php @@ -1043,7 +1043,8 @@ class Params // Loop through all the current filter fields foreach ($this->filterList as $field => $values) { // and each value currently used for that field - $translate = in_array($field, $this->getOptions()->getTranslatedFacets()); + $translate + = in_array($field, $this->getOptions()->getTranslatedFacets()); foreach ($values as $value) { // Add to the list unless it's in the list of fields to skip: if (!isset($skipList[$field]) diff --git a/module/VuFind/src/VuFind/Search/Solr/Results.php b/module/VuFind/src/VuFind/Search/Solr/Results.php index ea92c9b6368db593793ad8affcfa5d8a21a5d9e9..ab4ad29e2edb370ce41cf218b29afffb9f69d582 100644 --- a/module/VuFind/src/VuFind/Search/Solr/Results.php +++ b/module/VuFind/src/VuFind/Search/Solr/Results.php @@ -423,7 +423,8 @@ class Results extends BaseResults // Build our array of values for this field $list[$field]['list'] = array(); // Should we translate values for the current facet? - $translate = in_array($field, $this->getOptions()->getTranslatedFacets()); + $translate + = in_array($field, $this->getOptions()->getTranslatedFacets()); // Loop through values: foreach ($data as $facet) { // Initialize the array of data about the current facet: diff --git a/module/VuFind/src/VuFind/Search/Summon/Results.php b/module/VuFind/src/VuFind/Search/Summon/Results.php index 8b71d56d479c18be3d7c6e35028610c7681d26c5..2883026873d97f775d7e809f7e1d5e788c165a1d 100644 --- a/module/VuFind/src/VuFind/Search/Summon/Results.php +++ b/module/VuFind/src/VuFind/Search/Summon/Results.php @@ -212,8 +212,9 @@ class Results extends BaseResults // Is this one of the fields we want to display? If so, do work... if (isset($filter[$field])) { // Should we translate values for the current facet? - $translate - = in_array($field, $this->getOptions()->getTranslatedFacets()); + $translate = in_array( + $field, $this->getOptions()->getTranslatedFacets() + ); // Loop through all the facet values to see if any are applied. foreach ($current['counts'] as $facetIndex => $facetDetails) {