diff --git a/loterre-resolvers/v1/annotate.cfg b/loterre-resolvers/v1/annotate.cfg index abbcdf4..c45079f 100644 --- a/loterre-resolvers/v1/annotate.cfg +++ b/loterre-resolvers/v1/annotate.cfg @@ -44,8 +44,25 @@ param = env('lang').prepend('lang=') param = env('skosFilename').prepend('vocabulary=') -[JSONParse] -separator = data.* +[XMLParse] +separator = /root/record + +[map] +path = annotation + +[map/OBJFlatten] +[map/exchange] +value = self().mapKeys((value, key) => key.replace(/\/\$t/g, '')) + +[map/assign] +path = arbreHiérarchique +value = get('arbreHiérarchique').castArray().map(item => (item.$t ? item.$t : item)) + +[replace] +path = id +value = get('id') +path = value +value = get('annotation') # # A noter :