@eeacms/volto-cca-policy 0.2.68 → 0.2.69
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
|
+
### [0.2.69](https://github.com/eea/volto-cca-policy/compare/0.2.68...0.2.69) - 26 September 2024
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix((view): anchor link on database item view; cleanup [kreafox - [`881a28f`](https://github.com/eea/volto-cca-policy/commit/881a28f57ad0ad5cc71996b45fd82d71bf41e420)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- This part [Tiberiu Ichim - [`fbbc0d0`](https://github.com/eea/volto-cca-policy/commit/fbbc0d0f9ff6e55763e9987b691378960e118104)]
|
|
16
|
+
- Don't need this part [Tiberiu Ichim - [`467d966`](https://github.com/eea/volto-cca-policy/commit/467d966f3f180acadf37c68988ed000af2007782)]
|
|
7
17
|
### [0.2.68](https://github.com/eea/volto-cca-policy/compare/0.2.67...0.2.68) - 26 September 2024
|
|
8
18
|
|
|
9
19
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
|
@@ -71,7 +71,7 @@ const createIframe = (
|
|
|
71
71
|
if (typeof ecde_identifier !== 'undefined' && ecde_identifier) {
|
|
72
72
|
return (
|
|
73
73
|
// '<iframe src="http://ecde-dev.copernicus-climate.eu/apps/ecde/?disabled=true&theme=eea&indicator=' +
|
|
74
|
-
'<iframe src="https://apps.copernicus-climate.eu/ecde/?disabled=true&theme=eea&indicator=' +
|
|
74
|
+
'<iframe src="https://apps.copernicus-climate.eu/c3s-apps/ecde/?disabled=true&theme=eea&indicator=' +
|
|
75
75
|
ecde_identifier +
|
|
76
76
|
'" style="width: 100%; border: 0; height: min(800px, 80vh);"/>'
|
|
77
77
|
);
|
|
@@ -278,6 +278,7 @@ const SectionsMenu = ({ sections, title }) => {
|
|
|
278
278
|
|
|
279
279
|
const SectionContent = ({ sectionData, content }) => {
|
|
280
280
|
const intl = useIntl();
|
|
281
|
+
const sectionDataTitle = sectionData.contentTitle || sectionData.title;
|
|
281
282
|
|
|
282
283
|
const adaptationOptionsLinks = () => {
|
|
283
284
|
let list = [];
|
|
@@ -288,17 +289,12 @@ const SectionContent = ({ sectionData, content }) => {
|
|
|
288
289
|
};
|
|
289
290
|
|
|
290
291
|
const section = content[sectionData.field];
|
|
291
|
-
|
|
292
292
|
for (var key in section) {
|
|
293
293
|
if (section[key] === '') {
|
|
294
294
|
section[key] = '<p>-</p>';
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
const sectionDataTitle =
|
|
299
|
-
sectionData.contentTitle !== undefined
|
|
300
|
-
? sectionData.contentTitle
|
|
301
|
-
: sectionData.title;
|
|
302
298
|
return (
|
|
303
299
|
<div id={sectionID(sectionData.title)} className="section">
|
|
304
300
|
<h5 className="section-title">
|
|
@@ -324,6 +320,7 @@ const SectionContent = ({ sectionData, content }) => {
|
|
|
324
320
|
};
|
|
325
321
|
|
|
326
322
|
function CaseStudyView(props) {
|
|
323
|
+
const intl = useIntl();
|
|
327
324
|
const { content } = props;
|
|
328
325
|
const { long_description, updating_notes } = content;
|
|
329
326
|
|
|
@@ -345,7 +342,6 @@ function CaseStudyView(props) {
|
|
|
345
342
|
(data) => data.group === group && hasValue(data.field),
|
|
346
343
|
);
|
|
347
344
|
};
|
|
348
|
-
const intl = useIntl();
|
|
349
345
|
|
|
350
346
|
return (
|
|
351
347
|
<div className="db-item-view case-study-view">
|
package/src/helpers/Utils.jsx
CHANGED
|
@@ -71,7 +71,7 @@ export const ExternalLink = (props) => {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
export const LinksList = (props) => {
|
|
74
|
-
let {
|
|
74
|
+
let { value, withText, isInternal } = props;
|
|
75
75
|
|
|
76
76
|
if (isInternal === undefined) {
|
|
77
77
|
isInternal = false;
|
|
@@ -79,33 +79,27 @@ export const LinksList = (props) => {
|
|
|
79
79
|
|
|
80
80
|
if (withText === true) {
|
|
81
81
|
return (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
))}
|
|
94
|
-
</List>
|
|
95
|
-
</>
|
|
82
|
+
<List>
|
|
83
|
+
{value.map((linkItem, index) => (
|
|
84
|
+
<ListItem key={index}>
|
|
85
|
+
{isInternal ? (
|
|
86
|
+
<UniversalLink href={linkItem[0]}>{linkItem[1]}</UniversalLink>
|
|
87
|
+
) : (
|
|
88
|
+
<ExternalLink url={linkItem[0]} text={linkItem[1]} />
|
|
89
|
+
)}
|
|
90
|
+
</ListItem>
|
|
91
|
+
))}
|
|
92
|
+
</List>
|
|
96
93
|
);
|
|
97
94
|
} else {
|
|
98
95
|
return (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
))}
|
|
107
|
-
</List>
|
|
108
|
-
</>
|
|
96
|
+
<List>
|
|
97
|
+
{value.map((url, index) => (
|
|
98
|
+
<ListItem key={index}>
|
|
99
|
+
<ExternalLink url={url} text={url} />
|
|
100
|
+
</ListItem>
|
|
101
|
+
))}
|
|
102
|
+
</List>
|
|
109
103
|
);
|
|
110
104
|
}
|
|
111
105
|
};
|
|
@@ -155,14 +149,14 @@ export const ReferenceInfo = (props) => {
|
|
|
155
149
|
defaultMessage="Reference information"
|
|
156
150
|
/>
|
|
157
151
|
</h2>
|
|
158
|
-
|
|
159
152
|
{websites?.length > 0 && (
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
<>
|
|
154
|
+
<h5 id="websites">
|
|
155
|
+
<FormattedMessage id="Websites:" defaultMessage="Websites:" />
|
|
156
|
+
</h5>
|
|
157
|
+
<LinksList value={websites} />
|
|
158
|
+
</>
|
|
164
159
|
)}
|
|
165
|
-
|
|
166
160
|
{type !== ACE_PROJECT && type !== ORGANISATION && (
|
|
167
161
|
<>
|
|
168
162
|
{source && source?.data.length > 0 && (
|
|
@@ -173,7 +167,6 @@ export const ReferenceInfo = (props) => {
|
|
|
173
167
|
)}
|
|
174
168
|
</>
|
|
175
169
|
)}
|
|
176
|
-
|
|
177
170
|
{(contributor_list?.length > 0 || other_contributor?.length > 0) && (
|
|
178
171
|
<>
|
|
179
172
|
<h5>
|
|
@@ -190,7 +183,6 @@ export const ReferenceInfo = (props) => {
|
|
|
190
183
|
{other_contributor}
|
|
191
184
|
</>
|
|
192
185
|
)}
|
|
193
|
-
|
|
194
186
|
{contributions && contributions.length > 0 && (
|
|
195
187
|
<>
|
|
196
188
|
<h5>
|