diff --git a/biblio-tools/examples.http b/biblio-tools/examples.http index 40a742e..6aa0503 100644 --- a/biblio-tools/examples.http +++ b/biblio-tools/examples.http @@ -215,3 +215,14 @@ ] ### +# @name v1ConditorWorksExpandByHalid +# conditor/works/expandByHalid +POST {{baseUrl}}/v1/conditor/works/expandByHalid?indent=true HTTP/1.1 +Content-Type: application/json + +[ + { "id":1, "value": "hal-03008165"}, + { "id":4, "value": ""} +] + +### diff --git a/biblio-tools/v1/conditor/works/expandByHalid.ini b/biblio-tools/v1/conditor/works/expandByHalid.ini index da59181..b0e6ecd 100644 --- a/biblio-tools/v1/conditor/works/expandByHalid.ini +++ b/biblio-tools/v1/conditor/works/expandByHalid.ini @@ -41,7 +41,7 @@ # Création d'une requete avec une liste d'identifiants [replace] path = output.0.q -value = self().map('value').filter(Boolean).map(JSON.stringify).join(' ').thru(allIdentifiers => `halid:(${allIdentifiers})`) +value = self().map('value').filter(Boolean).map(JSON.stringify).join(' ').thru(allIdentifiers => `halId:(${allIdentifiers})`) path = output.0.size value = env('size') @@ -55,6 +55,7 @@ [map] path = output +[map/debug] # Envoi de la requete [map/URLStream] url = https://corhal-api.inist.fr/mergedDocuments @@ -64,6 +65,7 @@ retries = 3 noerror = false +[map/debug] [map/OBJFlatten] # Création d'un objet réponse