Newer
Older
web-services / loterre-resolvers / v1 / 2XK.cfg
@Nicolas Thouvenin Nicolas Thouvenin on 13 Jun 521 bytes verbalisation des infos principales dans 2XK
[env]
path = primer
value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-structures-recherche.xml").join("")

path = loterreID
value = fix('2XK')

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
#