io-sanita-theme 2.29.0 → 2.30.0
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 +18 -0
- package/RELEASE.md +2 -1
- package/locales/de/LC_MESSAGES/volto.po +1 -0
- package/locales/en/LC_MESSAGES/volto.po +1 -0
- package/locales/es/LC_MESSAGES/volto.po +1 -0
- package/locales/fr/LC_MESSAGES/volto.po +1 -0
- package/locales/it/LC_MESSAGES/volto.po +1 -0
- package/locales/volto.pot +2 -1
- package/package.json +1 -1
- package/src/components/View/AggregationPage/AggregationPage.jsx +0 -2
- package/src/components/View/UOView/UOContatti.jsx +8 -2
- package/src/components/View/UOView/UOUlterioriInformazioni.jsx +18 -3
- package/src/helpers/Item/item.js +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.30.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.29.0...2.30.0) (2026-05-27)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* ulteriori info in uo ([#144](https://github.com/RedTurtle/io-sanita-theme/issues/144)) ([4ff54b0](https://github.com/RedTurtle/io-sanita-theme/commit/4ff54b01727f1c0455a2cd8b04aa50418e010f10))
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* handle no geolocation in person card avoiding to show 0 ([#143](https://github.com/RedTurtle/io-sanita-theme/issues/143)) ([58e9eb3](https://github.com/RedTurtle/io-sanita-theme/commit/58e9eb3410e5ec19d75ab57e2eeb96576e30757f))
|
|
12
|
+
* handle related-item-in-evidence in aggregationPage ([#142](https://github.com/RedTurtle/io-sanita-theme/issues/142)) ([54a48ec](https://github.com/RedTurtle/io-sanita-theme/commit/54a48ec223ff49b1f2142a5827d7dc29a374197e))
|
|
13
|
+
|
|
14
|
+
### Maintenance
|
|
15
|
+
|
|
16
|
+
* locales ([66f612d](https://github.com/RedTurtle/io-sanita-theme/commit/66f612d2bd6b46ea5211228bd34df7b0f4323b1e))
|
|
17
|
+
* releaselog ([85d5c9a](https://github.com/RedTurtle/io-sanita-theme/commit/85d5c9aa94fbc441cfdddcaaf293b69bfd0acedf))
|
|
18
|
+
* typo ([df9e3ae](https://github.com/RedTurtle/io-sanita-theme/commit/df9e3aed3398673947d762b3d2ab3dd2c5c88600))
|
|
19
|
+
* typo ([a84a5f9](https://github.com/RedTurtle/io-sanita-theme/commit/a84a5f93a125a3d45608dbc25a2e961b00432119))
|
|
20
|
+
|
|
3
21
|
## [2.29.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.28.2...2.29.0) (2026-05-21)
|
|
4
22
|
|
|
5
23
|
### Features
|
package/RELEASE.md
CHANGED
|
@@ -41,11 +41,12 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
-
## Versione
|
|
44
|
+
## Versione 2.29.0 (27/05/2026)
|
|
45
45
|
|
|
46
46
|
### Fix
|
|
47
47
|
|
|
48
48
|
- Sistemato il blocco "Cerca servizi e procedure" in modo tale che consideri il path all'interno del quale fare la ricerca.
|
|
49
|
+
- Gestita la mancanza di geolocalizzazione all'interno del CT Persona in modo tale da non mostrare 0 all'interno della card Persona quando assente.
|
|
49
50
|
|
|
50
51
|
## Versione 2.28.0 (05/05/2026)
|
|
51
52
|
|
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date: 2026-05-
|
|
4
|
+
"POT-Creation-Date: 2026-05-27T13:14:14.832Z\n"
|
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
7
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
@@ -3875,6 +3875,7 @@ msgstr ""
|
|
|
3875
3875
|
|
|
3876
3876
|
#. Default: "Come accedere"
|
|
3877
3877
|
#: components/View/Struttura/StrutturaComeAccedere
|
|
3878
|
+
#: components/View/UOView/UOUlterioriInformazioni
|
|
3878
3879
|
msgid "struttura_come_accedere"
|
|
3879
3880
|
msgstr ""
|
|
3880
3881
|
|
package/package.json
CHANGED
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
PageHeader,
|
|
18
18
|
SkipToMainContent,
|
|
19
19
|
commonIntlMessages,
|
|
20
|
-
RelatedItemInEvidence,
|
|
21
20
|
} from 'io-sanita-theme/components/View/commons';
|
|
22
21
|
import {
|
|
23
22
|
CardSimple,
|
|
@@ -253,7 +252,6 @@ const AggregationPage = ({ match, route, location }) => {
|
|
|
253
252
|
</section>
|
|
254
253
|
</div>
|
|
255
254
|
</div>
|
|
256
|
-
<RelatedItemInEvidence content={content}/>
|
|
257
255
|
</>
|
|
258
256
|
);
|
|
259
257
|
};
|
|
@@ -13,8 +13,8 @@ const messages = defineMessages({
|
|
|
13
13
|
|
|
14
14
|
const UOContatti = ({ content }) => {
|
|
15
15
|
const intl = useIntl();
|
|
16
|
-
|
|
17
|
-
return content?.pdc_correlato?.length > 0 ? (
|
|
16
|
+
const has_richTextContent = richTextHasContent(content?.pdc_correlato_text);
|
|
17
|
+
return content?.pdc_correlato?.length > 0 || has_richTextContent ? (
|
|
18
18
|
<RichTextSection
|
|
19
19
|
tag_id="contatti"
|
|
20
20
|
title={intl.formatMessage(messages.contatti)}
|
|
@@ -27,6 +27,12 @@ const UOContatti = ({ content }) => {
|
|
|
27
27
|
</Col>
|
|
28
28
|
))}
|
|
29
29
|
</Row>
|
|
30
|
+
{/* Contenuto testuale alternativo, usato ad esempio con il sync virtualdesk */}
|
|
31
|
+
{has_richTextContent && (
|
|
32
|
+
<div className="richtext-blocks font-serif">
|
|
33
|
+
<RichText data={content?.pdc_correlato_text} />
|
|
34
|
+
</div>
|
|
35
|
+
)}
|
|
30
36
|
</RichTextSection>
|
|
31
37
|
) : null;
|
|
32
38
|
};
|
|
@@ -7,17 +7,32 @@ const messages = defineMessages({
|
|
|
7
7
|
id: 'other_info',
|
|
8
8
|
defaultMessage: 'Ulteriori informazioni',
|
|
9
9
|
},
|
|
10
|
+
come_accedere: {
|
|
11
|
+
id: 'struttura_come_accedere',
|
|
12
|
+
defaultMessage: 'Come accedere',
|
|
13
|
+
},
|
|
10
14
|
});
|
|
11
15
|
|
|
12
16
|
const UOUlterioriInformazioni = ({ content }) => {
|
|
13
17
|
const intl = useIntl();
|
|
14
|
-
|
|
18
|
+
const has_richTextUlteriori = richTextHasContent(content?.ulteriori_informazioni);
|
|
19
|
+
const has_come_accedere = richTextHasContent(content?.come_accedere);
|
|
20
|
+
return (has_richTextUlteriori || has_come_accedere) ? (
|
|
15
21
|
<RichTextSection
|
|
16
|
-
data={content.ulteriori_informazioni}
|
|
17
22
|
tag_id="more_info"
|
|
18
23
|
title={intl.formatMessage(messages.other_info)}
|
|
19
24
|
anchorOffset={true}
|
|
20
|
-
|
|
25
|
+
>
|
|
26
|
+
{content.ulteriori_informazioni && (
|
|
27
|
+
<RichText data={content.ulteriori_informazioni} />
|
|
28
|
+
)}
|
|
29
|
+
{content.come_accedere && (
|
|
30
|
+
<div className="mt-4">
|
|
31
|
+
<h3>{intl.formatMessage(messages.come_accedere)}</h3>
|
|
32
|
+
<RichText data={content.come_accedere} />
|
|
33
|
+
</div>
|
|
34
|
+
)}
|
|
35
|
+
</RichTextSection>
|
|
21
36
|
) : null;
|
|
22
37
|
};
|
|
23
38
|
|
package/src/helpers/Item/item.js
CHANGED
|
@@ -36,11 +36,7 @@ export const getItemIcon = (item) => {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export const hasGeolocation = (item) => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
item?.geolocation?.longitude &&
|
|
43
|
-
item?.geolocation?.latitude !== 0 &&
|
|
44
|
-
item?.geolocation?.longitude !== 0
|
|
45
|
-
);
|
|
39
|
+
if (item?.geolocation?.latitude !== 0 && item?.geolocation?.longitude !== 0) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
46
42
|
};
|