diff --git a/affiliations-tools/v1/expand.ini b/affiliations-tools/v1/expand.ini index f3f57c3..b59765c 100644 --- a/affiliations-tools/v1/expand.ini +++ b/affiliations-tools/v1/expand.ini @@ -45,47 +45,6 @@ path = value.country value = get('value.country').replace(/\W/g, ' ').trim() -# --------- Création d'un champ Netscity uniqument pour les affiliations françaises -[expand/swing] -path = value.country -test = equal -value = france - -[expand/swing/assign] -path = value.netscity -value = get('value.city').upperCase() - -# --------- Enrichissement du champ netscity contenant une ville -[expand/expand] -path = value.netscity -size = 10 -cacheName = netscity - -[expand/expand/URLConnect] -url = https://affiliations-tools.services.inist.fr/v1/netscity/expand -timeout = 5000 - -# --------- Selection des informations netscity à conserver -[expand/expand/replace] -path = id -value = get('id') - -path = value.id -value = get('id') - -path = value.latitude -value = get('value.lat2') - -path = value.longitude -value = get('value.lng2') - -path = value.province -value = get('value.province') - -[expand/assign] -path = value.netscity -value = get('value.netscity.value') - # --------- Enrichissement du champ country avec le vocabulaire 9SD de Loterre [expand/expand] path = value.country @@ -93,35 +52,8 @@ cacheName = loterre [expand/expand/URLConnect] -url = https://loterre-resolvers.services.inist.fr/v1/9SD/expand +url = https://loterre-resolvers.services.inist.fr/v1/9SD/identify timeout = 5000 -# --------- Selection des informations loterre à conserver -[expand/expand/replace] -path = id -value = get('id') - -path = value.id -value = get('id') - -path = value.uri -value = get('value.rdf$about') - -path = value.code -value = get('value.inist$lodexPlacenameCode/$t') - -path = value.latitude -value = get('value.geo$lat/$t') - -path = value.longitude -value = get('value.geo$long/$t') - -path = value.label -value = get('value.skos$prefLabel').reduce((obj, item) => ((obj[[_.defaultTo(item['xml$lang'],'_')]] = item['$t']), obj), {}) - -[expand/assign] -path = value.country -value = get('value.country.value') - [dump] indent = env('indent', false)