added 'apply_regex' rule, see at #26322#note-2

This commit is contained in:
Francesco Mangiacrapa 2024-01-09 12:49:44 +01:00
parent c8a75ed10b
commit daaef8328f
2 changed files with 64 additions and 25 deletions

View File

@ -310,7 +310,12 @@
{ {
"name": "cronologia_macrofase", "name": "cronologia_macrofase",
"path": "$._theDocument.cronologiaMacrofase", "path": "$._theDocument.cronologiaMacrofase",
"type": "TEXT" "type": "TEXT",
"apply_regex": {
"type": "replaceAll",
"regex": "(\\s)?\\([\\s\\S]*",
"replacement": ""
}
}, },
{ {
"name": "specifiche_cronologia", "name": "specifiche_cronologia",

View File

@ -91,7 +91,7 @@
] ]
} }
}, },
"_description": "Embedded profile for concessioni management", "_description": "Embedded profile for concessioni [mibac] management",
"_creationInfo": { "_creationInfo": {
"_user": { "_user": {
"_username": "francesco.mangiacrapa" "_username": "francesco.mangiacrapa"
@ -212,21 +212,11 @@
"path": "$._theDocument.descrizioneContenuto", "path": "$._theDocument.descrizioneContenuto",
"type": "TEXT" "type": "TEXT"
}, },
{
"name": "autore",
"path": "$._theDocument.authors",
"type": "TEXT"
},
{ {
"name": "contributore", "name": "contributore",
"path": "$._theDocument.contributore", "path": "$._theDocument.contributore",
"type": "TEXT" "type": "TEXT"
}, },
{
"name": "titolare",
"path": "$._theDocument.titolari",
"type": "TEXT"
},
{ {
"name": "responsabile", "name": "responsabile",
"path": "$._theDocument.responsabile", "path": "$._theDocument.responsabile",
@ -237,6 +227,16 @@
"path": "$._theDocument.editore", "path": "$._theDocument.editore",
"type": "TEXT" "type": "TEXT"
}, },
{
"name": "ufficio_MiC_competente",
"path": "$._theDocument.ufficioMic",
"type": "TEXT"
},
{
"name": "funzionario_responsabile",
"path": "$._theDocument.funzionarioResponsabile",
"type": "TEXT"
},
{ {
"name": "finanziamento", "name": "finanziamento",
"path": "$._theDocument.fontiFinanziamento", "path": "$._theDocument.fontiFinanziamento",
@ -272,11 +272,6 @@
"path": "$._info._access._license", "path": "$._info._access._license",
"type": "TEXT" "type": "TEXT"
}, },
{
"name": "titolare_licenza",
"path": "$._theDocument.titolareLicenza",
"type": "TEXT"
},
{ {
"name": "accesso", "name": "accesso",
"path": "$._info._access._license", "path": "$._info._access._license",
@ -287,16 +282,56 @@
"path": "$._theDocument.paroleChiaveLibere", "path": "$._theDocument.paroleChiaveLibere",
"type": "TEXT" "type": "TEXT"
}, },
{ {
"name": "cronologia_macrofase", "name": "modalita_individuazione",
"path": "$._theDocument.cronologia_macrofase", "path": "$._theDocument.modalitaIndividuazione",
"type": "TEXT", "type": "TEXT"
"apply_regex": { },
{
"name": "contesto_indagine",
"path": "$._theDocument.contestoIndagine",
"type": "TEXT"
},
{
"name": "denominazione",
"path": "$._theDocument.denominazione",
"type": "TEXT"
},
{
"name": "stato_attuale",
"path": "$._theDocument.statoAttuale",
"type": "TEXT"
},
{
"name": "accessibilita",
"path": "$._theDocument.accessibilita",
"type": "TEXT"
},
{
"name": "cronologia_macrofase",
"path": "$._theDocument.cronologiaMacrofase",
"type": "TEXT",
"apply_regex": {
"type": "replaceAll", "type": "replaceAll",
"regex": "(\\s)?\\([\\s\\S]*", "regex": "(\\s)?\\([\\s\\S]*",
"replacement": "" "replacement": ""
} }
} },
{
"name": "specifiche_cronologia",
"path": "$._theDocument.specificheCronologia",
"type": "TEXT"
},
{
"name": "quota_max",
"path": "$._theDocument.quotaMax",
"type": "TEXT"
},
{
"name": "quota_min",
"path": "$._theDocument.quotaMax",
"type": "TEXT"
}
], ],
"jslt": {}, "jslt": {},
"additionalLayers": [ "additionalLayers": [
@ -409,14 +444,13 @@
"_configuration": { "_configuration": {
"itemFields": [ "itemFields": [
{ {
"label": "Descriptive Fields", "label": "Any Field",
"paths": [ "paths": [
"_theDocument.nome", "_theDocument.nome",
"_theDocument.introduzione", "_theDocument.introduzione",
"_theDocument.authors", "_theDocument.authors",
"_theDocument.contributore", "_theDocument.contributore",
"_theDocument.titolari", "_theDocument.titolari",
"_theDocument.dataInizioProgetto",
"_theDocument.editore", "_theDocument.editore",
"_theDocument.responsabile", "_theDocument.responsabile",
"_theDocument.paroleChiaveLibere", "_theDocument.paroleChiaveLibere",