initial stage
This commit is contained in:
parent
f89898e99b
commit
09b603925d
|
@ -46,7 +46,7 @@ def trasform_interoperability(p: dict) -> dict:
|
|||
if 'domain' in p:
|
||||
p['domain'] = {"domain": p['domain']}
|
||||
p['licenseDetails'] = p['license']
|
||||
p['license'] = p['license']['title'] if 'title' in p['license'] else ''
|
||||
p['license'] = p['license']['identifier'] if 'identifier' in p['license'] else ''
|
||||
return p
|
||||
|
||||
|
||||
|
|
|
@ -833,9 +833,72 @@ mappings['services'] = {
|
|||
|
||||
mappings['interoperability'] = {
|
||||
"properties": {
|
||||
"alternativeIdentifiers": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"alternativeIdentifier": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"value": {
|
||||
"type": "keyword"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"creators": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"affiliation": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
"familyName": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
"fullName": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
"givenName": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
},
|
||||
"type": "text"
|
||||
},
|
||||
"type": {
|
||||
"type": "keyword"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"doi": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"domain": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -856,6 +919,20 @@ mappings['interoperability'] = {
|
|||
"license": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"licenseDetails": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"title": {
|
||||
"type": "text"
|
||||
},
|
||||
"uri": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
"organization": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
|
@ -865,6 +942,19 @@ mappings['interoperability'] = {
|
|||
},
|
||||
"type": "text"
|
||||
},
|
||||
"provider": {
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
},
|
||||
"type": "keyword"
|
||||
},
|
||||
"providers": {
|
||||
"path": "provider",
|
||||
"type": "alias"
|
||||
},
|
||||
"publicationYear": {
|
||||
"type": "long"
|
||||
},
|
||||
|
@ -879,6 +969,9 @@ mappings['interoperability'] = {
|
|||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"title": {
|
||||
"type": "text"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue