Skip to content

Commit

Permalink
Merge pull request #314 from eea/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
iugin authored Jul 22, 2024
2 parents 350f80b + c4d0ea1 commit 1878484
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [0.2.56](https://github.com/eea/volto-cca-policy/compare/0.2.55...0.2.56) - 22 July 2024

### [0.2.55](https://github.com/eea/volto-cca-policy/compare/0.2.54...0.2.55) - 18 July 2024

#### :hammer_and_wrench: Others
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-cca-policy",
"version": "0.2.55",
"version": "0.2.56",
"description": "@eeacms/volto-cca-policy: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
13 changes: 7 additions & 6 deletions src/search/mission_all/facets-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import {
cca_adaptation_sectors,
} from '../common';

let globalFacets = globalSearchBaseConfig.facets;
const blacklist = ['IncludeArchived', 'issued.date'];
let globalFacets = globalSearchBaseConfig.facets.filter(
(f) => !blacklist.includes(f.field),
);

for (let i = 0; i < globalFacets.length; i++) {
if (globalFacets[i]['field'] === 'IncludeArchived') {
globalFacets[i]['showInSecondaryFacetsList'] = false;
}
if (globalFacets[i]['field'] === 'issued.date') {
globalFacets[i]['showInSecondaryFacetsList'] = false;
if (globalFacets[i]['field'] === 'objectProvides') {
globalFacets[i]['label'] = 'Type of item';
}
}

Expand Down

0 comments on commit 1878484

Please sign in to comment.