diff --git a/loterre-resolvers/v1/2XK/expand.ini b/loterre-resolvers/v1/2XK/expand.ini index 350e244..2184e7a 100644 --- a/loterre-resolvers/v1/2XK/expand.ini +++ b/loterre-resolvers/v1/2XK/expand.ini @@ -25,9 +25,6 @@ path = primer value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-structures-recherche.xml").join("") -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - path = loterreID value = fix('2XK') diff --git a/loterre-resolvers/v1/2XK/identify.ini b/loterre-resolvers/v1/2XK/identify.ini index 4f31cd8..a8c13b5 100644 --- a/loterre-resolvers/v1/2XK/identify.ini +++ b/loterre-resolvers/v1/2XK/identify.ini @@ -30,9 +30,6 @@ path = primer value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-structures-recherche.xml").join("") -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - path = loterreID value = fix('2XK') diff --git a/loterre-resolvers/v1/9SD/expand.ini b/loterre-resolvers/v1/9SD/expand.ini index 7a7f442..e450af8 100644 --- a/loterre-resolvers/v1/9SD/expand.ini +++ b/loterre-resolvers/v1/9SD/expand.ini @@ -18,9 +18,6 @@ path = primer value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-pays.xml").join("") -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - path = loterreID value = fix('9SD') diff --git a/loterre-resolvers/v1/9SD/identify.ini b/loterre-resolvers/v1/9SD/identify.ini index f6eefc1..b7fbe63 100644 --- a/loterre-resolvers/v1/9SD/identify.ini +++ b/loterre-resolvers/v1/9SD/identify.ini @@ -30,9 +30,6 @@ path = primer value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-pays.xml").join("") -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - path = loterreID value = fix('9SD') diff --git a/loterre-resolvers/v1/D63/expand.ini b/loterre-resolvers/v1/D63/expand.ini index 1a727e5..4ec82f6 100644 --- a/loterre-resolvers/v1/D63/expand.ini +++ b/loterre-resolvers/v1/D63/expand.ini @@ -18,9 +18,6 @@ path = primer value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-communes.xml").join("") -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - path = loterreID value = fix('D63') diff --git a/loterre-resolvers/v1/D63/identify.ini b/loterre-resolvers/v1/D63/identify.ini index 370fc43..36f0d4f 100644 --- a/loterre-resolvers/v1/D63/identify.ini +++ b/loterre-resolvers/v1/D63/identify.ini @@ -30,9 +30,6 @@ path = primer value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-communes.xml").join("") -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - path = loterreID value = fix('D63') diff --git a/loterre-resolvers/v1/P66/expand.ini b/loterre-resolvers/v1/P66/expand.ini index b50b6a9..8b2d5bd 100644 --- a/loterre-resolvers/v1/P66/expand.ini +++ b/loterre-resolvers/v1/P66/expand.ini @@ -176,9 +176,6 @@ path = primer value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-memoire.xml").join("") -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - path = loterreID value = fix('P66') diff --git a/loterre-resolvers/v1/P66/identify.ini b/loterre-resolvers/v1/P66/identify.ini index ddb0970..49486d1 100644 --- a/loterre-resolvers/v1/P66/identify.ini +++ b/loterre-resolvers/v1/P66/identify.ini @@ -37,9 +37,6 @@ path = primer value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-memoire.xml").join("") -path = weekNumber -value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) - path = loterreID value = fix('P66') diff --git a/loterre-resolvers/v1/combine.ini b/loterre-resolvers/v1/combine.ini index 5077a17..9c6dec8 100644 --- a/loterre-resolvers/v1/combine.ini +++ b/loterre-resolvers/v1/combine.ini @@ -1,3 +1,8 @@ +# Configuration du chemin de stockage des bases des données locales +[env] +path = location +value = fix(`${env('TMPDIR', '/tmp')}/databases/${env('weekNumber')}/${env('loterreID', 'noid')}`) + # STEP 0 : On noramise la valeur à rechercher (de la même manière que l'index a été créé) [assign] path = value diff --git a/loterre-resolvers/v1/process.ini b/loterre-resolvers/v1/process.ini index a4775ca..f3f7421 100644 --- a/loterre-resolvers/v1/process.ini +++ b/loterre-resolvers/v1/process.ini @@ -1,26 +1,16 @@ # Context input/output append = dump?indent=true -# OpenAPI Documentation - JSON format (dot notation) -post.responses.default.description = Enrich json file -post.responses.default.content.application/json.schema.type = array -post.responses.default.content.application/json.schema.items.type = object -post.responses.default.content.application/json.schema.items.properties.id.type = string -post.responses.default.content.application/json.schema.items.properties.value.$ref = #/components/schemas/anyValue -post.summary = Transform XML/SKOS file to array of JSON Objects -post.requestBody.required = true -post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream - # Necessary plugins [use] plugin = basics plugin = analytics plugin = storage +# Environment variables [env] -path = location -value= fix(`${env('TMPDIR', '/tmp')}/databases/${env('loterreID', 'noid')}`) +path = weekNumber +value = thru(() => new Date()).thru(currentDate => Math.floor((currentDate - (new Date(currentDate.getFullYear(), 0, 1)))/(24 * 60 * 60 * 1000))).thru(days => Math.ceil(days / 7)) # Flow configuration [JSONParse]