@eeacms/volto-globalsearch 3.0.0 → 4.0.1

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.
Files changed (39) hide show
  1. package/.eslintrc.js +6 -6
  2. package/CHANGELOG.md +39 -1
  3. package/DEVELOP.md +19 -17
  4. package/README.md +33 -19
  5. package/docker-compose.yml +1 -1
  6. package/jest-addon.config.js +11 -4
  7. package/locales/bg/LC_MESSAGES/volto.po +7 -7
  8. package/locales/cs/LC_MESSAGES/volto.po +7 -7
  9. package/locales/de/LC_MESSAGES/volto.po +7 -7
  10. package/locales/en/LC_MESSAGES/volto.po +7 -7
  11. package/locales/es/LC_MESSAGES/volto.po +7 -7
  12. package/locales/et/LC_MESSAGES/volto.po +7 -7
  13. package/locales/fi/LC_MESSAGES/volto.po +7 -7
  14. package/locales/fr/LC_MESSAGES/volto.po +7 -7
  15. package/locales/ga/LC_MESSAGES/volto.po +7 -7
  16. package/locales/hr/LC_MESSAGES/volto.po +7 -7
  17. package/locales/hu/LC_MESSAGES/volto.po +7 -7
  18. package/locales/it/LC_MESSAGES/volto.po +7 -7
  19. package/locales/lt/LC_MESSAGES/volto.po +7 -7
  20. package/locales/nl/LC_MESSAGES/volto.po +7 -7
  21. package/locales/pl/LC_MESSAGES/volto.po +7 -7
  22. package/locales/pt/LC_MESSAGES/volto.po +7 -7
  23. package/locales/ro/LC_MESSAGES/volto.po +7 -7
  24. package/locales/sl/LC_MESSAGES/volto.po +7 -7
  25. package/locales/volto.pot +9 -9
  26. package/package.json +2 -1
  27. package/src/components/MasonryLandingPage.jsx +4 -4
  28. package/src/components/MasonryLandingPage.test.jsx +1 -1
  29. package/src/config/clusters.js +27 -24
  30. package/src/config/clusters.test.js +108 -34
  31. package/src/config/facets.js +1 -1
  32. package/src/config/filters.js +1 -1
  33. package/src/config/filters.test.js +1 -1
  34. package/src/config/global-search-base-config.js +1 -1
  35. package/src/config/index.test.js +1 -1
  36. package/src/config/query.test.js +1 -1
  37. package/src/config/vocabulary.test.js +1 -1
  38. package/src/index.test.js +1 -1
  39. package/src/utils.test.js +1 -1
package/.eslintrc.js CHANGED
@@ -16,16 +16,16 @@ if (configFile) {
16
16
  voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
17
17
  }
18
18
 
19
- const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
20
- const reg = new AddonConfigurationRegistry(projectRootPath);
19
+ const { AddonRegistry } = require('@plone/registry/addon-registry');
20
+ const { registry } = AddonRegistry.init(projectRootPath);
21
21
 
22
22
  // Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
