updated profiledConcessioni with "apply_regex" config

This commit is contained in:
Francesco Mangiacrapa 2023-12-21 16:40:58 +01:00
parent b1e4f70afb
commit 1ebb7a3aef
1 changed files with 293 additions and 172 deletions

View File

@ -1,7 +1,7 @@
{ {
"_id": "profiledConcessioni", "_id": "profiledConcessioni",
"_version": "1.0.0", "_version": "1.0.0",
"_name": "Concessione", "_name": "Indagini svolte in regime di concessione",
"_schema": { "_schema": {
"abstractRelazione": { "abstractRelazione": {
"_min": 1, "_min": 1,
@ -42,7 +42,7 @@
] ]
}, },
"immaginiRappresentative": { "immaginiRappresentative": {
"_max": 8, "_max": 4,
"_children": [ "_children": [
{ {
"fileset": { "fileset": {
@ -91,10 +91,10 @@
] ]
} }
}, },
"_description": "Embedded profile for concessioni [mibac] management", "_description": "Embedded profile for concessioni management",
"_creationInfo": { "_creationInfo": {
"_user": { "_user": {
"_username": "fabio.sinibaldi" "_username": "francesco.mangiacrapa"
} }
}, },
"_dataAccessPolicies": [ "_dataAccessPolicies": [
@ -103,7 +103,18 @@
"_read": "any", "_read": "any",
"_write": "any" "_write": "any"
}, },
"_roles": [] "_roles": [
"Data-Manager"
]
},
{
"_policy": {
"_read": "own",
"_write": "own"
},
"_roles": [
"Data-Editor"
]
}, },
{ {
"_policy": { "_policy": {
@ -111,7 +122,7 @@
"_write": "none" "_write": "none"
}, },
"_roles": [ "_roles": [
"Guest" "Member"
], ],
"_enforcer": { "_enforcer": {
"_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}" "_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}"
@ -119,21 +130,10 @@
}, },
{ {
"_policy": { "_policy": {
"_read": "any", "_read": "none",
"_write": "none" "_write": "none"
}, },
"_roles": [ "_roles": []
"Admin"
]
},
{
"_policy": {
"_read": "any",
"_write": "any"
},
"_roles": [
"Data-Manager"
]
} }
], ],
"_handlers": [ "_handlers": [
@ -149,7 +149,8 @@
{ {
"STEP": "REJECT-DRAFT", "STEP": "REJECT-DRAFT",
"roles": [ "roles": [
"Data-Manager" "Data-Manager",
"Data-Editor"
] ]
}, },
{ {
@ -157,6 +158,12 @@
"roles": [ "roles": [
"Data-Manager" "Data-Manager"
] ]
},
{
"STEP": "UNPUBLISH",
"roles": [
"Data-Manager"
]
} }
] ]
} }
@ -191,13 +198,13 @@
"type": "TEXT" "type": "TEXT"
}, },
{ {
"name": "anno", "name": "data_inizio_progetto",
"path": "$._theDocument.dataFineProgetto", "path": "$._theDocument.dataInizioProgetto",
"type": "TEXT" "type": "TEXT"
}, },
{ {
"name": "descrizione", "name": "descrizione",
"path": "$._theDocument.iontroduzione", "path": "$._theDocument.introduzione",
"type": "TEXT" "type": "TEXT"
}, },
{ {
@ -246,7 +253,7 @@
"type": "TEXT" "type": "TEXT"
}, },
{ {
"name": "date_scavo", "name": "data_fine_progetto",
"path": "$._theDocument.dataFineProgetto", "path": "$._theDocument.dataFineProgetto",
"type": "TEXT" "type": "TEXT"
}, },
@ -279,7 +286,17 @@
"name": "parole_chiave", "name": "parole_chiave",
"path": "$._theDocument.paroleChiaveLibere", "path": "$._theDocument.paroleChiaveLibere",
"type": "TEXT" "type": "TEXT"
} },
{
"name": "cronologia_macrofase",
"path": "$._theDocument.cronologia_macrofase",
"type": "TEXT",
"apply_regex": {
"type": "replaceAll",
"regex": "(\\s)?\\([\\s\\S]*",
"replacement": ""
}
}
], ],
"jslt": {}, "jslt": {},
"additionalLayers": [ "additionalLayers": [
@ -295,7 +312,6 @@
{ {
"_id": "org.gcube.portlets.user.geoportal-data-entry-app", "_id": "org.gcube.portlets.user.geoportal-data-entry-app",
"_type": "DATA_ENTRY_GUI", "_type": "DATA_ENTRY_GUI",
"_item_type": "Concessione",
"_configuration": { "_configuration": {
"gcubeProfiles": [ "gcubeProfiles": [
{ {
@ -308,7 +324,7 @@
"gcubeSecondaryType": "GeoNaMetadata", "gcubeSecondaryType": "GeoNaMetadata",
"gcubeName": "Abstract_Relazione_di_Scavo", "gcubeName": "Abstract_Relazione_di_Scavo",
"sectionName": "abstractRelazione", "sectionName": "abstractRelazione",
"sectionTitle": "Abstract Relazione Scavo", "sectionTitle": "Abstract della Relazione Scientifica",
"parentName": "$.", "parentName": "$.",
"filePaths": [ "filePaths": [
{ {
@ -327,11 +343,11 @@
"gcubeSecondaryType": "GeoNaMetadata", "gcubeSecondaryType": "GeoNaMetadata",
"gcubeName": "Relazione_di_Scavo", "gcubeName": "Relazione_di_Scavo",
"sectionName": "relazioneScavo", "sectionName": "relazioneScavo",
"sectionTitle": "Relazione di Scavo", "sectionTitle": "Relazione Scientifica",
"parentName": "$.", "parentName": "$.",
"filePaths": [ "filePaths": [
{ {
"gcubeProfileFieldName": "Relazione di fine scavo (in PDF)", "gcubeProfileFieldName": "Relazione scientifica (in PDF)",
"fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]", "fieldDefinition": "$.relazioneScavo._children[?(@.fileset)]",
"fieldName": "fileset" "fieldName": "fileset"
} }
@ -343,7 +359,7 @@
"sectionName": "immaginiRappresentative", "sectionName": "immaginiRappresentative",
"sectionTitle": "Immagini Rappresentative", "sectionTitle": "Immagini Rappresentative",
"minOccurs": 1, "minOccurs": 1,
"maxOccurs": 8, "maxOccurs": 4,
"parentName": "$.", "parentName": "$.",
"filePaths": [ "filePaths": [
{ {
@ -371,7 +387,7 @@
"gcubeSecondaryType": "GeoNaMetadata", "gcubeSecondaryType": "GeoNaMetadata",
"gcubeName": "Pianta_di_fine_Scavo", "gcubeName": "Pianta_di_fine_Scavo",
"sectionName": "pianteFineScavo", "sectionName": "pianteFineScavo",
"sectionTitle": "Piante di fine Scavo", "sectionTitle": "Piante di Fine Indagine",
"parentName": "$.", "parentName": "$.",
"minOccurs": 0, "minOccurs": 0,
"maxOccurs": 0, "maxOccurs": 0,
@ -384,140 +400,141 @@
] ]
} }
], ],
"saveStep": "SUBMIT-FOR-REVIEW" "saveStep": ""
} }
}, },
{ {
"_id": "org.gcube.portlets.user.geoportal-data-list", "_id": "org.gcube.portlets.user.geoportal-data-list",
"_type": "DATA_LIST_GUI", "_type": "DATA_LIST_GUI",
"_configuration": { "_configuration": {
"itemFields": [ "itemFields": [
{ {
"label": "Any Field", "label": "Descriptive Fields",
"paths": [ "paths": [
"_theDocument.nome", "_theDocument.nome",
"_theDocument.introduzione", "_theDocument.introduzione",
"_theDocument.authors", "_theDocument.authors",
"_theDocument.contributore", "_theDocument.contributore",
"_theDocument.titolari", "_theDocument.titolari",
"_theDocument.editore", "_theDocument.dataInizioProgetto",
"_theDocument.responsabile", "_theDocument.editore",
"_theDocument.paroleChiaveLibere", "_theDocument.responsabile",
"_theDocument.paroleChiaveICCD" "_theDocument.paroleChiaveLibere",
], "_theDocument.paroleChiaveICCD"
"operator": "$or", ],
"searchable": true, "operator": "$or",
"sortable": false, "searchable": true,
"asResult": false "sortable": false,
}, "asResult": false
{ },
"label": "Name", {
"paths": [ "label": "Name",
"_theDocument.nome" "paths": [
], "_theDocument.nome"
"operator": "$and", ],
"searchable": true, "operator": "$and",
"sortable": true, "searchable": true,
"asResult": true "sortable": true,
}, "asResult": true
{ },
"label": "Introduction", {
"paths": [ "label": "Introduction",
"_theDocument.introduzione" "paths": [
], "_theDocument.introduzione"
"operator": "$and", ],
"searchable": true, "operator": "$and",
"sortable": false, "searchable": true,
"asResult": true "sortable": false,
}, "asResult": true
{ },
"label": "Author/s", {
"paths": [ "label": "Author/s",
"_theDocument.authors" "paths": [
], "_theDocument.authors"
"operator": "$and", ],
"searchable": false, "operator": "$and",
"sortable": true, "searchable": false,
"asResult": true "sortable": true,
}, "asResult": true
{ },
"label": "Project Start", {
"paths": [ "label": "Project Start (yyyy-mm-dd)",
"_theDocument.dataInizioProgetto" "paths": [
], "_theDocument.dataInizioProgetto"
"operator": "$and", ],
"searchable": false, "operator": "$and",
"sortable": true, "searchable": true,
"asResult": true "sortable": true,
}, "asResult": true
{ },
"label": "Director/Staff", {
"paths": [ "label": "Director/Staff",
"_theDocument.authors", "paths": [
"_theDocument.contributore", "_theDocument.authors",
"_theDocument.titolari", "_theDocument.contributore",
"_theDocument.editore", "_theDocument.titolari",
"_theDocument.responsabile" "_theDocument.editore",
], "_theDocument.responsabile"
"operator": "$or", ],
"searchable": true, "operator": "$or",
"sortable": false, "searchable": true,
"asResult": true "sortable": false,
}, "asResult": true
{ },
"label": "Keywords", {
"paths": [ "label": "Keywords",
"_theDocument.paroleChiaveLibere", "paths": [
"_theDocument.paroleChiaveICCD" "_theDocument.paroleChiaveLibere",
], "_theDocument.paroleChiaveICCD"
"operator": "$or", ],
"searchable": true, "operator": "$or",
"sortable": false, "searchable": true,
"asResult": true "sortable": false,
}, "asResult": true
{ },
"label": "Creator", {
"paths": [ "label": "Creator",
"_info._creationInfo._user._username" "paths": [
], "_info._creationInfo._user._username"
"operator": "$or", ],
"searchable": true, "operator": "$or",
"sortable": false, "searchable": true,
"asResult": false "sortable": false,
}, "asResult": false
{ },
"label": "Updated", {
"paths": [ "label": "Updated",
"_info._lastEditInfo._instant" "paths": [
], "_info._lastEditInfo._instant"
"operator": "$or", ],
"searchable": false, "operator": "$or",
"sortable": true, "searchable": false,
"asResult": false "sortable": true,
}, "asResult": false
{ },
"label": "Phase", {
"paths": [ "label": "Phase",
"_lifecycleInformation._phase" "paths": [
], "_lifecycleInformation._phase"
"operator": "$or", ],
"searchable": true, "operator": "$or",
"sortable": true, "searchable": true,
"asResult": false "sortable": true,
}, "asResult": false
{ },
"label": "Status", {
"paths": [ "label": "Status",
"_lifecycleInformation._lastOperationStatus" "paths": [
], "_lifecycleInformation._lastOperationStatus"
"operator": "$or", ],
"searchable": true, "operator": "$or",
"sortable": true, "searchable": true,
"asResult": false "sortable": true,
"asResult": false
}
]
} }
] },
}
},
{ {
"_id": "org.gcube.portlets.user.geoportal-basic-data-list", "_id": "org.gcube.portlets.user.geoportal-basic-data-list",
"_type": "BASIC_DATA_LIST_GUI", "_type": "BASIC_DATA_LIST_GUI",
@ -571,6 +588,16 @@
"sortable": false, "sortable": false,
"asResult": true "asResult": true
}, },
{
"label": "Project Start (YEAR)",
"paths": [
"_theDocument.dataInizioProgetto"
],
"operator": "$and",
"searchable": true,
"sortable": false,
"asResult": false
},
{ {
"label": "Director/Staff", "label": "Director/Staff",
"paths": [ "paths": [
@ -598,8 +625,7 @@
} }
] ]
} }
} },
,
{ {
"_id": "org.gcube.portlets.user.geoportal-timeline-json-template", "_id": "org.gcube.portlets.user.geoportal-timeline-json-template",
"_type": "TIMELINE_JSON_TEMPLATE", "_type": "TIMELINE_JSON_TEMPLATE",
@ -612,6 +638,86 @@
} }
} }
}, },
{
"_id": "org.gcube.portlets.user.grouped_overlay_layers",
"_type": "GROUPED_OVERLAY_LAYERS",
"_configuration": {
"grouped_overlay_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Layers automatically added to the Map",
"layers": [
{
"title": "Regioni",
"name": "limiti_amministrativi:regioni",
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:regioni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Province",
"name": "limiti_amministrativi:province",
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:province&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
},
{
"title": "Comuni",
"name": "limiti_amministrativi:comuni",
"wms_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=limiti_amministrativi:comuni&styles=&bbox=6.626621368537682,35.49285260122859,18.520381599098922,47.09178374646218&width=768&height=748&srs=EPSG:4326&format=application%2Fopenlayers",
"display": true
}
]
}
]
}
},
{
"_id": "org.gcube.portlets.user.grouped_cross_filtering_layers",
"_type": "GROUPED_CROSS_FILTERING_LAYERS",
"_configuration": {
"grouped_cross_filtering_layers": [
{
"name": "Limiti Amministrativi Italiani 2023 (fonte ISTAT)",
"description": "Spatial filtering for the selected layer",
"layers": [
{
"title": "Regioni",
"description": "Le Regioni Italiane",
"name": "limiti_amministrativi:regioni",
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:regioni&maxFeatures=50&outputFormat=application%2Fjson&propertyName=COD_REG,DEN_REG&sortby=DEN_REG",
"table_show_field": "DEN_REG",
"table_key_field": "COD_REG",
"table_parent_key_field": "",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Province",
"description": "Le Province Italiane",
"name": "limiti_amministrativi:province",
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:province&maxFeatures=150&outputFormat=application%2Fjson&propertyName=COD_PROV,DEN_PROV,COD_REG&sortby=DEN_PROV",
"table_show_field": "DEN_PROV",
"table_key_field": "COD_PROV",
"table_parent_key_field": "COD_REG",
"table_geometry_name": "the_geom",
"related_to": [
{
"title": "Comuni",
"description": "I Comuni Italiani",
"name": "limiti_amministrativi:comuni",
"wfs_url": "https://geoserver-1.cloud-dev.d4science.org/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=limiti_amministrativi:comuni&maxFeatures=9000&outputFormat=application%2Fjson&propertyName=PRO_COM,COMUNE,COD_PROV&sortby=COMUNE",
"table_show_field": "COMUNE",
"table_key_field": "PRO_COM",
"table_parent_key_field": "COD_PROV",
"table_geometry_name": "the_geom"
}
]
}
]
}
]
}
]
}
},
{ {
"_id": "org.gcube.portlets.user.geoportal-workflow-action-list", "_id": "org.gcube.portlets.user.geoportal-workflow-action-list",
"_type": "WORKFLOW_ACTION_LIST_GUI", "_type": "WORKFLOW_ACTION_LIST_GUI",
@ -620,9 +726,7 @@
{ {
"id": "post_creation_action", "id": "post_creation_action",
"title": "Post Creation Action", "title": "Post Creation Action",
"call_STEPS": [ "call_STEPS": [],
"SUBMIT-FOR-REVIEW"
],
"description": "Action fired after the Project creation", "description": "Action fired after the Project creation",
"display_on_phase": [] "display_on_phase": []
}, },
@ -658,15 +762,32 @@
"display_on_phase": [ "display_on_phase": [
"Pending Approval" "Pending Approval"
] ]
},
{
"id": "unpublish",
"title": "UnPublish",
"call_STEPS": [
"UNPUBLISH"
],
"description": "UnPublish the Project",
"display_on_phase": [
"Published"
]
} }
] ]
} }
} }
], ],
"_relationshipDefinitions" : [ "_relationshipDefinitions": [
{"_id": "precedes", "_label" : "Precede", {
"_reverseRelationId" : "follows"}, "_id": "precedes",
{"_id": "follows", "_label" : "Segue", "_label": "Precede",
"_reverseRelationId" : "precedes"} "_reverseRelationId": "follows"
},
{
"_id": "follows",
"_label": "Segue",
"_reverseRelationId": "precedes"
}
] ]
} }