initial stage

This commit is contained in:
Giambattista Bloisi 2024-04-18 12:01:43 +02:00
parent 26b0d7219d
commit f89898e99b
2 changed files with 69 additions and 0 deletions

View File

@ -45,6 +45,8 @@ def trasform_interoperability(p: dict) -> dict:
p = trasform_catalog_entity(p)
if 'domain' in p:
p['domain'] = {"domain": p['domain']}
p['licenseDetails'] = p['license']
p['license'] = p['license']['title'] if 'title' in p['license'] else ''
return p

View File

@ -684,6 +684,9 @@ mappings['services'] = {
"accessRestriction": {
"type": "keyword"
},
"accessTypes": {
"type": "keyword"
},
"access_modes": {
"type": "keyword"
},
@ -712,6 +715,12 @@ mappings['services'] = {
}
}
},
"grantProjectNames": {
"type": "text"
},
"helpdeskPage": {
"type": "text"
},
"horizontal": {
"type": "boolean"
},
@ -739,6 +748,9 @@ mappings['services'] = {
},
"type": "text"
},
"orderType": {
"type": "keyword"
},
"organization": {
"fields": {
"keyword": {
@ -748,6 +760,12 @@ mappings['services'] = {
},
"type": "text"
},
"pricing": {
"type": "text"
},
"privacyPolicy": {
"type": "text"
},
"providers": {
"fields": {
"keyword": {
@ -773,12 +791,37 @@ mappings['services'] = {
"targetUsers": {
"type": "keyword"
},
"termsOfUse": {
"type": "text"
},
"thematic": {
"type": "boolean"
},
"trl": {
"type": "keyword"
},
"type": {
"type": "keyword"
},
"useCases": {
"type": "object",
"properties": {
"useCase": {
"type": "object",
"properties": {
"useCaseName": {
"type": "keyword"
},
"useCaseURL": {
"type": "text"
}
}
}
}
},
"userManual": {
"type": "text"
},
"webpage": {
"type": "text"
},
@ -850,6 +893,22 @@ mappings['training'] = {
"accessRights": {
"type": "keyword"
},
"alternativeIdentifiers": {
"type": "object",
"properties": {
"alternativeIdentifier": {
"type": "object",
"properties": {
"type": {
"type": "keyword"
},
"value": {
"type": "keyword"
}
}
}
}
},
"authors": {
"fields": {
"keyword": {
@ -891,6 +950,14 @@ mappings['training'] = {
"language": {
"type": "keyword"
},
"learningOutcomes": {
"type": "object",
"properties": {
"learningOutcome": {
"type": "text"
}
}
},
"learningResourceType": {
"type": "keyword"
},