diff --git a/conditor-dumps/04-enrich.ini b/conditor-dumps/04-enrich.ini index c1e44f2..49e1b97 100644 --- a/conditor-dumps/04-enrich.ini +++ b/conditor-dumps/04-enrich.ini @@ -160,25 +160,26 @@ value = get("host.title",_.get(self,"host.conference.name")).trim() # Traitement des éditeurs -# Si le champ host.publisher est vide -[swing] -test = has("host.publisher") -reverse = true - -[swing/assign] +[assign] path = ws.ApilRacineDoiPublisher -value = get("doi") +value = get("doi").split('/').filter(i => i.match(/^10./)).pop() -[swing/expand] +[expand] path = ws.ApilRacineDoiPublisher -size = 100 -cacheName = 04-crossref-prefixes-expand +size = 1 +cacheName = 04-api-crossref-prefixes-expand -[swing/expand/URLConnect] -url = https://biblio-tools.services.inist.fr/v1/crossref/prefixes/expand -timeout = 90005 +[expand/URLFetch] +target = value +url = fix('https://api.crossref.org/prefixes/').append(self.value) +json = true +timeout = 60000 noerror = true -retries = 1 +retries = 2 + +[expand/assign] +path = value +value = get('value.message.name', 'n/a') # Dans un champ temporaire, récupérer la valeur host.publisher si elle est présente, sinon récupérer celle du WS DOI. [assign]