23
- const addonAliases = Object.keys(reg.packages).map((o) => [
23
+ const addonAliases = Object.keys(registry.packages).map((o) => [
24
24
  o,
25
- reg.packages[o].modulePath,
25
+ registry.packages[o].modulePath,
26
26
  ]);
27
27
 
28
- const addonExtenders = reg.getEslintExtenders().map((m) => require(m));
28
+ const addonExtenders = registry.getEslintExtenders().map((m) => require(m));
29
29
 
30
30
  const defaultConfig = {
31
31
  extends: `${voltoPath}/.eslintrc`,
@@ -34,7 +34,7 @@ const defaultConfig = {
34
34
  alias: {
35
35
  map: [
36
36
  ['@plone/volto', '@plone/volto/src'],
37
- ['@plone/volto-slate', '@plone/volto/packages/volto-slate/src'],
37
+ ['@plone/volto-slate', '@plone/volto-slate/src'],
38
38
  ...addonAliases,
39
39
  ['@package', `${__dirname}/src`],
40
40
  ['@root', `${__dirname}/src`],
package/CHANGELOG.md CHANGED
@@ -4,7 +4,27 @@ 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
- ### [3.0.0](https://github.com/eea/volto-globalsearch/compare/2.1.2...3.0.0) - 26 January 2026
7
+ ### [4.0.1](https://github.com/eea/volto-globalsearch/compare/4.0.0...4.0.1) - 8 April 2026
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: make test [Alin V. (Claudiu) - [`f0ad1b5`](https://github.com/eea/volto-globalsearch/commit/f0ad1b5627b5a1f015c8489154abed639e2b1020)]
12
+
13
+ ## [4.0.0](https://github.com/eea/volto-globalsearch/compare/3.0.0...4.0.0) - 25 March 2026
14
+
15
+ #### :rocket: New Features
16
+
17
+ - feat: Volto 18 support - refs #287700 [Alin Voinea - [`8374dee`](https://github.com/eea/volto-globalsearch/commit/8374deef42598555b7b83df4446a1431ca1aa0af)]
18
+
19
+ #### :house: Internal changes
20
+
21
+ - chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`3fb8191`](https://github.com/eea/volto-globalsearch/commit/3fb8191bd7408b11799a06026a0bc2dedef35169)]
22
+ - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`08e3e0f`](https://github.com/eea/volto-globalsearch/commit/08e3e0ff73b2b00d1d70fb105157691d2ab08451)]
23
+
24
+ #### :hammer_and_wrench: Others
25
+
26
+ - tests: Fix Sonar Qube tags - refs #297339 [Alin Voinea - [`e08a2b9`](https://github.com/eea/volto-globalsearch/commit/e08a2b96d9871526d0483e9ef643f7bdd3555bd6)]
27
+ ## [3.0.0](https://github.com/eea/volto-globalsearch/compare/2.1.2...3.0.0) - 26 January 2026
8
28
 
9
29
  #### :house: Internal changes
10
30
 
@@ -31,6 +51,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
31
51
  #### :hammer_and_wrench: Others
32
52
 
33
53
  - Update package.json [Krisztina Elekes - [`37141a6`](https://github.com/eea/volto-globalsearch/commit/37141a6d38c96f87ce0c6b443b476739b728797f)]
54
+ - Add Sonarqube tag using fise-frontend addons list [EEA Jenkins - [`661bae3`](https://github.com/eea/volto-globalsearch/commit/661bae385546a308e2b44389ec734be80a6fc916)]
34
55
  ### [2.0.9](https://github.com/eea/volto-globalsearch/compare/2.0.8...2.0.9) - 6 March 2025
35
56
 
36
57
  #### :hammer_and_wrench: Others
@@ -76,6 +97,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
76
97
 
77
98
  - added logo for copernicus insitu [Zoltan Szabo - [`b6b00ea`](https://github.com/eea/volto-globalsearch/commit/b6b00eacaf5fd798426fd5cf0af50858f8be79ef)]
78
99
  - added copernicus in situ [Zoltan Szabo - [`54e3657`](https://github.com/eea/volto-globalsearch/commit/54e3657c28f8aa5a839952e83f9fbdb238e99ff0)]
100
+ - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`173f015`](https://github.com/eea/volto-globalsearch/commit/173f015579c8e334c853238d9fbf39261ced1cb4)]
79
101
  ### [2.0.2](https://github.com/eea/volto-globalsearch/compare/2.0.1...2.0.2) - 16 December 2024
80
102
 
81
103
  #### :house: Internal changes
@@ -84,6 +106,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
84
106
 
85
107
  #### :hammer_and_wrench: Others
86
108
 
109
+ - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`5c6aa68`](https://github.com/eea/volto-globalsearch/commit/5c6aa68b0677dca98776114e69275ade89dcdf25)]
87
110
  ### [2.0.1](https://github.com/eea/volto-globalsearch/compare/2.0.0...2.0.1) - 14 October 2024
88
111
 
89
112
  ## [2.0.0](https://github.com/eea/volto-globalsearch/compare/1.1.0...2.0.0) - 22 April 2024
@@ -95,6 +118,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
95
118
 
96
119
  #### :hammer_and_wrench: Others
97
120
 
121
+ - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`d37a6cb`](https://github.com/eea/volto-globalsearch/commit/d37a6cbbe18e53abed600c082d7d23f8907fd7d3)]
98
122
  ### [1.1.0](https://github.com/eea/volto-globalsearch/compare/1.0.22...1.1.0) - 16 January 2024
99
123
 
100
124
  #### :hammer_and_wrench: Others
@@ -108,6 +132,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
108
132
 
109
133
  #### :house: Internal changes
110
134
 
135
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`af030b5`](https://github.com/eea/volto-globalsearch/commit/af030b5cc8780353dd67f30857fd20edf746d5a0)]
111
136
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`866609d`](https://github.com/eea/volto-globalsearch/commit/866609d540bd0efe4bab088305bb2127105d8df7)]
112
137
  - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`e09f5e2`](https://github.com/eea/volto-globalsearch/commit/e09f5e2c1161b4b867c04eb1c0421274bd6c7110)]
113
138
 
@@ -115,6 +140,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
115
140
 
116
141
  - removed try/catch [Zoltan Szabo - [`86cec5d`](https://github.com/eea/volto-globalsearch/commit/86cec5d49d06d41541dc6d42464e9b95769da745)]
117
142
  - avoid async promise executor functions [Zoltan Szabo - [`61012e3`](https://github.com/eea/volto-globalsearch/commit/61012e331776fadaa9eafe9f7667b18d08b2351a)]
143
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`693b9c7`](https://github.com/eea/volto-globalsearch/commit/693b9c7f8c9d96533f04f5ae165e7e63b753222d)]
144
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`66db063`](https://github.com/eea/volto-globalsearch/commit/66db0635134d95f57c913c400902096980f2b66b)]
145
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4b8920b`](https://github.com/eea/volto-globalsearch/commit/4b8920b5456e5a7f0ef355a0aa208267b50d395f)]
146
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`5ea9790`](https://github.com/eea/volto-globalsearch/commit/5ea97905931323146c33be941646fab45643b18b)]
147
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`1b94a8c`](https://github.com/eea/volto-globalsearch/commit/1b94a8c137d6c4961f811bbc4596da93d2b588bd)]
118
148
  ### [1.0.21](https://github.com/eea/volto-globalsearch/compare/1.0.20...1.0.21) - 29 September 2023
119
149
 
120
150
  #### :house: Internal changes
@@ -177,11 +207,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
177
207
 
178
208
  #### :house: Internal changes
179
209
 
210
+ - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`ae6efed`](https://github.com/eea/volto-globalsearch/commit/ae6efed386f8fd053972a388a3f8714ff36cf575)]
180
211
 
181
212
  #### :hammer_and_wrench: Others
182
213
 
183
214
  - added missing logo [Zoltan Szabo - [`94684b9`](https://github.com/eea/volto-globalsearch/commit/94684b979698c47de353ecc2a9014a8f70d7ecc1)]
184
215
  - updated frontend with configuration for 'Climate Advisory Board' [Zoltan Szabo - [`28cf22c`](https://github.com/eea/volto-globalsearch/commit/28cf22c93237226c3957223b497a33ab3cb73623)]
216
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`b655d51`](https://github.com/eea/volto-globalsearch/commit/b655d51fa3631ae42c89eb85bdcc850f70d9c72c)]
185
217
  ### [1.0.15](https://github.com/eea/volto-globalsearch/compare/1.0.14...1.0.15) - 14 March 2023
186
218
 
187
219
  #### :hammer_and_wrench: Others
@@ -201,6 +233,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
201
233
  #### :hammer_and_wrench: Others
202
234
 
203
235
  - set the middleware proxy address for globalsearchbase [Zoltan Szabo - [`d0a0802`](https://github.com/eea/volto-globalsearch/commit/d0a08026fa73ce8fd15b666c922e7db71104a5d1)]
236
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b710a4f`](https://github.com/eea/volto-globalsearch/commit/b710a4f73f61e164ecf502a83e7f07d0daf578b3)]
204
237
  ### [1.0.12](https://github.com/eea/volto-globalsearch/compare/1.0.11...1.0.12) - 1 March 2023
205
238
 
206
239
  #### :hammer_and_wrench: Others
@@ -268,12 +301,14 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
268
301
  - Make last 2 years default [Tiberiu Ichim - [`ff765e2`](https://github.com/eea/volto-globalsearch/commit/ff765e24a1d93c60f091aeffa7c3156d8fb98e49)]
269
302
  - Add compact listing, placeholder for now [Tiberiu Ichim - [`3f6104f`](https://github.com/eea/volto-globalsearch/commit/3f6104fb1725f7e3c22736a30629f64e4882242a)]
270
303
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`8120264`](https://github.com/eea/volto-globalsearch/commit/812026495c31b272e6ae6415642cf1a6b2f783cf)]
304
+ - yarn 3 [Alin Voinea - [`b61ad50`](https://github.com/eea/volto-globalsearch/commit/b61ad5075a79bebfce1044a6cd4978c92d98fbdc)]
271
305
  ### [1.0.1](https://github.com/eea/volto-globalsearch/compare/1.0.0...1.0.1) - 16 November 2022
272
306
 
273
307
  #### :hammer_and_wrench: Others
274
308
 
275
309
  - Fix eslint [Tiberiu Ichim - [`cf2886b`](https://github.com/eea/volto-globalsearch/commit/cf2886b412013f9427cf5d39cdf00004bdd9f80b)]
276
310
  - test(estlint): Fix .project.eslintrc.js [Alin Voinea - [`40c08d2`](https://github.com/eea/volto-globalsearch/commit/40c08d2d4eda81ce306225a81f09e0bcfe6794eb)]
311
+ - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`af6e020`](https://github.com/eea/volto-globalsearch/commit/af6e020794798c1f69fee8c08bdf71fc3992230a)]
277
312
  ## [1.0.0](https://github.com/eea/volto-globalsearch/compare/0.1.7...1.0.0) - 28 October 2022
278
313
 
279
314
  #### :nail_care: Enhancements
@@ -292,6 +327,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
292
327
  #### :hammer_and_wrench: Others
293
328
 
294
329
  - Fix dependencies [kreafox - [`50ad307`](https://github.com/eea/volto-globalsearch/commit/50ad307d64140c43df9dded27c0b532923885764)]
330
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`c2d848e`](https://github.com/eea/volto-globalsearch/commit/c2d848e1efa456f53d883c50769882101e1ce19f)]
295
331
  ### [0.1.5](https://github.com/eea/volto-globalsearch/compare/0.1.4...0.1.5) - 28 July 2022
296
332
 
297
333
  #### :hammer_and_wrench: Others
@@ -304,6 +340,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
304
340
 
305
341
  #### :hammer_and_wrench: Others
306
342
 
343
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`5dce07b`](https://github.com/eea/volto-globalsearch/commit/5dce07ba7d1e82776a426e9746d5dab1b0acf738)]
307
344
  ### [0.1.3](https://github.com/eea/volto-globalsearch/compare/0.1.2...0.1.3) - 10 June 2022
308
345
 
309
346
  ### [0.1.2](https://github.com/eea/volto-globalsearch/compare/0.1.1...0.1.2) - 10 June 2022
@@ -326,6 +363,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
326
363
  - ignore eslint for *.json files [Zoltan Szabo - [`e18919e`](https://github.com/eea/volto-globalsearch/commit/e18919e1255818c5cf33bf769cca078d75ca3422)]
327
364
  - formatting [Zoltan Szabo - [`18282ed`](https://github.com/eea/volto-globalsearch/commit/18282ed159865bcbc50e2fd17417cf6d90d3e593)]
328
365
  - updated dependencies [Zoltan Szabo - [`cfcf46e`](https://github.com/eea/volto-globalsearch/commit/cfcf46ee33b23bb31f76955c12a857411f042daf)]
366
+ - [JENKINSFILE] fix after bootstrap [valentinab25 - [`61c8c46`](https://github.com/eea/volto-globalsearch/commit/61c8c46891edf3b52768f12cf7505c034ef7bb89)]
329
367
  ### 0.0.1 - 19 May 2022
330
368
 
331
369
  #### :hammer_and_wrench: Others
package/DEVELOP.md CHANGED
@@ -26,21 +26,20 @@
26
26
 
27
27
  ### Or add @eeacms/volto-globalsearch to your Volto project
28
28
 
29
- Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
29
+ Before starting make sure your development environment is properly set. See the official Plone documentation for [creating a project with Cookieplone](https://6.docs.plone.org/install/create-project-cookieplone.html) and [installing an add-on in development mode in Volto 18 and 19](https://6.docs.plone.org/volto/development/add-ons/install-an-add-on-dev-18.html).
30
30
 
31
- 1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`
31
+ For new Volto 18+ projects, use Cookieplone. It includes `mrs-developer` by default.
32
32
 
33
- npm install -g yo @plone/generator-volto mrs-developer
33
+ 1. Create a new Volto project with Cookieplone
34
34
 
35
- 1. Create new volto app
36
-
37
- yo @plone/volto my-volto-project --addon @eeacms/volto-globalsearch --skip-install
38
- cd my-volto-project
35
+ uvx cookieplone project
36
+ cd project-title
39
37
 
40
38
  1. Add the following to `mrs.developer.json`:
41
39
 
42
40
  {
43
41
  "volto-globalsearch": {
42
+ "output": "packages",
44
43
  "url": "https://github.com/eea/volto-globalsearch.git",
45
44
  "package": "@eeacms/volto-globalsearch",
46
45
  "branch": "develop",
@@ -48,28 +47,31 @@ Before starting make sure your development environment is properly set. See [Vol
48
47
  }
49
48
  }
50
49
 
51
- 1. Install
50
+ 1. Add `@eeacms/volto-globalsearch` to the `addons` key in your project `volto.config.js`
51
+
52
+ 1. Install or refresh the project setup
52
53
 
53
- make develop
54
- yarn
54
+ make install
55
55
 
56
- 1. Start backend
56
+ 1. Start backend in one terminal
57
57
 
58
- docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend
58
+ make backend-start
59
59
 
60
- ...wait for backend to setup and start - `Ready to handle requests`:
60
+ ...wait for backend to setup and start, ending with `Ready to handle requests`
61
61
 
62
62
  ...you can also check http://localhost:8080/Plone
63
63
 
64
- 1. Start frontend
64
+ 1. Start frontend in a second terminal
65
65
 
66
- yarn start
66
+ make frontend-start
67
67
 
68
68
  1. Go to http://localhost:3000
69
69
 
70
70
  1. Happy hacking!
71
71
 
72
- cd src/addons/volto-globalsearch/
72
+ cd packages/volto-globalsearch
73
+
74
+ For legacy Volto 17 projects, keep using the yarn-based workflow from the Volto 17 documentation.
73
75
 
74
76
  ## Cypress
75
77
 
@@ -81,7 +83,7 @@ project where you added `volto-globalsearch` to `mrs.developer.json`
81
83
  Go to:
82
84
 
83
85
  ```BASH
84
- cd src/addons/volto-globalsearch/
86
+ cd packages/volto-globalsearch/
85
87
  ```
86
88
 
87
89
  Start:
package/README.md CHANGED
@@ -3,16 +3,16 @@
3
3
  [![Releases](https://img.shields.io/github/v/release/eea/volto-globalsearch)](https://github.com/eea/volto-globalsearch/releases)
4
4
 
5
5
  [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-globalsearch%2Fmaster&subject=master)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-globalsearch/job/master/display/redirect)
6
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch-master&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-master)
7
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch-master&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-master)
8
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch-master&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-master)
9
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch-master&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-master)
6
+ [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch)
7
+ [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch)
8
+ [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch)
9
+ [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch)
10
10
 
11
11
  [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-globalsearch%2Fdevelop&subject=develop)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-globalsearch/job/develop/display/redirect)
12
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch-develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-develop)
13
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch-develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-develop)
14
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-develop)
15
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-develop)
12
+ [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch&branch=develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch&branch=develop)
13
+ [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch&branch=develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch&branch=develop)
14
+ [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch&branch=develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch&branch=develop)
15
+ [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-globalsearch&branch=develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch&branch=develop)
16
16
 
17
17
  EEA Elastic Search Block with NLP integration [Volto](https://github.com/plone/volto) add-on
18
18
 
@@ -35,6 +35,11 @@ EEA Elastic Search Block with NLP integration [Volto](https://github.com/plone/v
35
35
 
36
36
  Go to http://localhost:3000
37
37
 
38
+ `make start` now defaults to Volto 18. To run the same setup against Volto 17, use:
39
+
40
+ VOLTO_VERSION=17 make
41
+ VOLTO_VERSION=17 make start
42
+
38
43
  ### Add volto-globalsearch to your Volto project
39
44
 
40
45
  1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
@@ -48,30 +53,39 @@ Go to http://localhost:3000
48
53
  * If you already have a volto project, just update `package.json`:
49
54
 
50
55
  ```JSON
51
- "addons": [
52
- "@eeacms/volto-globalsearch"
53
- ],
54
-
55
56
  "dependencies": {
56
57
  "@eeacms/volto-globalsearch": "*"
57
58
  }
58
59
  ```
59
60
 
60
- * If not, create one:
61
+ and `volto.config.js`:
62
+
63
+ ```JavaScript
64
+ const addons = ['@eeacms/volto-globalsearch'];
65
+ ```
66
+
67
+ * If not, create one with Cookieplone, as recommended by the official Plone documentation for Volto 18+:
61
68
 
62
69
  ```
63
- npm install -g yo @plone/generator-volto
64
- yo @plone/volto my-volto-project --canary --addon @eeacms/volto-globalsearch
65
- cd my-volto-project
70
+ uvx cookieplone project
71
+ cd project-title
66
72
  ```
67
73
 
68
- 1. Install new add-ons and restart Volto:
74
+ 1. Install or update dependencies, then start the project:
69
75
 
70
76
  ```
71
- yarn
72
- yarn start
77
+ make install
73
78
  ```
74
79
 
80
+ For a Cookieplone project, start the backend and frontend in separate terminals:
81
+
82
+ ```
83
+ make backend-start
84
+ make frontend-start
85
+ ```
86
+
87
+ For a legacy Volto 17 project, install the package with `yarn` and restart the frontend as usual.
88
+
75
89
  1. Go to http://localhost:3000
76
90
 
77
91
  1. Happy editing!
@@ -15,7 +15,7 @@ services:
15
15
  args:
16
16
  ADDON_NAME: "${ADDON_NAME}"
17
17
  ADDON_PATH: "${ADDON_PATH}"
18
- VOLTO_VERSION: ${VOLTO_VERSION:-16}
18
+ VOLTO_VERSION: ${VOLTO_VERSION:-18-yarn}
19
19
  ports:
20
20
  - "3000:3000"
21
21
  - "3001:3001"
@@ -1,5 +1,14 @@
1
1
  require('dotenv').config({ path: __dirname + '/.env' });
2
2
 
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ const voltoSlatePath = fs.existsSync(
7
+ path.join(__dirname, '../../../node_modules/@plone/volto-slate/src'),
8
+ )
9
+ ? '<rootDir>/node_modules/@plone/volto-slate/src'
10
+ : '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src';
11
+
3
12
  module.exports = {
4
13
  testMatch: ['**/src/addons/**/?(*.)+(spec|test).[jt]s?(x)'],
5
14
  collectCoverageFrom: [
@@ -18,10 +27,8 @@ module.exports = {
18
27
  '<rootDir>/node_modules/@eeacms/volto-searchlib/src/$1',
19
28
  '@eeacms/search': '<rootDir>/node_modules/@eeacms/volto-searchlib/src',
20
29
  '@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
21
- '@plone/volto-slate$':
22
- '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
23
- '@plone/volto-slate/(.*)$':
24
- '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src/$1',
30
+ '@plone/volto-slate$': voltoSlatePath,
31
+ '@plone/volto-slate/(.*)$': `${voltoSlatePath}/$1`,
25
32
  '~/(.*)$': '<rootDir>/src/$1',
26
33
  'load-volto-addons':
27
34
  '<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
@@ -11,37 +11,37 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "Include archived content"
14
15
  #: config/facets
15
- # defaultMessage: Include archived content
16
16
  msgid "Include archived content"
17
17
  msgstr "Включете архивирано съдържание"
18
18
 
19
+ #. Default: "Language"
19
20
  #: config/facets
20
- # defaultMessage: Language
21
21
  msgid "Language"
22
22
  msgstr "език"
23
23
 
24
+ #. Default: "Newest"
24
25
  #: config/global-search-base-config
25
- # defaultMessage: Newest
26
26
  msgid "Newest"
27
27
  msgstr "Най-новите"
28
28
 
29
+ #. Default: "Oldest"
29
30
  #: config/global-search-base-config
30
- # defaultMessage: Oldest
31
31
  msgid "Oldest"
32
32
  msgstr "Най-старият"
33
33
 
34
+ #. Default: "Relevance"
34
35
  #: config/global-search-base-config
35
- # defaultMessage: Relevance
36
36
  msgid "Relevance"
37
37
  msgstr "Уместност"
38
38
 
39
+ #. Default: "Title a-z"
39
40
  #: config/global-search-base-config
40
- # defaultMessage: Title a-z
41
41
  msgid "Title a-z"
42
42
  msgstr "Заглавие a-z"
43
43
 
44
+ #. Default: "Title z-a"
44
45
  #: config/global-search-base-config
45
- # defaultMessage: Title z-a
46
46
  msgid "Title z-a"
47
47
  msgstr "Заглавие z-a"
@@ -11,37 +11,37 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "Include archived content"
14
15
  #: config/facets
15
- # defaultMessage: Include archived content
16
16
  msgid "Include archived content"
17
17
  msgstr "Zahrnout archivovaný obsah"
18
18
 
19
+ #. Default: "Language"
19
20
  #: config/facets
20
- # defaultMessage: Language
21
21
  msgid "Language"
22
22
  msgstr "Jazyk"
23
23
 
24
+ #. Default: "Newest"
24
25
  #: config/global-search-base-config
25
- # defaultMessage: Newest
26
26
  msgid "Newest"
27
27
  msgstr "Nejnovější"
28
28
 
29
+ #. Default: "Oldest"
29
30
  #: config/global-search-base-config
30
- # defaultMessage: Oldest
31
31
  msgid "Oldest"
32
32
  msgstr "Nejstarší"
33
33
 
34
+ #. Default: "Relevance"
34
35
  #: config/global-search-base-config
35
- # defaultMessage: Relevance
36
36
  msgid "Relevance"
37
37
  msgstr "Relevance"
38
38
 
39
+ #. Default: "Title a-z"
39
40
  #: config/global-search-base-config
40
- # defaultMessage: Title a-z
41
41
  msgid "Title a-z"
42
42
  msgstr "Titul a-z"
43
43
 
44
+ #. Default: "Title z-a"
44
45
  #: config/global-search-base-config
45
- # defaultMessage: Title z-a
46
46
  msgid "Title z-a"
47
47
  msgstr "Titul z-a"
@@ -11,37 +11,37 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "Include archived content"
14
15
  #: config/facets
15
- # defaultMessage: Include archived content
16
16
  msgid "Include archived content"
17
17
  msgstr "Archivierte Inhalte einbeziehen"
18
18
 
19
+ #. Default: "Language"
19
20
  #: config/facets
20
- # defaultMessage: Language
21
21
  msgid "Language"
22
22
  msgstr "Sprache"
23
23
 
24
+ #. Default: "Newest"
24
25
  #: config/global-search-base-config
25
- # defaultMessage: Newest
26
26
  msgid "Newest"
27
27
  msgstr "Neueste"
28
28
 
29
+ #. Default: "Oldest"
29
30
  #: config/global-search-base-config
30
- # defaultMessage: Oldest
31
31
  msgid "Oldest"
32
32
  msgstr "Älteste"
33
33
 
34
+ #. Default: "Relevance"
34
35
  #: config/global-search-base-config
35
- # defaultMessage: Relevance
36
36
  msgid "Relevance"
37
37
  msgstr "Relevanz"
38
38
 
39
+ #. Default: "Title a-z"
39
40
  #: config/global-search-base-config
40
- # defaultMessage: Title a-z
41
41
  msgid "Title a-z"
42
42
  msgstr "Titel a-z"
43
43
 
44
+ #. Default: "Title z-a"
44
45
  #: config/global-search-base-config
45
- # defaultMessage: Title z-a
46
46
  msgid "Title z-a"
47
47
  msgstr "Titel z-a"
@@ -11,37 +11,37 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "Include archived content"
14
15
  #: config/facets
15
- # defaultMessage: Include archived content
16
16
  msgid "Include archived content"
17
17
  msgstr ""
18
18
 
19
+ #. Default: "Language"
19
20
  #: config/facets
20
- # defaultMessage: Language
21
21
  msgid "Language"
22
22
  msgstr ""
23
23
 
24
+ #. Default: "Newest"
24
25
  #: config/global-search-base-config
25
- # defaultMessage: Newest
26
26
  msgid "Newest"
27
27
  msgstr ""
28
28
 
29
+ #. Default: "Oldest"
29
30
  #: config/global-search-base-config
30
- # defaultMessage: Oldest
31
31
  msgid "Oldest"
32
32
  msgstr ""
33
33
 
34
+ #. Default: "Relevance"
34
35
  #: config/global-search-base-config
35
- # defaultMessage: Relevance
36
36
  msgid "Relevance"
37
37
  msgstr ""
38
38
 
39
+ #. Default: "Title a-z"
39
40
  #: config/global-search-base-config
40
- # defaultMessage: Title a-z
41
41
  msgid "Title a-z"
42
42
  msgstr ""
43
43
 
44
+ #. Default: "Title z-a"
44
45
  #: config/global-search-base-config
45
- # defaultMessage: Title z-a
46
46
  msgid "Title z-a"
47
47
  msgstr ""
@@ -11,37 +11,37 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "Include archived content"
14
15
  #: config/facets
15
- # defaultMessage: Include archived content
16
16
  msgid "Include archived content"
17
17
  msgstr "Incluir contenido archivado"
18
18
 
19
+ #. Default: "Language"
19
20
  #: config/facets
20
- # defaultMessage: Language
21
21
  msgid "Language"
22
22
  msgstr "Idioma"
23
23
 
24
+ #. Default: "Newest"
24
25
  #: config/global-search-base-config
25
- # defaultMessage: Newest
26
26
  msgid "Newest"
27
27
  msgstr "El más nuevo"
28
28
 
29
+ #. Default: "Oldest"
29
30
  #: config/global-search-base-config
30
- # defaultMessage: Oldest
31
31
  msgid "Oldest"
32
32
  msgstr "Más antiguo"
33
33
 
34
+ #. Default: "Relevance"
34
35
  #: config/global-search-base-config
35
- # defaultMessage: Relevance
36
36
  msgid "Relevance"
37
37
  msgstr "Pertinencia"
38
38
 
39
+ #. Default: "Title a-z"
39
40
  #: config/global-search-base-config
40
- # defaultMessage: Title a-z
41
41
  msgid "Title a-z"
42
42
  msgstr "Título a-z"
43
43
 
44
+ #. Default: "Title z-a"
44
45
  #: config/global-search-base-config
45
- # defaultMessage: Title z-a
46
46
  msgid "Title z-a"
47
47
  msgstr "Título z-a"
@@ -11,37 +11,37 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "Include archived content"
14
15
  #: config/facets
15
- # defaultMessage: Include archived content
16
16
  msgid "Include archived content"
17
17
  msgstr "Kaasake arhiveeritud sisu"
18
18
 
19
+ #. Default: "Language"
19
20
  #: config/facets
20
- # defaultMessage: Language
21
21
  msgid "Language"
22
22
  msgstr "Keel"
23
23
 
24
+ #. Default: "Newest"
24
25
  #: config/global-search-base-config
25
- # defaultMessage: Newest
26
26
  msgid "Newest"
27
27
  msgstr "Uusim"
28
28
 
29
+ #. Default: "Oldest"
29
30
  #: config/global-search-base-config
30
- # defaultMessage: Oldest
31
31
  msgid "Oldest"
32
32
  msgstr "Vanim"
33
33
 
34
+ #. Default: "Relevance"
34
35
  #: config/global-search-base-config
35
- # defaultMessage: Relevance
36
36
  msgid "Relevance"
37
37
  msgstr "Asjakohasus"
38
38
 
39
+ #. Default: "Title a-z"
39
40
  #: config/global-search-base-config
40
- # defaultMessage: Title a-z
41
41
  msgid "Title a-z"
42
42
  msgstr "Pealkiri a-z"
43
43
 
44
+ #. Default: "Title z-a"
44
45
  #: config/global-search-base-config
45
- # defaultMessage: Title z-a
46
46
  msgid "Title z-a"
47
47
  msgstr "Pealkiri z-a"