@eeacms/volto-clms-theme 1.1.276 → 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,16 @@ 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)]
|
|
12
|
+
### [1.1.277](https://github.com/eea/volto-clms-theme/compare/1.1.276...1.1.277) - 11 March 2026
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- Refs #295005 - Search Technical Library - customize url for external items in search results listing. [GhitaB - [`c31d51d`](https://github.com/eea/volto-clms-theme/commit/c31d51dc99ec15c2b662ddab2b5d03199fb19b38)]
|
|
7
17
|
### [1.1.276](https://github.com/eea/volto-clms-theme/compare/1.1.275...1.1.276) - 9 March 2026
|
|
8
18
|
|
|
9
19
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
|
@@ -106,7 +106,9 @@ const CclRelatedListingView = (props) => {
|
|
|
106
106
|
{
|
|
107
107
|
portal_type: data.content_type || 'News Item',
|
|
108
108
|
...associated,
|
|
109
|
-
|
|
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?.
|
|
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
|
|
@@ -21,16 +21,23 @@ function formatFileSize(bytes) {
|
|
|
21
21
|
|
|
22
22
|
const TechnicalLibraryItem = (props) => {
|
|
23
23
|
const { result } = props;
|
|
24
|
-
// console.log('result', result);
|
|
25
24
|
const [showCategories, setShowCategories] = useState(false);
|
|
26
25
|
const user = useSelector((state) => state.users.user);
|
|
27
26
|
const isAdmin = user?.roles?.includes('Manager');
|
|
27
|
+
let item_url = `${result.href}/@@download/file`;
|
|
28
|
+
|
|
29
|
+
const external_source = result?._result?.external_source_url?.raw;
|
|
30
|
+
if (external_source !== undefined) {
|
|
31
|
+
//item_url = external_source;
|
|
32
|
+
item_url = `${result.href}`;
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
const item = {
|
|
29
36
|
title: (
|
|
30
37
|
<>
|
|
31
38
|
<div className="technical-library-title">
|
|
32
39
|
<ExternalLink
|
|
33
|
-
href={
|
|
40
|
+
href={item_url}
|
|
34
41
|
title={result.title}
|
|
35
42
|
className="technical-library-title"
|
|
36
43
|
>
|
package/src/search/config.js
CHANGED
|
@@ -22,6 +22,7 @@ export default function install(config) {
|
|
|
22
22
|
config.searchui.clmsSearchTechnicalLibrary = {
|
|
23
23
|
...mergeConfig(envConfig, config.searchui.globalsearchbase),
|
|
24
24
|
elastic_index: '_es/clmsSearchTechnicalLibrary',
|
|
25
|
+
// index_name: 'copernicus_demo_searchui',
|
|
25
26
|
index_name: 'copernicus_searchui',
|
|
26
27
|
host: process.env.RAZZLE_ES_PROXY_ADDR || 'http://localhost:3000',
|
|
27
28
|
...vocabs,
|