From 1cd1ca20a50c924dcc4464bd176ecb4e05d9b021 Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Tue, 4 Jun 2024 17:16:53 +0200 Subject: [PATCH 1/8] feat: added all roles in CT Persona --- locales/de/LC_MESSAGES/volto.po | 5 + locales/en/LC_MESSAGES/volto.po | 5 + locales/es/LC_MESSAGES/volto.po | 5 + locales/fr/LC_MESSAGES/volto.po | 5 + locales/it/LC_MESSAGES/volto.po | 5 + locales/volto.pot | 7 +- .../View/PersonaView/PersonaRuolo.jsx | 48 +++- .../Users/UserGroupMembershipMatrix.jsx | 210 ++++++++++++++++++ src/theme/ItaliaTheme/Views/_persona.scss | 6 + 9 files changed, 285 insertions(+), 11 deletions(-) create mode 100644 src/customizations/volto/components/manage/ControlPanels/Users/UserGroupMembershipMatrix.jsx diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 81c75fa2b..959f1d96a 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -807,6 +807,11 @@ msgstr "" msgid "altri_documenti_persona" msgstr "" +#: components/ItaliaTheme/View/PersonaView/PersonaRuolo +# defaultMessage: Altri incarichi +msgid "altri_incarichi" +msgstr "" + #: config/Blocks/ListingOptions/cardWithImageTemplate # defaultMessage: Mostra l'immagine per tutti gli elementi msgid "always_show_image" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index f85ec46ed..413a6c816 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -792,6 +792,11 @@ msgstr "Other documents" msgid "altri_documenti_persona" msgstr "Other documents" +#: components/ItaliaTheme/View/PersonaView/PersonaRuolo +# defaultMessage: Altri incarichi +msgid "altri_incarichi" +msgstr "Other roles" + #: config/Blocks/ListingOptions/cardWithImageTemplate # defaultMessage: Mostra l'immagine per tutti gli elementi msgid "always_show_image" diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 27f65efa5..7438cb8de 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -801,6 +801,11 @@ msgstr "Otros documentos" msgid "altri_documenti_persona" msgstr "" +#: components/ItaliaTheme/View/PersonaView/PersonaRuolo +# defaultMessage: Altri incarichi +msgid "altri_incarichi" +msgstr "" + #: config/Blocks/ListingOptions/cardWithImageTemplate # defaultMessage: Mostra l'immagine per tutti gli elementi msgid "always_show_image" diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index 67389b02a..6f86bb0f5 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -809,6 +809,11 @@ msgstr "Autres documents" msgid "altri_documenti_persona" msgstr "" +#: components/ItaliaTheme/View/PersonaView/PersonaRuolo +# defaultMessage: Altri incarichi +msgid "altri_incarichi" +msgstr "" + #: config/Blocks/ListingOptions/cardWithImageTemplate # defaultMessage: Mostra l'immagine per tutti gli elementi msgid "always_show_image" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index 28f863693..f94c0b388 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -792,6 +792,11 @@ msgstr "Documenti" msgid "altri_documenti_persona" msgstr "Altri documenti" +#: components/ItaliaTheme/View/PersonaView/PersonaRuolo +# defaultMessage: Altri incarichi +msgid "altri_incarichi" +msgstr "" + #: config/Blocks/ListingOptions/cardWithImageTemplate # defaultMessage: Mostra l'immagine per tutti gli elementi msgid "always_show_image" diff --git a/locales/volto.pot b/locales/volto.pot index 5745efb5c..a59f6ac4d 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-05-15T15:55:46.048Z\n" +"POT-Creation-Date: 2024-06-04T15:14:53.287Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -794,6 +794,11 @@ msgstr "" msgid "altri_documenti_persona" msgstr "" +#: components/ItaliaTheme/View/PersonaView/PersonaRuolo +# defaultMessage: Altri incarichi +msgid "altri_incarichi" +msgstr "" + #: config/Blocks/ListingOptions/cardWithImageTemplate # defaultMessage: Mostra l'immagine per tutti gli elementi msgid "always_show_image" diff --git a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx index 186f649a0..ce8ae4a92 100644 --- a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +++ b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx @@ -11,6 +11,7 @@ import { contentFolderHasItems, viewDate, } from 'design-comuni-plone-theme/helpers'; +import { Chip, ChipLabel } from 'design-react-kit'; const messages = defineMessages({ ruolo: { @@ -74,6 +75,10 @@ const messages = defineMessages({ defaultMessage: "Ha fatto parte dell'organizzazione comunale come {incarico} fino al", }, + altri_incarichi: { + id: 'altri_incarichi', + defaultMessage: 'Altri incarichi', + }, }); const PersonaRuolo = ({ content }) => { @@ -86,16 +91,16 @@ const PersonaRuolo = ({ content }) => { tag_id="incarico" title={intl.formatMessage(messages.ruolo)} > - {content?.incarichi_persona?.map((incarico) => ( -
-

