@eeacms/volto-globalsearch 1.0.1 → 1.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 CHANGED
@@ -4,6 +4,23 @@ 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
+ ### [1.0.3](https://github.com/eea/volto-globalsearch/compare/1.0.2...1.0.3) - 12 January 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - if the clusters facet is used, we don't want answer extraction [Zoltan Szabo - [`6ce63af`](https://github.com/eea/volto-globalsearch/commit/6ce63aff3a72134a07cea6258df6e53b62aadc81)]
12
+ - 'Published' facet should not be used when running the query for answer extraction [Zoltan Szabo - [`d8fea0e`](https://github.com/eea/volto-globalsearch/commit/d8fea0e60adf9c67539d8bda18be2cf93f156aa2)]
13
+ - Added 'Last 5 years' facet option, and made it default [Zoltan Szabo - [`0aec4d5`](https://github.com/eea/volto-globalsearch/commit/0aec4d52597047ed621a591fae6e9b98763d498e)]
14
+ ### [1.0.2](https://github.com/eea/volto-globalsearch/compare/1.0.1...1.0.2) - 6 January 2023
15
+
16
+ #### :hammer_and_wrench: Others
17
+
18
+ - Revert "Automated release 1.0.2" [Alin Voinea - [`2164d79`](https://github.com/eea/volto-globalsearch/commit/2164d798ab3a71fca4769a37aa0f9116f032c16a)]
19
+ - Tweak Published filter [Tiberiu Ichim - [`8e4bafa`](https://github.com/eea/volto-globalsearch/commit/8e4bafa53658b84fac3cc5434680128d891ab427)]
20
+ - Make last 2 years default [Tiberiu Ichim - [`ff765e2`](https://github.com/eea/volto-globalsearch/commit/ff765e24a1d93c60f091aeffa7c3156d8fb98e49)]
21
+ - Add compact listing, placeholder for now [Tiberiu Ichim - [`3f6104f`](https://github.com/eea/volto-globalsearch/commit/3f6104fb1725f7e3c22736a30629f64e4882242a)]
22
+ - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`8120264`](https://github.com/eea/volto-globalsearch/commit/812026495c31b272e6ae6415642cf1a6b2f783cf)]
23
+ - yarn 3 [Alin Voinea - [`b61ad50`](https://github.com/eea/volto-globalsearch/commit/b61ad5075a79bebfce1044a6cd4978c92d98fbdc)]
7
24
  ### [1.0.1](https://github.com/eea/volto-globalsearch/compare/1.0.0...1.0.1) - 16 November 2022
8
25
 
9
26
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-globalsearch",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "@eeacms/volto-globalsearch: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -21,12 +21,12 @@
21
21
  "@eeacms/volto-listing-block"
22
22
  ],
23
23
  "dependencies": {
24
- "@eeacms/volto-searchlib": "*",
25
- "@eeacms/volto-listing-block": "*"
24
+ "@eeacms/volto-listing-block": "*",
25
+ "@eeacms/volto-searchlib": "*"
26
26
  },
27
27
  "devDependencies": {
28
- "@plone/scripts": "*",
29
28
  "@cypress/code-coverage": "^3.10.0",
29
+ "@plone/scripts": "*",
30
30
  "babel-plugin-transform-class-properties": "^6.24.1",
31
31
  "md5": "^2.3.0"
32
32
  },
@@ -120,6 +120,7 @@ const facets = [
120
120
  label: 'Section',
121
121
  show: 10000,
122
122
  showInFacetsList: false,
123
+ ignoreNLPWhenActive: true,
123
124
  }),
124
125
 
125
126
  multiTermFacet({
@@ -219,11 +220,13 @@ const facets = [
219
220
  dateRangeFacet({
220
221
  field: 'issued.date',
221
222
  label: ' ',
223
+ activeFilterLabel: 'Published',
222
224
  isFilter: true, // filters don't need facet options to show up
223
225
  showInFacetsList: false,
224
226
  showInSecondaryFacetsList: true,
225
227
  // rangeType: 'dateRange',
226
228
  isMulti: false,
229
+ ignoreFromNlp: true,
227
230
  ranges: [
228
231
  { key: 'All time' },
229
232
  { key: 'Last week', from: 'now-1w', to: 'now' },
@@ -231,10 +234,11 @@ const facets = [
231
234
  { key: 'Last 3 months', from: 'now-3m', to: 'now' },
232
235
  { key: 'Last year', from: 'now-1y', to: 'now' },
233
236
  { key: 'Last 2 years', from: 'now-2y', to: 'now' },
237
+ { key: 'Last 5 years', from: 'now-5y', to: 'now' },
234
238
  ],
235
239
  factory: 'DropdownRangeFilter',
236
240
  default: {
237
- values: ['All time'],
241
+ values: ['Last 5 years'],
238
242
  type: 'any',
239
243
  },
240
244
  }),
@@ -24,7 +24,19 @@ export default {
24
24
  item: 'CardItem',
25
25
  },
26
26
  },
27
+ {
28
+ id: 'compactListing',
29
+ title: 'Compact listing',
30
+ icon: 'th',
31
+ render: null,
32
+ isDefault: false,
33
+ factories: {
34
+ view: 'HorizontalCard.Group',
35
+ item: 'HorizontalCardItem',
36
+ },
37
+ },
27
38
  ],
39
+
28
40
  cardViewParams: {
29
41
  urlField: 'about',
30
42
  titleField: 'title',
@@ -51,6 +63,19 @@ export default {
51
63
  clusterIcons,
52
64
  },
53
65
 
66
+ compactListingViewParams: {
67
+ urlField: 'about',
68
+ titleField: 'title',
69
+ metatypeField: 'objectProvides',
70
+ descriptionField: 'description',
71
+ tagsField: 'topic',
72
+ issuedField: 'issued',
73
+ enabled: false,
74
+ getThumbnailUrl: 'getGlobalsearchThumbUrl',
75
+ getIconUrl: 'getGlobalsearchIconUrl',
76
+ clusterIcons,
77
+ },
78
+
54
79
  initialView: {
55
80
  factory: 'TilesLandingPage',
56
81
  tilesLandingPageParams: {