@eeacms/volto-clms-theme 1.1.273 → 1.1.275

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.1.275](https://github.com/eea/volto-clms-theme/compare/1.1.274...1.1.275) - 2 March 2026
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Refs #295005 - In TechnicalLibraryView add case of external source content. [GhitaB - [`ccc4d65`](https://github.com/eea/volto-clms-theme/commit/ccc4d65a4a3b8d54245baed78872d0fe0977a7ae)]
12
+ ### [1.1.274](https://github.com/eea/volto-clms-theme/compare/1.1.273...1.1.274) - 26 February 2026
13
+
14
+ #### :house: Internal changes
15
+
16
+ - chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`083ab74`](https://github.com/eea/volto-clms-theme/commit/083ab74551580ab295eba0443b2b63365107ba80)]
17
+ - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`22cf3b2`](https://github.com/eea/volto-clms-theme/commit/22cf3b2a747b0d5f2814ab6d8cb569e278cf1ff4)]
18
+
19
+ #### :hammer_and_wrench: Others
20
+
21
+ - Refs #295005 - Fix tests. [GhitaB - [`eb4832d`](https://github.com/eea/volto-clms-theme/commit/eb4832d3a5073effd908b1c75a2b4677bbf68e1e)]
22
+ - Refs #295005 - Include all_fields_for_freetext in search formula. [GhitaB - [`793e569`](https://github.com/eea/volto-clms-theme/commit/793e5695827d8cad7cbda59ca3e4f00adb012e2f)]
23
+ - Refs #295005 - Include all_fields_for_freetext in search formula. [GhitaB - [`ff0ed4a`](https://github.com/eea/volto-clms-theme/commit/ff0ed4a5a2e80a81c293e64f85ba538708595599)]
7
24
  ### [1.1.273](https://github.com/eea/volto-clms-theme/compare/1.1.272...1.1.273) - 10 February 2026
8
25
 
9
26
  #### :hammer_and_wrench: Others
package/Jenkinsfile CHANGED
@@ -1,7 +1,4 @@
1
1
  pipeline {
2
- tools {
3
- jdk 'Java17'
4
- }
5
2
  agent {
6
3
  node { label 'docker-host' }
7
4
  }
@@ -239,11 +236,17 @@ pipeline {
239
236
  // script {
240
237
  // def scannerHome = tool 'SonarQubeScanner'
241
238
  // def nodeJS = tool 'NodeJS'
239
+ // if (env.CHANGE_ID) {
240
+ // env.sonarParams = " -Dsonar.pullrequest.base=${env.CHANGE_TARGET} -Dsonar.pullrequest.branch=${env.CHANGE_BRANCH} -Dsonar.pullrequest.key=${env.CHANGE_ID} "
241
+ // }
242
+ // else {
243
+ // env.sonarParams = " -Dsonar.branch.name=${env.BRANCH_NAME}"
244
+ // }
242
245
  // withSonarQubeEnv('Sonarqube') {
243
246
  // sh '''sed -i "s#/app/src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info'''
244
247
  // sh '''sed -i "s#src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info'''
245
- // // sh "export PATH=${scannerHome}/bin:${nodeJS}/bin:$PATH; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
246
- // sh '''try=5; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}-${BRANCH_NAME}&tags=${SONARQUBE_TAGS},${BRANCH_NAME}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 15; try=\$(( \$try - 1 )); fi; done'''
248
+ // // sh "export PATH=${scannerHome}/bin:${nodeJS}/bin:$PATH; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME -Dsonar.projectName=$GIT_NAME -Dsonar.projectVersion=\$(jq -r '.version' package.json) ${env.sonarParams}"
249
+ // sh '''try=5; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}&tags=${SONARQUBE_TAGS}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 15; try=\$(( \$try - 1 )); fi; done'''
247
250
  // }
248
251
  // }
249
252
  // }
@@ -267,7 +270,7 @@ pipeline {
267
270
  // script {
268
271
  // sh '''echo "Error" > checkresult.txt'''
269
272
  // catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
270
- // sh '''set -o pipefail; docker run -i --rm --pull always --name="$IMAGE_NAME-gitflow-sn" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" eeacms/gitflow /checkSonarqubemaster.sh | grep -v "Found script" | tee checkresult.txt'''
273
+ // sh '''set -o pipefail; docker run -i --rm --pull always --name="$IMAGE_NAME-gitflow-sn" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" eeacms/gitflow /checkSonarqubemasterV2.sh | grep -v "Found script" | tee checkresult.txt'''
271
274
  // }
272
275
 
273
276
  // publishChecks name: 'SonarQube', title: 'Sonarqube Code Quality Check', summary: 'Quality check on the SonarQube metrics from branch develop, comparing it with the ones from master branch. No bugs are allowed',
package/README.md CHANGED
@@ -3,16 +3,16 @@
3
3
  [![Releases](https://img.shields.io/github/v/release/eea/volto-clms-theme)](https://github.com/eea/volto-clms-theme/releases)
4
4
 
5
5
  [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-clms-theme%2Fmaster&subject=master)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-clms-theme/job/master/display/redirect)
6
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme-master&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-master)
7
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme-master&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-master)
8
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme-master&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-master)
9
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme-master&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-master)
6
+ [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme)
7
+ [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme)
8
+ [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme)
9
+ [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme)
10
10
 
11
11
  [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-clms-theme%2Fdevelop&subject=develop)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-clms-theme/job/develop/display/redirect)
12
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme-develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-develop)
13
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme-develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-develop)
14
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-develop)
15
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme-develop)
12
+ [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme&branch=develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme&branch=develop)
13
+ [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme&branch=develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme&branch=develop)
14
+ [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme&branch=develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme&branch=develop)
15
+ [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-clms-theme&branch=develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-clms-theme&branch=develop)
16
16
 
17
17
  [Volto](https://github.com/plone/volto) add-on
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.273",
3
+ "version": "1.1.275",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -21,7 +21,19 @@ const CLMSTechnicalLibraryView = (props) => {
21
21
  </div>
22
22
  )}
23
23
  <div className="technicallibrary-content">
24
- {content.ondemand ? (
24
+ {typeof content.external_source_url === 'string' &&
25
+ content.external_source_url.trim() !== '' ? (
26
+ <>
27
+ <p>This document is hosted externally. Access it here:</p>
28
+ <CclButton
29
+ url={content.external_source_url}
30
+ target="_blank"
31
+ rel="noreferrer"
32
+ >
33
+ Open External Source
34
+ </CclButton>
35
+ </>
36
+ ) : content.ondemand ? (
25
37
  <>
26
38
  <p>
27
39
  You are requesting an on-demand document. Please contact the{' '}
@@ -1,7 +1,12 @@
1
1
  import installMainSearch from './config';
2
2
 
3
3
  const extra = {
4
- text_fields: ['title^4', 'subject^1.5', 'description^1.5'],
4
+ text_fields: [
5
+ 'title^7',
6
+ 'subject^3',
7
+ 'description^3',
8
+ 'all_fields_for_freetext^1',
9
+ ],
5
10
  score_mode: 'sum',
6
11
  };
7
12