{incarico.title}

- {incarico.atto_di_nomina && ( - - {intl.formatMessage(messages.atto_nomina)} - - )} -
- ))} +
+

{content?.incarichi_persona[0]?.title}

+ {content?.incarichi_persona[0]?.atto_di_nomina && ( + + {intl.formatMessage(messages.atto_nomina)} + + )} +
{content.incarichi_persona[0]?.tipologia_incarico?.title && ( { )} )} + + {content.incarichi_persona?.length > 1 && ( + + {content.incarichi_persona.map((incarico, index) => + index > 0 ? ( + + {incarico.title} + + ) : null, + )} + + )} + {content.assessore_di?.length > 0 && ( { + const intl = useIntl(); + const dispatch = useDispatch(); + + const [query_user, setQuery_user] = useState(''); // Show users matching the search string + const [query_group, setQuery_group] = useState(''); // Show groups matching the search string + const [query_group_filter, setQuery_group_filter] = useState(''); // Offer groups matching the search string to filter users + const [groups_filter, setGroups_filter] = useState([]); // Show users joining these groups. + const [add_joined_groups, setAdd_joined_groups] = useState(false); + + let filter_options = useSelector((state) => state.groups.filter_groups); + if (filter_options) { + filter_options = filter_options.map((group) => ({ + value: group.id, + label: group.title || group.id, + })); + filter_options.sort(function (a, b) { + var labelA = a.label.toUpperCase(); + var labelB = b.label.toUpperCase(); + if (labelA < labelB) { + return -1; + } + if (labelA > labelB) { + return 1; + } + return 0; + }); + } + + useEffect(() => { + // TODO fetch group for at least query_group_filter.length > 1? + if (!many_groups || (many_groups && query_group_filter.length > 1)) { + dispatch(listGroups('', query_group_filter)); + } + }, [dispatch, many_groups, query_group_filter]); + + const onReset = (event) => { + // event.preventDefault(); + let element = event.target.querySelector('input'); + element.value = ''; + element.focus(); + let searchtype = element.name; + switch (searchtype) { + case 'SearchUser': + setQuery_user(''); + break; + case 'SearchGroup': + setQuery_group(''); + break; + case 'SearchGroupFilter': + setQuery_group_filter(''); + setGroups_filter([]); + break; + default: + break; + } + }; + + const onChangeSearchUsers = (event) => { + if (many_users || many_groups) { + // search only on hitting return key + if (event.keyCode === 13) { + setQuery_user(event.target.value); + event.preventDefault(); + } + } else { + setQuery_user(event.target.value); + } + }; + + const onChangeSearchGroups = (event) => { + if (many_users || many_groups) { + // search only on hitting return key + if (event.keyCode === 13) { + setQuery_group(event.target.value); + event.preventDefault(); + } + } else { + setQuery_group(event.target.value); + } + }; + + const onSelectOptionHandler = (filter_option, checked) => { + let groups_filter_set_new = []; + if (checked) { + groups_filter_set_new = new Set([...groups_filter, filter_option]); + } else { + groups_filter_set_new = groups_filter.filter( + (el) => el.value !== filter_option.value, + ); + } + if (!isEqual(groups_filter_set_new, new Set(groups_filter))) { + setGroups_filter([...groups_filter_set_new]); + } + }; + const onToggleJoinedGroups = (checked) => { + setAdd_joined_groups(checked); + }; + + const onChangeSearchGroupsFilter = (event) => { + if (many_users || many_groups) { + // search only on hitting return key + if (event.keyCode === 13) { + setQuery_group_filter(event.target.value); + event.preventDefault(); + } + } else { + setQuery_group_filter(event.target.value); + } + }; + + return ( +
+
+
+
+ + + +
+
+
+
+ + + + + { + onToggleJoinedGroups(checked); + }} + /> + +
+
+
+
+
+

{intl.formatMessage(messages.filterByGroups)}

+
+ + + +
+ {(!many_groups || query_group_filter.length > 1) && + filter_options?.map((filter_option) => ( + + { + onSelectOptionHandler(filter_option, checked); + }} + /> + + ))} +
+ +
+
+ ); +}; + +export default UserGroupMembershipMatrix; diff --git a/src/theme/ItaliaTheme/Views/_persona.scss b/src/theme/ItaliaTheme/Views/_persona.scss index d7cbf1e67..cd62f9e8f 100644 --- a/src/theme/ItaliaTheme/Views/_persona.scss +++ b/src/theme/ItaliaTheme/Views/_persona.scss @@ -5,4 +5,10 @@ font-weight: 600; } } + + #altri_incarichi { + .chip { + text-decoration: none; + } + } } From 111633799e2454d11c9a54916fd1530f4791cf02 Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Tue, 4 Jun 2024 17:27:36 +0200 Subject: [PATCH 2/8] fix: removed unused customization --- .../Users/UserGroupMembershipMatrix.jsx | 210 ------------------ 1 file changed, 210 deletions(-) delete mode 100644 src/customizations/volto/components/manage/ControlPanels/Users/UserGroupMembershipMatrix.jsx diff --git a/src/customizations/volto/components/manage/ControlPanels/Users/UserGroupMembershipMatrix.jsx b/src/customizations/volto/components/manage/ControlPanels/Users/UserGroupMembershipMatrix.jsx deleted file mode 100644 index 6e784c0c0..000000000 --- a/src/customizations/volto/components/manage/ControlPanels/Users/UserGroupMembershipMatrix.jsx +++ /dev/null @@ -1,210 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { useSelector, useDispatch } from 'react-redux'; -import { useIntl } from 'react-intl'; -import { Checkbox, Form, Input } from 'semantic-ui-react'; - -import { isEqual } from 'lodash'; - -import { messages } from '@plone/volto/helpers'; -import { listGroups } from '@plone/volto/actions'; // getRegistry -import UserGroupMembershipListing from './UserGroupMembershipListing'; - -const UserGroupMembershipMatrix = ({ many_users, many_groups }) => { - const intl = useIntl(); - const dispatch = useDispatch(); - - const [query_user, setQuery_user] = useState(''); // Show users matching the search string - const [query_group, setQuery_group] = useState(''); // Show groups matching the search string - const [query_group_filter, setQuery_group_filter] = useState(''); // Offer groups matching the search string to filter users - const [groups_filter, setGroups_filter] = useState([]); // Show users joining these groups. - const [add_joined_groups, setAdd_joined_groups] = useState(false); - - let filter_options = useSelector((state) => state.groups.filter_groups); - if (filter_options) { - filter_options = filter_options.map((group) => ({ - value: group.id, - label: group.title || group.id, - })); - filter_options.sort(function (a, b) { - var labelA = a.label.toUpperCase(); - var labelB = b.label.toUpperCase(); - if (labelA < labelB) { - return -1; - } - if (labelA > labelB) { - return 1; - } - return 0; - }); - } - - useEffect(() => { - // TODO fetch group for at least query_group_filter.length > 1? - if (!many_groups || (many_groups && query_group_filter.length > 1)) { - dispatch(listGroups('', query_group_filter)); - } - }, [dispatch, many_groups, query_group_filter]); - - const onReset = (event) => { - // event.preventDefault(); - let element = event.target.querySelector('input'); - element.value = ''; - element.focus(); - let searchtype = element.name; - switch (searchtype) { - case 'SearchUser': - setQuery_user(''); - break; - case 'SearchGroup': - setQuery_group(''); - break; - case 'SearchGroupFilter': - setQuery_group_filter(''); - setGroups_filter([]); - break; - default: - break; - } - }; - - const onChangeSearchUsers = (event) => { - if (many_users || many_groups) { - // search only on hitting return key - if (event.keyCode === 13) { - setQuery_user(event.target.value); - event.preventDefault(); - } - } else { - setQuery_user(event.target.value); - } - }; - - const onChangeSearchGroups = (event) => { - if (many_users || many_groups) { - // search only on hitting return key - if (event.keyCode === 13) { - setQuery_group(event.target.value); - event.preventDefault(); - } - } else { - setQuery_group(event.target.value); - } - }; - - const onSelectOptionHandler = (filter_option, checked) => { - let groups_filter_set_new = []; - if (checked) { - groups_filter_set_new = new Set([...groups_filter, filter_option]); - } else { - groups_filter_set_new = groups_filter.filter( - (el) => el.value !== filter_option.value, - ); - } - if (!isEqual(groups_filter_set_new, new Set(groups_filter))) { - setGroups_filter([...groups_filter_set_new]); - } - }; - const onToggleJoinedGroups = (checked) => { - setAdd_joined_groups(checked); - }; - - const onChangeSearchGroupsFilter = (event) => { - if (many_users || many_groups) { - // search only on hitting return key - if (event.keyCode === 13) { - setQuery_group_filter(event.target.value); - event.preventDefault(); - } - } else { - setQuery_group_filter(event.target.value); - } - }; - - return ( -
-
-
-
- - - -
-
-
-
- - - - - { - onToggleJoinedGroups(checked); - }} - /> - -
-
-
-
-
-

