diff --git a/loterre-resolvers/v1/73G.cfg b/loterre-resolvers/v1/73G.cfg new file mode 100644 index 0000000..2642bfc --- /dev/null +++ b/loterre-resolvers/v1/73G.cfg @@ -0,0 +1,11 @@ +[env] +path = primer +value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("73G.skos").join("") +path = loterreID +value = fix('73G') +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)) +# +# A noter : +# L'utilisation d'un fichier .cfg évite de faire apparaitre ce fichier comme une route dans la documentation openAPI +#