@eeacms/volto-eea-website-policy 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/package.json +1 -1
- package/src/index.js +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [4.0.
|
|
7
|
+
### [4.0.3](https://github.com/eea/volto-eea-website-policy/compare/4.0.2...4.0.3) - 16 July 2026
|
|
8
8
|
|
|
9
9
|
#### :bug: Bug Fixes
|
|
10
10
|
|
|
@@ -15,10 +15,18 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
15
15
|
|
|
16
16
|
#### :hammer_and_wrench: Others
|
|
17
17
|
|
|
18
|
+
- Remove publication type configuration [dobri1408 - [`318a0df`](https://github.com/eea/volto-eea-website-policy/commit/318a0dfe04b313b8cbc17e91ec2cf87e4c8850b0)]
|
|
19
|
+
- Remove @eeacms/volto-globalsearch from package.json [dobri1408 - [`0e0f88a`](https://github.com/eea/volto-eea-website-policy/commit/0e0f88a7083b7de338d900ed4de00725fec4ac99)]
|
|
20
|
+
- Remove publication type settings from index.js [dobri1408 - [`bc2c6a0`](https://github.com/eea/volto-eea-website-policy/commit/bc2c6a022691b799c9b8cd81a2d55426ce706182)]
|
|
18
21
|
- Fix syntax error in package.json dependencies [dobri1408 - [`e5f6b15`](https://github.com/eea/volto-eea-website-policy/commit/e5f6b150a86cd66dad5c00c29720a76ac6b0db97)]
|
|
19
22
|
- Add volto-globalsearch to package.json [dobri1408 - [`f8ff6bd`](https://github.com/eea/volto-eea-website-policy/commit/f8ff6bd3f2e1f0c10cfa7137f8bbb82eb515154d)]
|
|
20
23
|
- publication facets [Dobricean Ioan Dorian - [`2f233d7`](https://github.com/eea/volto-eea-website-policy/commit/2f233d71f83bdb6f74fd73624a27968dc670bb50)]
|
|
21
24
|
- test: pin Chromium version 149 to work with Cypress [valentinab25 - [`362df3b`](https://github.com/eea/volto-eea-website-policy/commit/362df3b7f2ba297193f58d28b8d3aeaa375a3668)]
|
|
25
|
+
### [4.0.2](https://github.com/eea/volto-eea-website-policy/compare/4.0.1...4.0.2) - 16 July 2026
|
|
26
|
+
|
|
27
|
+
#### :hammer_and_wrench: Others
|
|
28
|
+
|
|
29
|
+
- Add publication facet [dobri1408 - [`978fc92`](https://github.com/eea/volto-eea-website-policy/commit/978fc922cbc4475cc98c2c2c9cfb5c25d29c8477)]
|
|
22
30
|
### [4.0.1](https://github.com/eea/volto-eea-website-policy/compare/4.0.0...4.0.1) - 9 April 2026
|
|
23
31
|
|
|
24
32
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2,37 +2,6 @@ import { appendGroup, getAsyncData } from './helpers';
|
|
|
2
2
|
import { FrequencyOfDissemination } from '@eeacms/volto-eea-website-policy/components/Widgets/FrequencyOfDissemination';
|
|
3
3
|
import ErrorView from '@eeacms/volto-eea-website-policy/components/ErrorView/ErrorView';
|
|
4
4
|
|
|
5
|
-
const publicationTypeValues = [
|
|
6
|
-
'briefing',
|
|
7
|
-
'report',
|
|
8
|
-
'corporate-report',
|
|
9
|
-
'joint-report',
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
const publicationTypeFacet = {
|
|
13
|
-
field: 'publication_type.keyword',
|
|
14
|
-
factory: 'MultiTermFacet',
|
|
15
|
-
label: 'Publication type',
|
|
16
|
-
showInFacetsList: true,
|
|
17
|
-
filterType: 'any',
|
|
18
|
-
isFilterable: false,
|
|
19
|
-
isMulti: true,
|
|
20
|
-
show: 10000,
|
|
21
|
-
whitelist: publicationTypeValues,
|
|
22
|
-
facetValues: publicationTypeValues,
|
|
23
|
-
sortOn: 'custom',
|
|
24
|
-
sortOrder: 'ascending',
|
|
25
|
-
showAllOptions: true,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const publicationTypeVocabulary = {
|
|
29
|
-
briefing: 'Briefing',
|
|
30
|
-
report: 'Report',
|
|
31
|
-
'corporate-report': 'Corporate report',
|
|
32
|
-
'joint-report': 'Joint report',
|
|
33
|
-
'technical-paper': 'Technical paper',
|
|
34
|
-
};
|
|
35
|
-
|
|
36
5
|
const restrictedBlocks = [
|
|
37
6
|
'imagecards',
|
|
38
7
|
// TODO: use what is needed from volto-datablocks after clean-up
|
|
@@ -201,22 +170,6 @@ const applyConfig = (config) => {
|
|
|
201
170
|
];
|
|
202
171
|
|
|
203
172
|
// Done
|
|
204
|
-
const { searchui } = config.settings.searchlib;
|
|
205
|
-
|
|
206
|
-
['globalsearch', 'globalsearchbase'].forEach((appName) => {
|
|
207
|
-
const searchConfig = searchui[appName];
|
|
208
|
-
|
|
209
|
-
if (
|
|
210
|
-
!searchConfig.facets.some(
|
|
211
|
-
(facet) => facet.field === publicationTypeFacet.field,
|
|
212
|
-
)
|
|
213
|
-
) {
|
|
214
|
-
searchConfig.facets.push(publicationTypeFacet);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
searchConfig.vocab[publicationTypeFacet.field] = publicationTypeVocabulary;
|
|
218
|
-
});
|
|
219
|
-
|
|
220
173
|
return config;
|
|
221
174
|
};
|
|
222
175
|
|