forked from italia/design-comuni-plone-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added pre-filters in BandoSearch and updated user selection fil…
…ters, added parameters in bando listing block (#537)
- Loading branch information
1 parent
1c917f8
commit 50a232d
Showing
13 changed files
with
265 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Plone\n" | ||
"POT-Creation-Date: 2024-01-16T14:29:53.874Z\n" | ||
"POT-Creation-Date: 2024-02-07T17:28:21.593Z\n" | ||
"Last-Translator: Plone i18n <[email protected]>\n" | ||
"Language-Team: Plone i18n <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
|
@@ -2885,6 +2885,16 @@ msgstr "" | |
msgid "searchBlock_help" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/Blocks/BandiSearch/Sidebar | ||
# defaultMessage: Questi filtri non verranno visualizzati dall'utente ma consentono di pre filtrare i bandi secondo alcuni criteri. | ||
msgid "searchBlock_help_filters" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/Blocks/BandiSearch/Sidebar | ||
# defaultMessage: Filtri pre-impostati | ||
msgid "searchBlock_pre_filters" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/Blocks/BandiSearch/Sidebar | ||
#: components/ItaliaTheme/Blocks/EventSearch/Sidebar | ||
#: components/ItaliaTheme/Blocks/UOSearch/Sidebar | ||
|
@@ -3205,6 +3215,11 @@ msgstr "" | |
msgid "share" | ||
msgstr "" | ||
|
||
#: config/Blocks/ListingOptions/bandiInEvidenceTemplate | ||
# defaultMessage: Mostra la data di ultima modifica | ||
msgid "show_data_ultima_modifica" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/Blocks/HighlightedContent/Sidebar | ||
# defaultMessage: Mostra la data | ||
msgid "show_date" | ||
|
@@ -3256,6 +3271,11 @@ msgstr "" | |
msgid "show_map_full_width" | ||
msgstr "" | ||
|
||
#: config/Blocks/ListingOptions/bandiInEvidenceTemplate | ||
# defaultMessage: Mostra le note anche per i bandi scaduti | ||
msgid "show_note" | ||
msgstr "" | ||
|
||
#: config/Blocks/ListingOptions/ribbonCardTemplate | ||
# defaultMessage: Mostra il nastro solo sulla prima card | ||
msgid "show_only_first_ribbon" | ||
|
@@ -3578,6 +3598,11 @@ msgstr "" | |
msgid "ulteriori_informazioni" | ||
msgstr "" | ||
|
||
#: components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate | ||
# defaultMessage: Data di ultima modifica | ||
msgid "ultima_modifica_bando" | ||
msgstr "" | ||
|
||
#: helpers/amministrazioneTrasparenteHelper | ||
# defaultMessage: unità operativa | ||
msgid "unita_operativa" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
export const GET_SEARCH_BANDI_FILTERS = 'GET_SEARCH_BANDI_FILTERS'; | ||
import { expandToBackendURL } from '@plone/volto/helpers'; | ||
|
||
/** | ||
* Get search bandi filters. | ||
* @function getSearchBandiFilters | ||
* @returns {Object} Get search bandi filters action. | ||
*/ | ||
* @returns {Object} Get search bandi filters action: | ||
* { | ||
* offices: [], | ||
* subjects: [], | ||
* tipologie: [], | ||
* } | ||
*/ | ||
|
||
export function getSearchBandiFilters(path = '') { | ||
let p = path === '/' ? '' : path; | ||
// let p = path === '/' ? '' : path; | ||
const pathSearchFilters = `${path === '/' ? '' : expandToBackendURL(path)}/@bandi-search-filters`; | ||
return { | ||
type: GET_SEARCH_BANDI_FILTERS, | ||
request: { | ||
op: 'get', | ||
path: p + '/@bandi-search-filters', | ||
path: pathSearchFilters, | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.