diff --git a/geoportal-service/src/main/resources/profiles/profiledConcessioni.json b/geoportal-service/src/main/resources/profiles/profiledConcessioni.json index 601fb66..b3d72d5 100644 --- a/geoportal-service/src/main/resources/profiles/profiledConcessioni.json +++ b/geoportal-service/src/main/resources/profiles/profiledConcessioni.json @@ -4,29 +4,36 @@ "_name" : "Concessione", "_schema" : { - "relazioneScavo" : { "_max" : 1, "_min" : 1, + "abstractRelazione" : { "_min" : 1, "_children" : [ - {"fileset" :{"_type" : "RegisteredFileSet"}}, - {"title" : {"_max" : 1, "_min" : 1}} + {"filesetIta" :{"_type" : "RegisteredFileSet", "_min": 1}}, + {"filesetEng" :{"_type" : "RegisteredFileSet"}}, + {"title" : {"_min" : 1}} ] }, - "imgs" : { - "_max" : -1, + "relazioneScavo" : { "_max" : 1, "_min" : 1, "_children" : [ - {"fileset" :{"_type" : "RegisteredFileSet"}}, - {"title" : {"_max" : 1, "_min" : 1}} + {"fileset" :{"_type" : "RegisteredFileSet", "_min": 1}}, + {"title" : {"_min" : 1}} + ] + }, + "immaginiRappresentative" : { + "_max" : 8, + "_children" : [ + {"fileset" :{"_type" : "RegisteredFileSet","_min": 1}}, + {"title" : {"_min" : 1}} ] }, "posizionamentoScavo" : { "_max" : 1, "_min" : 1, "_children" : [ - {"fileset" :{"_type" : "RegisteredFileSet"}}, - {"title" : {"_max" : 1, "_min" : 1}} + {"fileset" :{"_type" : "RegisteredFileSet","_min": 1}}, + {"title" : {"_min" : 1}} ] }, - "pianteFineScavo" : { "_max" : -1, "_min" : 1, + "pianteFineScavo" : { "_max" : -1, "_children" : [ - {"fileset" :{"_type" : "RegisteredFileSet"}}, - {"title" : {"_max" : 1, "_min" : 1}} + {"fileset" :{"_type" : "RegisteredFileSet","_min": 1}}, + {"title" : {"_min" : 1}} ] } }, @@ -105,11 +112,13 @@ "parentName": "$.", "filePaths": [ { - "fieldDefinition": "Carica Abstract Ita (in PDF)", + "gcubeProfileFieldName": "Carica Abstract Ita (in PDF)", + "fieldDefinition": "abstractRelazione.children[?(@.filesetIta)]", "fieldName": "filesetIta" }, { - "fieldDefinition": "Carica Abstract Eng (in PDF)", + "gcubeProfileFieldName": "Carica Abstract Eng (in PDF)", + "fieldDefinition": "abstractRelazione.children[?(@.filesetEng)]", "fieldName": "filesetEng" } ] @@ -122,7 +131,8 @@ "parentName": "$.", "filePaths": [ { - "fieldDefinition": "Relazione di fine scavo (in PDF)", + "gcubeProfileFieldName": "Relazione di fine scavo (in PDF)", + "fieldDefinition": "relazioneScavo.children[?(@.fileset)]", "fieldName": "fileset" } ] @@ -130,14 +140,15 @@ { "gcubeSecondaryType": "GeoNaMetadata", "gcubeName": "Immagine_Rappresentativa_di_Scavo", - "sectionName": "immagini", + "sectionName": "immaginiRappresentative", "sectionTitle": "Immagini Rappresentative", "minOccurs": 1, "maxOccurs": 8, "parentName": "$.", "filePaths": [ { - "fieldDefinition": "Immagine", + "gcubeProfileFieldName": "Immagine", + "fieldDefinition": "immaginiRappresentative.children[?(@.fileset)]", "fieldName": "fileset" } ] @@ -150,7 +161,8 @@ "parentName": "$.", "filePaths": [ { - "fieldDefinition": "File", + "gcubeProfileFieldName": "File", + "fieldDefinition": "posizionamentoScavo.children[?(@.fileset)]", "fieldName": "fileset" } ] @@ -165,7 +177,8 @@ "maxOccurs": 0, "filePaths": [ { - "fieldDefinition": "File", + "gcubeProfileFieldName": "File", + "fieldDefinition": "pianteFineScavo.children[?(@.fileset)]", "fieldName": "fileset" } ]