Newer
Older
web-services / loterre-resolvers / v1 / 9SD.cfg
@Nicolas Thouvenin Nicolas Thouvenin on 2 Jun 505 bytes waiting for xsl file
[env]
path = primer
value = env("TABLE_SERVER_URL", "http://mapping-tables.daf.intra.inist.fr/").concat("loterre-pays.xml").join("")

path = loterreID
value = fix('9SD')

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
#