@eeacms/volto-clms-theme 1.1.277 → 1.1.278

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,11 @@ 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.278](https://github.com/eea/volto-clms-theme/compare/1.1.277...1.1.278) - 20 March 2026
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Refs #300398 - Fix URLs in Technical Library section of product pages for external items. [GhitaB - [`7af35ae`](https://github.com/eea/volto-clms-theme/commit/7af35ae032eb1a2327e01ade783861c5783c07c4)]
7
12
  ### [1.1.277](https://github.com/eea/volto-clms-theme/compare/1.1.276...1.1.277) - 11 March 2026
8
13
 
9
14
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.277",
3
+ "version": "1.1.278",
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",
@@ -106,7 +106,9 @@ const CclRelatedListingView = (props) => {
106
106
  {
107
107
  portal_type: data.content_type || 'News Item',
108
108
  ...associated,
109
- metadata_fields: '_all',
109
+ ...(data.content_type === 'TechnicalLibrary'
110
+ ? { fullobjects: 1 }
111
+ : { metadata_fields: '_all' }),
110
112
  sort_on: sort_on,
111
113
  sort_order: sort_order,
112
114
  b_size: 99999,
@@ -65,7 +65,16 @@ const DocCard = ({ card, url, showEditor, children }) => {
65
65
  <div className="card-doc-header">
66
66
  <div className="card-doc-title">
67
67
  {card?.['@type'] === 'TechnicalLibrary' ? (
68
- card?.ondemand ? (
68
+ typeof card?.external_source_url === 'string' &&
69
+ card.external_source_url.trim() !== '' ? (
70
+ <a
71
+ target="_blank"
72
+ rel="noopener noreferrer"
73
+ href={card.external_source_url}
74
+ >
75
+ {card?.title}
76
+ </a>
77
+ ) : card?.ondemand ? (
69
78
  <a href={`${card['@id']}`}>{card?.title}</a>
70
79
  ) : (
71
80
  <a