{intl.formatMessage(messages.filterByGroups)}

-
- - - -
- {(!many_groups || query_group_filter.length > 1) && - filter_options?.map((filter_option) => ( - - { - onSelectOptionHandler(filter_option, checked); - }} - /> - - ))} -
- -
-
- ); -}; - -export default UserGroupMembershipMatrix; From b9b69f41f4e5feca7c9f7e67f1ebdb0803c1c58a Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Thu, 6 Jun 2024 11:32:40 +0200 Subject: [PATCH 3/8] feat: show more than one incarico in CT Persona --- src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx index ce8ae4a92..4f61f8396 100644 --- a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +++ b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx @@ -157,7 +157,7 @@ const PersonaRuolo = ({ content }) => { title={intl.formatMessage( messages.importi_di_viaggio_e_o_servizi, )} - data={content.incarichi_persona[0].importi_di_viaggio_e_o_servizi} + data={content.incarichi_persona[0].importi_viaggio_servizio} > {content.incarichi_persona[0]?.importi_di_viaggio_e_o_servizi ?.length > 0 && ( From 60b071306770d70ffed9267350636c8987ccaa1b Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Thu, 6 Jun 2024 11:36:32 +0200 Subject: [PATCH 4/8] chore: added release.md info --- RELEASE.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/RELEASE.md b/RELEASE.md index 4c400b415..efbaf79af 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -41,6 +41,20 @@ - ... --> +## Versione X.X.X (dd/mm/yyyy) + +### Migliorie + +- Nel CT Persona viene visualizzato anche il testo del campo "Importi di viaggio e/o servizi" impostato nel CT Incarico collegato, e, se presente più di un Incarico collegato, vengono mostrati i link a ciascun Incarico nella sezione "Altri incarichi" + +### Novità + +- ... + +### Fix + +- ... + ## Versione 11.12.6 (30/05/2024) ### Fix From daf25697e9d6a033ba0847fbd4e1c2c74e207606 Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Fri, 7 Jun 2024 14:05:23 +0200 Subject: [PATCH 5/8] fix: changed altri incarichi into list --- .../ItaliaTheme/View/PersonaView/PersonaRuolo.jsx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx index 4f61f8396..fd437c547 100644 --- a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +++ b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx @@ -246,16 +246,11 @@ const PersonaRuolo = ({ content }) => { > {content.incarichi_persona.map((incarico, index) => index > 0 ? ( - - {incarico.title} - +
  • + + {incarico.title} + +
  • ) : null, )}
    From 6f419f89852881699592a07146e9ef8aecdd9bed Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Fri, 7 Jun 2024 14:10:00 +0200 Subject: [PATCH 6/8] chore: removed unused import --- src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx index fd437c547..a80e048e7 100644 --- a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +++ b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx @@ -11,7 +11,6 @@ import { contentFolderHasItems, viewDate, } from 'design-comuni-plone-theme/helpers'; -import { Chip, ChipLabel } from 'design-react-kit'; const messages = defineMessages({ ruolo: { From 201bf24109135fa65f8b3a71b98c871ac4e6cb3c Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Fri, 7 Jun 2024 14:10:40 +0200 Subject: [PATCH 7/8] chore: removed unused styles --- src/theme/ItaliaTheme/Views/_persona.scss | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/theme/ItaliaTheme/Views/_persona.scss b/src/theme/ItaliaTheme/Views/_persona.scss index cd62f9e8f..d7cbf1e67 100644 --- a/src/theme/ItaliaTheme/Views/_persona.scss +++ b/src/theme/ItaliaTheme/Views/_persona.scss @@ -5,10 +5,4 @@ font-weight: 600; } } - - #altri_incarichi { - .chip { - text-decoration: none; - } - } } From 0e32570c0eb4387a2aade20978e6eb67cc167809 Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Tue, 11 Jun 2024 16:57:20 +0200 Subject: [PATCH 8/8] fix: html syntax --- locales/de/LC_MESSAGES/volto.po | 5 +++++ locales/en/LC_MESSAGES/volto.po | 5 +++++ locales/es/LC_MESSAGES/volto.po | 5 +++++ locales/fr/LC_MESSAGES/volto.po | 5 +++++ locales/it/LC_MESSAGES/volto.po | 5 +++++ locales/volto.pot | 7 ++++++- .../View/PersonaView/PersonaRuolo.jsx | 20 ++++++++++--------- 7 files changed, 42 insertions(+), 10 deletions(-) diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 959f1d96a..534ed2d12 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -2914,6 +2914,11 @@ msgstr "" msgid "quartiere" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo +# defaultMessage: Rassegna: +msgid "rassegna_label" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeader # defaultMessage: Tempo di lettura msgid "reading_time" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 413a6c816..0473bd259 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -2899,6 +2899,11 @@ msgstr "" msgid "quartiere" msgstr "District " +#: components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo +# defaultMessage: Rassegna: +msgid "rassegna_label" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeader # defaultMessage: Tempo di lettura msgid "reading_time" diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 7438cb8de..071c8a444 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -2908,6 +2908,11 @@ msgstr "" msgid "quartiere" msgstr "Vecindario" +#: components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo +# defaultMessage: Rassegna: +msgid "rassegna_label" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeader # defaultMessage: Tempo di lettura msgid "reading_time" diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index 6f86bb0f5..b1c156600 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -2916,6 +2916,11 @@ msgstr "" msgid "quartiere" msgstr "Quartier " +#: components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo +# defaultMessage: Rassegna: +msgid "rassegna_label" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeader # defaultMessage: Tempo di lettura msgid "reading_time" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index f94c0b388..b58f51bfc 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -2899,6 +2899,11 @@ msgstr "Data di pubblicazione" msgid "quartiere" msgstr "Quartiere" +#: components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo +# defaultMessage: Rassegna: +msgid "rassegna_label" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeader # defaultMessage: Tempo di lettura msgid "reading_time" diff --git a/locales/volto.pot b/locales/volto.pot index a59f6ac4d..2ad00fb76 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-06-04T15:14:53.287Z\n" +"POT-Creation-Date: 2024-06-11T14:57:29.832Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -2901,6 +2901,11 @@ msgstr "" msgid "quartiere" msgstr "" +#: components/ItaliaTheme/Blocks/Listing/Commons/RassegnaInfo +# defaultMessage: Rassegna: +msgid "rassegna_label" +msgstr "" + #: components/ItaliaTheme/View/Commons/PageHeader/PageHeader # defaultMessage: Tempo di lettura msgid "reading_time" diff --git a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx index a80e048e7..ee63a92a7 100644 --- a/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx +++ b/src/components/ItaliaTheme/View/PersonaView/PersonaRuolo.jsx @@ -243,15 +243,17 @@ const PersonaRuolo = ({ content }) => { tag_id="altri_incarichi" title={intl.formatMessage(messages.altri_incarichi)} > - {content.incarichi_persona.map((incarico, index) => - index > 0 ? ( -
  • - - {incarico.title} - -
  • - ) : null, - )} +
      + {content.incarichi_persona.map((incarico, index) => + index > 0 ? ( +
    • + + {incarico.title} + +
    • + ) : null, + )} +
    )}