diff --git a/loterre-resolvers/v1/9SD/expand.ini b/loterre-resolvers/v1/9SD/expand.ini index bf1bc01..8e4cc68 100644 --- a/loterre-resolvers/v1/9SD/expand.ini +++ b/loterre-resolvers/v1/9SD/expand.ini @@ -18,6 +18,9 @@ path = primer value = https://inist-wsdata.dboard.inist.fr/loterre-resolvers-pays.xml +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)) + # Necessary plugins [use] plugin = basics @@ -32,7 +35,7 @@ [expand] path = value size = 1 -cacheName = env('primer').append('expand') +cacheName = env('weekNumber').prepend('post-v1-9SD-expand-week') [expand/assign] path = value @@ -42,7 +45,7 @@ path = value primer = env('primer') file = ./v1/combine.ini -cacheName = post-v1-9SD-expand +cacheName = env('weekNumber').prepend('post-v1-9SD-combine-week') [dump] indent = env('indent', false) diff --git a/loterre-resolvers/v1/9SD/identify.ini b/loterre-resolvers/v1/9SD/identify.ini index 1fb231e..16c97d5 100644 --- a/loterre-resolvers/v1/9SD/identify.ini +++ b/loterre-resolvers/v1/9SD/identify.ini @@ -30,6 +30,9 @@ path = primer value = https://inist-wsdata.dboard.inist.fr/loterre-resolvers-pays.xml +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)) + # Necessary plugins [use] plugin = basics @@ -43,7 +46,7 @@ [expand] path = value size = 1 -cacheName = env('primer').append('identify') +cacheName = env('weekNumber').prepend('post-v1-9SD-identify-week') [expand/assign] path = value @@ -53,7 +56,7 @@ path = value primer = env('primer') file = ./v1/combine.ini -cacheName = post-v1-9SD-identify +cacheName = env('weekNumber').prepend('post-v1-9SD-combine-week') [expand/remove] test = get('value.value').isString() diff --git a/loterre-resolvers/v1/D63/expand.ini b/loterre-resolvers/v1/D63/expand.ini index e3dfd93..0a81c2f 100644 --- a/loterre-resolvers/v1/D63/expand.ini +++ b/loterre-resolvers/v1/D63/expand.ini @@ -18,6 +18,9 @@ path = primer value = https://inist-wsdata.dboard.inist.fr/loterre-resolvers-communes.xml +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)) + # Necessary plugins [use] plugin = basics @@ -32,7 +35,10 @@ [expand] path = value size = 1 -cacheName = env('primer').append('expand') +cacheName = env('weekNumber').prepend('post-v1-D63-expand-week') + +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)) [expand/assign] path = value @@ -42,7 +48,7 @@ path = value primer = env('primer') file = ./v1/combine.ini -cacheName = post-v1-D63-expand +cacheName = env('weekNumber').prepend('post-v1-D63-combine-week') [dump] indent = env('indent', false) diff --git a/loterre-resolvers/v1/D63/identify.ini b/loterre-resolvers/v1/D63/identify.ini index 5cf5dd1..101a609 100644 --- a/loterre-resolvers/v1/D63/identify.ini +++ b/loterre-resolvers/v1/D63/identify.ini @@ -30,6 +30,9 @@ path = primer value = https://inist-wsdata.dboard.inist.fr/loterre-resolvers-communes.xml +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)) + # Necessary plugins [use] plugin = basics @@ -43,7 +46,7 @@ [expand] path = value size = 1 -cacheName = env('primer').append('identify') +cacheName = env('weekNumber').prepend('post-v1-D63-identify-week') [expand/assign] path = value @@ -53,7 +56,7 @@ path = value primer = env('primer') file = ./v1/combine.ini -cacheName = post-v1-D63-identify +cacheName = env('weekNumber').prepend('post-v1-D63-combine-week') [expand/remove] test = get('value.value').isString() diff --git a/loterre-resolvers/v1/P66/expand.ini b/loterre-resolvers/v1/P66/expand.ini index 4c6f328..820c5df 100644 --- a/loterre-resolvers/v1/P66/expand.ini +++ b/loterre-resolvers/v1/P66/expand.ini @@ -176,6 +176,9 @@ path = primer value = https://inist-wsdata.dboard.inist.fr/loterre-resolvers-memoire.xml +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)) + # Necessary plugins [use] plugin = basics @@ -190,7 +193,7 @@ [expand] path = value size = 1 -cacheName = env('primer').append('expand') +cacheName = env('weekNumber').prepend('post-v1-P66-expand-week') [expand/assign] path = value @@ -200,7 +203,7 @@ path = value primer = env('primer') file = ./v1/combine.ini -cacheName = post-v1-P66-expand +cacheName = env('weekNumber').prepend('post-v1-P66-combine-week') [dump] indent = env('indent', false) diff --git a/loterre-resolvers/v1/P66/identify.ini b/loterre-resolvers/v1/P66/identify.ini index e60751b..4f7900b 100644 --- a/loterre-resolvers/v1/P66/identify.ini +++ b/loterre-resolvers/v1/P66/identify.ini @@ -37,6 +37,9 @@ path = primer value = https://inist-wsdata.dboard.inist.fr/loterre-resolvers-memoire.xml +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)) + # Necessary plugins [use] plugin = basics @@ -50,7 +53,7 @@ [expand] path = value size = 1 -cacheName = env('primer').append('identify') +cacheName = env('weekNumber').prepend('post-v1-P66-identify-week') [expand/assign] path = value @@ -60,7 +63,7 @@ path = value primer = env('primer') file = ./v1/combine.ini -cacheName = post-v1-P66-identify +cacheName = env('weekNumber').prepend('post-v1-P66-combine-week') [expand/remove] test = get('value.value').isString()