initial stage
This commit is contained in:
parent
0c27895e13
commit
c07ddc03d9
|
@ -66,7 +66,7 @@ def map_access_right(ar: str) -> str:
|
||||||
|
|
||||||
def map_product(p: dict) -> dict:
|
def map_product(p: dict) -> dict:
|
||||||
p['accessRight'] = list(
|
p['accessRight'] = list(
|
||||||
filter(lambda ar: ar != '', map(lambda m: map_access_right(m.get('access_rights')), p.get('manifestations'))))
|
filter(lambda ar: ar != '', map(lambda m: map_access_right(m.get('access_right')), p.get('manifestations'))))
|
||||||
return p
|
return p
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -334,6 +334,9 @@ mappings['products'] = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"accessRight": {
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
"contributions": {
|
"contributions": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
Loading…
Reference in New Issue