# npx ezs 03-create-fields.ini append = pack [unpack] [assign] # Récupère electronicPublicationDate et publicationDate # Prend la plus ancienne (= la plus petite) # Ne garde que l'année path = ApilPublicationDate value = get("host.electronicPublicationDate", "9999") \ .castArray() \ .concat(_.get(self, "host.publicationDate", "9999")) \ .min().toString() \ .thru(str => str.substring(0,4)) [assign] path = ApilFinancement value = get('funders').castArray().filter(Boolean).thru(arr => Boolean(arr.length))